From 1980573f9eff87d49da286f0ebb363de9f88f56f Mon Sep 17 00:00:00 2001 From: Barbara Miller Date: Wed, 18 Oct 2023 16:36:19 -0700 Subject: [PATCH] minimal fix for current vimeo capture --- brozzler/ydl.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/brozzler/ydl.py b/brozzler/ydl.py index 8f7d2ed..ae138ee 100644 --- a/brozzler/ydl.py +++ b/brozzler/ydl.py @@ -171,15 +171,15 @@ def _build_youtube_dl(worker, destdir, site, page): # youtube watch page postprocessor is MoveFiles - if postprocessor == 'FixupM3u8': + if postprocessor == 'FixupM3u8' or postprocessor == 'Merger': url = 'youtube-dl:%05d:%s' % ( info_dict.get('playlist_index') or 1, info_dict['webpage_url']) else: - url = info_dict.get('url') + url = info_dict.get('url', '') - # skip urls ending .m3u8, to avoid duplicates handled by FixupM3u* - if url.endswith('.m3u8'): + # skip urls ending .m3u8, to avoid duplicates handled by FixupM3u8 + if url.endswith('.m3u8') or url == '': return size = os.path.getsize(info_dict['filepath'])