diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-07-11 00:55:09 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-07-11 01:13:32 +0530 |
commit | 56b5b832bfaaab9e3f1a39eeb3e950630383a37a (patch) | |
tree | ec07a92e0668291584dbd27fb76728c0bdbe1397 /yt_dlp/extractor/crunchyroll.py | |
parent | cb794ee010c88c6dddb3a38608114f6bc0e4a3a0 (diff) | |
download | hypervideo-pre-56b5b832bfaaab9e3f1a39eeb3e950630383a37a.tar.lz hypervideo-pre-56b5b832bfaaab9e3f1a39eeb3e950630383a37a.tar.xz hypervideo-pre-56b5b832bfaaab9e3f1a39eeb3e950630383a37a.zip |
[extractor/crunchyroll] Improve _VALID_URL
<http://www.crunchyroll.com/series/GR24PVM76/nichijou-my-ordinary-life>
should be handled by Generic
Closes #4322
Diffstat (limited to 'yt_dlp/extractor/crunchyroll.py')
-rw-r--r-- | yt_dlp/extractor/crunchyroll.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/crunchyroll.py b/yt_dlp/extractor/crunchyroll.py index 6877e1a3f..d5aa45ff8 100644 --- a/yt_dlp/extractor/crunchyroll.py +++ b/yt_dlp/extractor/crunchyroll.py @@ -113,7 +113,7 @@ class CrunchyrollBaseIE(InfoExtractor): class CrunchyrollIE(CrunchyrollBaseIE, VRVBaseIE): IE_NAME = 'crunchyroll' - _VALID_URL = r'https?://(?:(?P<prefix>www|m)\.)?(?P<url>crunchyroll\.(?:com|fr)/(?:media(?:-|/\?id=)|(?:[^/]*/){1,2}[^/?&]*?)(?P<id>[0-9]+))(?:[/?&]|$)' + _VALID_URL = r'https?://(?:(?P<prefix>www|m)\.)?(?P<url>crunchyroll\.(?:com|fr)/(?:media(?:-|/\?id=)|(?!series/|watch/)(?:[^/]+/){1,2}[^/?&]*?)(?P<id>[0-9]+))(?:[/?&]|$)' _TESTS = [{ 'url': 'http://www.crunchyroll.com/wanna-be-the-strongest-in-the-world/episode-1-an-idol-wrestler-is-born-645513', 'info_dict': { |