projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
308c505
)
[twitch:stream] Improve _VALID_URL (Closes #6294)
author
Sergey M․
<dstftw@gmail.com>
Sun, 19 Jul 2015 20:16:07 +0000
(
02:16
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 19 Jul 2015 20:16:07 +0000
(
02:16
+0600)
youtube_dl/extractor/twitch.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/twitch.py
b/youtube_dl/extractor/twitch.py
index 948c8ce39e6eb4de1fd4c3746af71f2d8d67a7a7..73ce335b7f0a5b5790f8dd65e3ac170e9791b7d8 100644
(file)
--- a/
youtube_dl/extractor/twitch.py
+++ b/
youtube_dl/extractor/twitch.py
@@
-310,9
+310,9
@@
class TwitchBookmarksIE(TwitchPlaylistBaseIE):
class TwitchStreamIE(TwitchBaseIE):
IE_NAME = 'twitch:stream'
class TwitchStreamIE(TwitchBaseIE):
IE_NAME = 'twitch:stream'
- _VALID_URL = r'%s/(?P<id>[^/]+)/?(?:\#.*)?$' % TwitchBaseIE._VALID_URL_BASE
+ _VALID_URL = r'%s/(?P<id>[^/
#?
]+)/?(?:\#.*)?$' % TwitchBaseIE._VALID_URL_BASE
- _TEST
=
{
+ _TEST
S = [
{
'url': 'http://www.twitch.tv/shroomztv',
'info_dict': {
'id': '12772022048',
'url': 'http://www.twitch.tv/shroomztv',
'info_dict': {
'id': '12772022048',
@@
-331,7
+331,10
@@
class TwitchStreamIE(TwitchBaseIE):
# m3u8 download
'skip_download': True,
},
# m3u8 download
'skip_download': True,
},
- }
+ }, {
+ 'url': 'http://www.twitch.tv/miracle_doto#profile-0',
+ 'only_matching': True,
+ }]
def _real_extract(self, url):
channel_id = self._match_id(url)
def _real_extract(self, url):
channel_id = self._match_id(url)