]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[lnkgo] Relax _VALID_URL
authorremis <r-pankevicius@users.noreply.github.com>
Fri, 6 Oct 2017 16:59:09 +0000 (19:59 +0300)
committerSergey M <dstftw@gmail.com>
Fri, 6 Oct 2017 16:59:09 +0000 (23:59 +0700)
youtube_dl/extractor/lnkgo.py

index 068378c9c509a0483650feac42a8ffe92cc60328..cfec0d3d0910c6b107831b050f4af6dcd9d248c0 100644 (file)
@@ -11,7 +11,7 @@ from ..utils import (
 
 
 class LnkGoIE(InfoExtractor):
-    _VALID_URL = r'https?://(?:www\.)?lnkgo\.alfa\.lt/visi-video/(?P<show>[^/]+)/ziurek-(?P<id>[A-Za-z0-9-]+)'
+    _VALID_URL = r'https?://(?:www\.)?lnkgo\.(?:alfa\.)?lt/visi-video/(?P<show>[^/]+)/ziurek-(?P<id>[A-Za-z0-9-]+)'
     _TESTS = [{
         'url': 'http://lnkgo.alfa.lt/visi-video/yra-kaip-yra/ziurek-yra-kaip-yra-162',
         'info_dict': {
@@ -42,6 +42,9 @@ class LnkGoIE(InfoExtractor):
         'params': {
             'skip_download': True,  # HLS download
         },
+    }, {
+        'url': 'http://www.lnkgo.lt/visi-video/aktualai-pratesimas/ziurek-putka-trys-klausimai',
+        'only_matching': True,
     }]
     _AGE_LIMITS = {
         'N-7': 7,