remove outer parentheses in if
Conflicts:
youtube_dl/extractor/imgur.py
checked code with flake8
not returning list in case of single images.
using the fact that id with length 5 are albums and more are single videos.
Also for single videos ie ImgurIE both urls - http://imgur.com/gallery/oWeAMW2 and http://imgur.com/oWeAMW2 are equally fine. Change regex to allow thuis.
For albums urls - http://imgur.com/gallery/Q95ko and http://imgur.com/Q95ko are ok. Change regex to allow this also.
update description in ImgurIE Tests.
Also move single video test 'https://imgur.com/gallery/YcAQlkx' from ImgurAlbumIE to ImgurIE.
'title':'re:Imgur GIF$|MRW gifv is up and running without any bugs$',
'title':'re:Imgur GIF$|MRW gifv is up and running without any bugs$',
'description':'re:The origin of the Internet\'s most viral images$|The Internet\'s visual storytelling community\. Explore, share, and discuss the best visual stories the Internet has to offer\.$',
'description':'Imgur: The most awesome images on the Internet.',
},
},
},{
},{
'url':'https://imgur.com/A61SaA1',
'url':'https://imgur.com/A61SaA1',
@ -29,8 +29,17 @@ class ImgurIE(InfoExtractor):
'id':'A61SaA1',
'id':'A61SaA1',
'ext':'mp4',
'ext':'mp4',
'title':'re:Imgur GIF$|MRW gifv is up and running without any bugs$',
'title':'re:Imgur GIF$|MRW gifv is up and running without any bugs$',
'description':'re:The origin of the Internet\'s most viral images$|The Internet\'s visual storytelling community\. Explore, share, and discuss the best visual stories the Internet has to offer\.$',
'description':'Imgur: The most awesome images on the Internet.',
},
},
},{
'url':'https://imgur.com/gallery/YcAQlkx',
'info_dict':{
'id':'YcAQlkx',
'ext':'mp4',
'title':'Classic Steve Carell gif...cracks me up everytime....damn the repost downvotes....',
'description':'Imgur: The most awesome images on the Internet.'