projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
70219b0
)
[nfl] Relax _VALID_URL (fixes #5940)
author
Yen Chi Hsuan
<yan12125@gmail.com>
Wed, 10 Jun 2015 06:15:20 +0000
(14:15 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Wed, 10 Jun 2015 06:17:03 +0000
(14:17 +0800)
youtube_dl/extractor/nfl.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/nfl.py
b/youtube_dl/extractor/nfl.py
index 2684dd250aa65e22903612f4a1780fc8f701296a..dc54634a58e440fc70ae9bcb3e7d5781981b2b1e 100644
(file)
--- a/
youtube_dl/extractor/nfl.py
+++ b/
youtube_dl/extractor/nfl.py
@@
-19,7
+19,7
@@
class NFLIE(InfoExtractor):
_VALID_URL = r'''(?x)https?://
(?P<host>(?:www\.)?(?:nfl\.com|.*?\.clubs\.nfl\.com))/
(?:.+?/)*
_VALID_URL = r'''(?x)https?://
(?P<host>(?:www\.)?(?:nfl\.com|.*?\.clubs\.nfl\.com))/
(?:.+?/)*
- (?P<id>(?:
\d[a-z]{2}\d{13
}|\w{8}\-(?:\w{4}\-){3}\w{12}))'''
+ (?P<id>(?:
[a-z0-9]{16
}|\w{8}\-(?:\w{4}\-){3}\w{12}))'''
_TESTS = [
{
'url': 'http://www.nfl.com/videos/nfl-game-highlights/0ap3000000398478/Week-3-Redskins-vs-Eagles-highlights',
_TESTS = [
{
'url': 'http://www.nfl.com/videos/nfl-game-highlights/0ap3000000398478/Week-3-Redskins-vs-Eagles-highlights',
@@
-58,6
+58,10
@@
class NFLIE(InfoExtractor):
'upload_date': '20150202',
},
},
'upload_date': '20150202',
},
},
+ {
+ 'url': 'http://www.nfl.com/videos/nfl-network-top-ten/09000d5d810a6bd4/Top-10-Gutsiest-Performances-Jack-Youngblood',
+ 'only_matching': True,
+ }
]
@staticmethod
]
@staticmethod