diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-07-17 02:49:49 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-07-20 02:42:11 +0530 |
commit | d9488f69c111c70e46dbe94773ff3b34c08b0298 (patch) | |
tree | 32f4f032b54a7ae5d8a331111ea94a7bb50e04c6 /yt_dlp/extractor/crunchyroll.py | |
parent | dce87436778a3448a3db098617eabe5541f6f229 (diff) | |
download | hypervideo-pre-d9488f69c111c70e46dbe94773ff3b34c08b0298.tar.lz hypervideo-pre-d9488f69c111c70e46dbe94773ff3b34c08b0298.tar.xz hypervideo-pre-d9488f69c111c70e46dbe94773ff3b34c08b0298.zip |
[crunchyroll:playlist] Force http
Closes #495
Diffstat (limited to 'yt_dlp/extractor/crunchyroll.py')
-rw-r--r-- | yt_dlp/extractor/crunchyroll.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/yt_dlp/extractor/crunchyroll.py b/yt_dlp/extractor/crunchyroll.py index ec76ad1b2..98aa1dd9a 100644 --- a/yt_dlp/extractor/crunchyroll.py +++ b/yt_dlp/extractor/crunchyroll.py @@ -636,7 +636,7 @@ class CrunchyrollShowPlaylistIE(CrunchyrollBaseIE): _VALID_URL = r'https?://(?:(?P<prefix>www|m)\.)?(?P<url>crunchyroll\.com/(?!(?:news|anime-news|library|forum|launchcalendar|lineup|store|comics|freetrial|login|media-\d+))(?P<id>[\w\-]+))/?(?:\?|$)' _TESTS = [{ - 'url': 'http://www.crunchyroll.com/a-bridge-to-the-starry-skies-hoshizora-e-kakaru-hashi', + 'url': 'https://www.crunchyroll.com/a-bridge-to-the-starry-skies-hoshizora-e-kakaru-hashi', 'info_dict': { 'id': 'a-bridge-to-the-starry-skies-hoshizora-e-kakaru-hashi', 'title': 'A Bridge to the Starry Skies - Hoshizora e Kakaru Hashi' @@ -661,7 +661,8 @@ class CrunchyrollShowPlaylistIE(CrunchyrollBaseIE): show_id = self._match_id(url) webpage = self._download_webpage( - self._add_skip_wall(url), show_id, + # https:// gives a 403, but http:// does not + self._add_skip_wall(url).replace('https://', 'http://'), show_id, headers=self.geo_verification_headers()) title = self._html_search_meta('name', webpage, default=None) |