diff options
author | Meneth32 <meneth@hotmail.com> | 2018-04-29 16:59:40 +0200 |
---|---|---|
committer | Sergey M <dstftw@gmail.com> | 2018-04-29 21:59:40 +0700 |
commit | 12b0d4e0e1df6d6a8b9ce10b9a69013497adc2b0 (patch) | |
tree | 370c26fa153352a39728ee4579f6679c841ab32b /youtube_dl | |
parent | 106c8c3edbc5b7e95cfba79ddc6252fad0adb859 (diff) |
[redditr] Add support for old.reddit.com URLs
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/reddit.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/youtube_dl/extractor/reddit.py b/youtube_dl/extractor/reddit.py index 53b1c967e..8372925be 100644 --- a/youtube_dl/extractor/reddit.py +++ b/youtube_dl/extractor/reddit.py @@ -47,7 +47,7 @@ class RedditIE(InfoExtractor): class RedditRIE(InfoExtractor): - _VALID_URL = r'(?P<url>https?://(?:www\.)?reddit\.com/r/[^/]+/comments/(?P<id>[^/?#&]+))' + _VALID_URL = r'(?P<url>https?://(?:(?:www|old)\.)?reddit\.com/r/[^/]+/comments/(?P<id>[^/?#&]+))' _TESTS = [{ 'url': 'https://www.reddit.com/r/videos/comments/6rrwyj/that_small_heart_attack/', 'info_dict': { @@ -75,6 +75,10 @@ class RedditRIE(InfoExtractor): 'url': 'https://www.reddit.com/r/MadeMeSmile/comments/6t7wi5/wait_for_it/', 'only_matching': True, }, { + # imgur @ old reddit + 'url': 'https://old.reddit.com/r/MadeMeSmile/comments/6t7wi5/wait_for_it/', + 'only_matching': True, + }, { # streamable 'url': 'https://www.reddit.com/r/videos/comments/6t7sg9/comedians_hilarious_joke_about_the_guam_flag/', 'only_matching': True, |