diff --git a/brozzler/worker.py b/brozzler/worker.py index 270db0e..0a2c6bc 100644 --- a/brozzler/worker.py +++ b/brozzler/worker.py @@ -249,6 +249,8 @@ class BrozzlerWorker: for txn in ydl_spy.transactions: content_type = txn['response_headers'].get_content_type() if (content_type.startswith('video/') + # skip manifests of DASH segmented video - + # see https://github.com/internetarchive/brozzler/pull/70 and content_type != 'video/vnd.mpeg.dash.mpd' and txn['method'] == 'GET' and txn['status_code'] in (200, 206)): @@ -392,6 +394,8 @@ class BrozzlerWorker: and 'response' in chrome_msg['params'] and 'mimeType' in chrome_msg['params']['response'] and chrome_msg['params']['response'].get('mimeType', '').startswith('video/') + # skip manifests of DASH segmented video - + # see https://github.com/internetarchive/brozzler/pull/70 and chrome_msg['params']['response']['mimeType'] != 'video/vnd.mpeg.dash.mpd' and chrome_msg['params']['response'].get('status') in (200, 206)): video = {