]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[hrti:playlist] Relax _VALID_URL
authorSergey M․ <dstftw@gmail.com>
Mon, 9 Oct 2017 16:52:39 +0000 (23:52 +0700)
committerSergey M․ <dstftw@gmail.com>
Mon, 9 Oct 2017 16:52:39 +0000 (23:52 +0700)
youtube_dl/extractor/hrti.py

index 7cef5f6ce0da52fab3e3638d81eed41788e24c20..6424d34ac4acc0f6c01205076cd0e6e25723fc22 100644 (file)
@@ -173,7 +173,7 @@ class HRTiIE(HRTiBaseIE):
 
 
 class HRTiPlaylistIE(HRTiBaseIE):
-    _VALID_URL = r'https?://hrti\.hrt\.hr/#/video/list/category/(?P<id>[0-9]+)/(?P<display_id>[^/]+)?'
+    _VALID_URL = r'https?://hrti\.hrt\.hr/(?:#/)?video/list/category/(?P<id>[0-9]+)/(?P<display_id>[^/]+)?'
     _TESTS = [{
         'url': 'https://hrti.hrt.hr/#/video/list/category/212/ekumena',
         'info_dict': {
@@ -185,6 +185,9 @@ class HRTiPlaylistIE(HRTiBaseIE):
     }, {
         'url': 'https://hrti.hrt.hr/#/video/list/category/212/',
         'only_matching': True,
+    }, {
+        'url': 'https://hrti.hrt.hr/video/list/category/212/ekumena',
+        'only_matching': True,
     }]
 
     def _real_extract(self, url):