Add more logging to get_media_info

This commit is contained in:
tcely 2025-03-09 22:02:44 -04:00 committed by GitHub
parent 58472f7785
commit 84d42fb2ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -156,10 +156,13 @@ def get_media_info(url, days=None):
'check_formats': True,
'daterange': yt_dlp.utils.DateRange(start=start),
'extractor_args': {
'youtube': {'formats': ['missing_pot']},
'youtubetab': {'approximate_date': ['true']},
},
'sleep_interval_requests': 2,
'verbose': True if settings.DEBUG else False,
})
if start:
log.debug(f'get_media_info: used date range: {opts["daterange"]} for URL: {url}')
response = {}
with yt_dlp.YoutubeDL(opts) as y:
try: