projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7f220b2
)
[gfycat] Extract id correctly (fixes #6165)
author
Yen Chi Hsuan
<yan12125@gmail.com>
Tue, 7 Jul 2015 06:16:56 +0000
(14:16 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Tue, 7 Jul 2015 06:16:56 +0000
(14:16 +0800)
youtube_dl/extractor/gfycat.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/gfycat.py
b/youtube_dl/extractor/gfycat.py
index 397f1d42eea83b774791b6a53ce087f60a5dcca1..048ee31e28bec1970db3dc7784a5f30674dd054b 100644
(file)
--- a/
youtube_dl/extractor/gfycat.py
+++ b/
youtube_dl/extractor/gfycat.py
@@
-10,8
+10,8
@@
from ..utils import (
class GfycatIE(InfoExtractor):
class GfycatIE(InfoExtractor):
- _VALID_URL = r'https?://(?:www\.)?gfycat\.com/(?P<id>[^/?#]+)'
- _TEST
=
{
+ _VALID_URL = r'https?://(?:www\.)?gfycat\.com/(?
:ifr/)?(?
P<id>[^/?#]+)'
+ _TEST
S = [
{
'url': 'http://gfycat.com/DeadlyDecisiveGermanpinscher',
'info_dict': {
'id': 'DeadlyDecisiveGermanpinscher',
'url': 'http://gfycat.com/DeadlyDecisiveGermanpinscher',
'info_dict': {
'id': 'DeadlyDecisiveGermanpinscher',
@@
-27,7
+27,23
@@
class GfycatIE(InfoExtractor):
'categories': list,
'age_limit': 0,
}
'categories': list,
'age_limit': 0,
}
- }
+ }, {
+ 'url': 'http://gfycat.com/ifr/JauntyTimelyAmazontreeboa',
+ 'info_dict': {
+ 'id': 'JauntyTimelyAmazontreeboa',
+ 'ext': 'mp4',
+ 'title': 'JauntyTimelyAmazontreeboa',
+ 'timestamp': 1411720126,
+ 'upload_date': '20140926',
+ 'uploader': 'anonymous',
+ 'duration': 3.52,
+ 'view_count': int,
+ 'like_count': int,
+ 'dislike_count': int,
+ 'categories': list,
+ 'age_limit': 0,
+ }
+ }]
def _real_extract(self, url):
video_id = self._match_id(url)
def _real_extract(self, url):
video_id = self._match_id(url)