diff options
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r-- | youtube_dl/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index bff59eb73..7dab60bb8 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -922,7 +922,7 @@ def unified_strdate(date_str, day_first=True): def determine_ext(url, default_ext='unknown_video'): if url is None: return default_ext - guess = url.partition('?')[0].rpartition('.')[2] + guess = url.partition('?')[0].rpartition('.')[2].rstrip('/') if re.match(r'^[A-Za-z0-9]+$', guess): return guess else: |