projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0a90b3
)
[ynet] Improve _VALID_URL
author
Sergey M․
<dstftw@gmail.com>
Sat, 27 Sep 2014 20:30:41 +0000
(
03:30
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 27 Sep 2014 20:30:41 +0000
(
03:30
+0700)
youtube_dl/extractor/ynet.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/ynet.py
b/youtube_dl/extractor/ynet.py
index 66d53962a58c9d78cede366ecc684dd5fe3a3472..24872861a940dfe6b6788b8c043b5645b5d4780a 100644
(file)
--- a/
youtube_dl/extractor/ynet.py
+++ b/
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',