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()]