diff options
author | u-spec-png <54671367+u-spec-png@users.noreply.github.com> | 2021-09-26 13:28:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-26 18:58:22 +0530 |
commit | c470901ccf602d43b69fb1092ed6fdff36021137 (patch) | |
tree | 8c20065297981c1883cc6348971c9b0b853b86d2 | |
parent | 2333ea102986f5ae792d3f297aac04cf8065d9f3 (diff) | |
download | hypervideo-pre-c470901ccf602d43b69fb1092ed6fdff36021137.tar.lz hypervideo-pre-c470901ccf602d43b69fb1092ed6fdff36021137.tar.xz hypervideo-pre-c470901ccf602d43b69fb1092ed6fdff36021137.zip |
[reddit] Add embedded url (#1090)
Authored by: u-spec-png
-rw-r--r-- | yt_dlp/extractor/reddit.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/yt_dlp/extractor/reddit.py b/yt_dlp/extractor/reddit.py index 8e1463d5b..14592bc62 100644 --- a/yt_dlp/extractor/reddit.py +++ b/yt_dlp/extractor/reddit.py @@ -49,7 +49,7 @@ class RedditIE(InfoExtractor): class RedditRIE(InfoExtractor): - _VALID_URL = r'https?://(?:[^/]+\.)?reddit\.com/r/(?P<slug>[^/]+/comments/(?P<id>[^/?#&]+))' + _VALID_URL = r'https?://(?:[^/]+\.)?reddit(?:media)?\.com/r/(?P<slug>[^/]+/comments/(?P<id>[^/?#&]+))' _TESTS = [{ 'url': 'https://www.reddit.com/r/videos/comments/6rrwyj/that_small_heart_attack/', 'info_dict': { @@ -94,6 +94,9 @@ class RedditRIE(InfoExtractor): # reddit video @ nm reddit 'url': 'https://nm.reddit.com/r/Cricket/comments/8idvby/lousy_cameraman_finds_himself_in_cairns_line_of/', 'only_matching': True, + }, { + 'url': 'https://www.redditmedia.com/r/serbia/comments/pu9wbx/ako_vu%C4%8Di%C4%87_izgubi_izbore_ja_%C4%87u_da_crknem/', + 'only_matching': True, }] def _real_extract(self, url): |