checked code with flake8
This commit is contained in:
parent
a1a646be83
commit
6a5bcb2cab
1
YcAQlkx.info.json
Normal file
1
YcAQlkx.info.json
Normal file
@ -0,0 +1 @@
|
||||
{"display_id": "YcAQlkx", "extractor": "ImgurAlbum", "playlist": null, "format": "0 - unknown", "url": "http://imgur.com/YcAQlkx", "extractor_key": "ImgurAlbum", "title": "Classic Steve Carell gif...cracks me up everytime....damn the repost downvotes....", "playlist_index": null, "ext": "unknown_video", "fulltitle": "Classic Steve Carell gif...cracks me up everytime....damn the repost downvotes....", "webpage_url": "https://imgur.com/gallery/YcAQlkx", "_filename": "YcAQlkx.unknown_video", "format_id": "0", "http_headers": {"Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7", "Accept-Language": "en-us,en;q=0.5", "Accept-Encoding": "gzip, deflate", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/20.0 (Chrome)"}, "id": "YcAQlkx", "webpage_url_basename": "YcAQlkx"}
|
@ -108,7 +108,7 @@ class ImgurAlbumIE(InfoExtractor):
|
||||
'id': 'Q95ko',
|
||||
},
|
||||
'playlist_count': 25,
|
||||
},{
|
||||
}, {
|
||||
'url': 'https://imgur.com/gallery/YcAQlkx',
|
||||
'info_dict': {
|
||||
'id': 'YcAQlkx',
|
||||
@ -120,9 +120,9 @@ class ImgurAlbumIE(InfoExtractor):
|
||||
album_id = self._match_id(url)
|
||||
|
||||
album_img_data = self._download_json(
|
||||
'http://imgur.com/gallery/%s/album_images/hit.json?all=true' % album_id,album_id)['data']
|
||||
'http://imgur.com/gallery/%s/album_images/hit.json?all=true' % album_id, album_id)['data']
|
||||
|
||||
if len(album_img_data) == 0 :
|
||||
if len(album_img_data) == 0:
|
||||
entries = [self.url_result('http://imgur.com/%s' % album_id)]
|
||||
else:
|
||||
album_images = album_img_data['images']
|
||||
|
Loading…
x
Reference in New Issue
Block a user