From: Sergey M․ Date: Mon, 9 Oct 2017 16:52:39 +0000 (+0700) Subject: [hrti:playlist] Relax _VALID_URL X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=ae5af89079558e0e128dc4d7f033459e68ad81e6;p=youtube-dl.git [hrti:playlist] Relax _VALID_URL --- diff --git a/youtube_dl/extractor/hrti.py b/youtube_dl/extractor/hrti.py index 7cef5f6ce..6424d34ac 100644 --- a/youtube_dl/extractor/hrti.py +++ b/youtube_dl/extractor/hrti.py @@ -173,7 +173,7 @@ class HRTiIE(HRTiBaseIE): class HRTiPlaylistIE(HRTiBaseIE): - _VALID_URL = r'https?://hrti\.hrt\.hr/#/video/list/category/(?P[0-9]+)/(?P[^/]+)?' + _VALID_URL = r'https?://hrti\.hrt\.hr/(?:#/)?video/list/category/(?P[0-9]+)/(?P[^/]+)?' _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):