]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[ynet] Improve _VALID_URL
authorSergey M․ <dstftw@gmail.com>
Sat, 27 Sep 2014 20:30:41 +0000 (03:30 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 27 Sep 2014 20:30:41 +0000 (03:30 +0700)
youtube_dl/extractor/ynet.py

index 66d53962a58c9d78cede366ecc684dd5fe3a3472..24872861a940dfe6b6788b8c043b5645b5d4780a 100644 (file)
@@ -9,7 +9,7 @@ from ..utils import compat_urllib_parse
 
 
 class YnetIE(InfoExtractor):
-    _VALID_URL = r'http://.*ynet\.co\.il/.*/0,7340,(?P<id>L(?:-[0-9]+)+),00\.html'
+    _VALID_URL = r'http://(?:.+?\.)?ynet\.co\.il/(?:.+?/)?0,7340,(?P<id>L(?:-[0-9]+)+),00\.html'
     _TESTS = [
         {
             'url': 'http://hot.ynet.co.il/home/0,7340,L-11659-99244,00.html',