Skip to content

Commit

Permalink
[funimation] Add support for optional lang code in URLs (closes #28950)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed May 4, 2021
1 parent 504e4d8 commit 04be553
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion youtube_dl/extractor/funimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 04be553

Please sign in to comment.