diff options
| author | Sergey M․ <dstftw@gmail.com> | 2015-12-12 00:43:03 +0600 | 
|---|---|---|
| committer | Sergey M․ <dstftw@gmail.com> | 2015-12-12 00:43:03 +0600 | 
| commit | b091529a3ccfdcc638939b71f53708f944450df1 (patch) | |
| tree | 1ed734431d8cbeb4566db3ddff5e6cd1350d6249 /youtube_dl/extractor/funimation.py | |
| parent | b323a3cbff32df7188fc4fbb899dcc1c44e5d064 (diff) | |
[funimation] Extend _VALID_URL to match promotional videos
Diffstat (limited to 'youtube_dl/extractor/funimation.py')
| -rw-r--r-- | youtube_dl/extractor/funimation.py | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/youtube_dl/extractor/funimation.py b/youtube_dl/extractor/funimation.py index 35328997b..0b4279612 100644 --- a/youtube_dl/extractor/funimation.py +++ b/youtube_dl/extractor/funimation.py @@ -15,7 +15,7 @@ from ..utils import (  class FunimationIE(InfoExtractor): -    _VALID_URL = r'https?://(?:www\.)?funimation\.com/shows/[^/]+/videos/official/(?P<id>[^/?#&]+)' +    _VALID_URL = r'https?://(?:www\.)?funimation\.com/shows/[^/]+/videos/(?:official|promotional)/(?P<id>[^/?#&]+)'      _TESTS = [{          'url': 'http://www.funimation.com/shows/air/videos/official/breeze', @@ -37,6 +37,9 @@ class FunimationIE(InfoExtractor):              'description': 'md5:b602bdc15eef4c9bbb201bb6e6a4a2dd',              'thumbnail': 're:https?://.*\.jpg',          }, +    }, { +        'url': 'http://www.funimation.com/shows/attack-on-titan-junior-high/videos/promotional/broadcast-dub-preview', +        'only_matching': True,      }]      def _login(self): | 
