skip remembering dash manifests

This commit is contained in:
Barbara Miller 2017-11-06 16:43:43 -08:00
parent 7f4deacdf7
commit 31e54c94e7

View File

@ -247,14 +247,16 @@ class BrozzlerWorker:
if not 'videos' in page:
page.videos = []
for txn in ydl_spy.transactions:
if (txn['response_headers'].get_content_type().startswith('video/')
content_type = txn['response_headers'].get_content_type()
if (content_type.startswith('video/')
and content_type != 'video/vnd.mpeg.dash.mpd'
and txn['method'] == 'GET'
and txn['status_code'] in (200, 206)):
video = {
'blame': 'youtube-dl',
'url': txn['url'],
'response_code': txn['status_code'],
'content-type': txn['response_headers'].get_content_type(),
'content-type': content_type,
}
if 'content-length' in txn['response_headers']:
video['content-length'] = int(
@ -390,6 +392,7 @@ class BrozzlerWorker:
and 'response' in chrome_msg['params']
and 'mimeType' in chrome_msg['params']['response']
and chrome_msg['params']['response'].get('mimeType', '').startswith('video/')
and chrome_msg['params']['response']['mimeType'] != 'video/vnd.mpeg.dash.mpd'
and chrome_msg['params']['response'].get('status') in (200, 206)):
video = {
'blame': 'browser',