aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2021-05-05 02:54:12 +0700
committerSergey M․ <dstftw@gmail.com>2021-05-05 02:54:12 +0700
commit04be55307a3a13f7091a9a2970a1cc20863769e3 (patch)
tree132814be229171aed18a27216afb1a1960ee2325
parent504e4d804df0ee666d80ba6796017cf97e026c0b (diff)
downloadyoutube-dl-04be55307a3a13f7091a9a2970a1cc20863769e3.tar.xz
[funimation] Add support for optional lang code in URLs (closes #28950)
-rw-r--r--youtube_dl/extractor/funimation.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/youtube_dl/extractor/funimation.py b/youtube_dl/extractor/funimation.py
index 8bbedca26..d8f1e169a 100644
--- a/youtube_dl/extractor/funimation.py
+++ b/youtube_dl/extractor/funimation.py
@@ -16,7 +16,7 @@ from ..utils import (
class FunimationIE(InfoExtractor):
- _VALID_URL = r'https?://(?:www\.)?funimation(?:\.com|now\.uk)/shows/[^/]+/(?P<id>[^/?#&]+)'
+ _VALID_URL = r'https?://(?:www\.)?funimation(?:\.com|now\.uk)/(?:[^/]+/)?shows/[^/]+/(?P<id>[^/?#&]+)'
_NETRC_MACHINE = 'funimation'
_TOKEN = None
@@ -51,6 +51,10 @@ class FunimationIE(InfoExtractor):
}, {
'url': 'https://www.funimationnow.uk/shows/puzzle-dragons-x/drop-impact/simulcast/',
'only_matching': True,
+ }, {
+ # with lang code
+ 'url': 'https://www.funimation.com/en/shows/hacksign/role-play/',
+ 'only_matching': True,
}]
def _login(self):