Example #1
0
File: utils.py Project: B-Rich/svv
def get_list(url):
    downloader = get_downloader()
    ie_list = YoutubeUserIE(downloader=downloader)
    if not ie_list.suitable(url):
        ie_list = YoutubePlaylistIE(downloader=downloader)
    try:
        result = ie_list.extract(url)
    except ExtractorError:
        return []
    return ["http://www.youtube.com/watch?v={0}".format(x["url"]) for x in result["entries"].getslice()]