Browse Source

[ynet] Improve _VALID_URL

Sergey M․ 11 years ago
parent
commit
a89435a7a8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      youtube_dl/extractor/ynet.py

+ 1 - 1
youtube_dl/extractor/ynet.py

@@ -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',