copy code structure from youtube_dl/you-get, support flickr