diff --git a/brozzler/ydl.py b/brozzler/ydl.py index 6c3cf61..166172f 100644 --- a/brozzler/ydl.py +++ b/brozzler/ydl.py @@ -223,8 +223,9 @@ def _build_youtube_dl(worker, destdir, site): def ydl_postprocess_hook(d): if d['status'] == 'finished': - print('[ydl_postprocess_hook] Done postprocessing') - if worker._using_warcprox(site): + worker.logger.info('[ydl_postprocess_hook] Finished postprocessing') + worker.logger.info('[ydl_postprocess_hook] postprocessor: {}'.format(d['postprocessor'])) + if d['postprocessor'] == 'FixupM3u8' and worker._using_warcprox(site): _YoutubeDL._push_stitched_up_vid_to_warcprox(_YoutubeDL, site, d['info_dict']) ydl_opts = { @@ -247,6 +248,7 @@ def _build_youtube_dl(worker, destdir, site): # "If --prefer-free-formats is used, the order changes to opus > ogg > webm > m4a > mp3 > aac." # "ext: Equivalent to vext,aext" "format_sort": ["ext"], + "format": "b/bv+ba", # --cache-dir local or... "cache_dir": False, diff --git a/setup.py b/setup.py index fd52498..ed8b8c0 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ def find_package_data(package): setuptools.setup( name='brozzler', - version='1.5.26', + version='1.5.27', description='Distributed web crawling with browsers', url='https://github.com/internetarchive/brozzler', author='Noah Levitt',