def trailer(item): import youtube itemlist = [] item.url = "https://www.googleapis.com/youtube/v3/search" + \ "?q=" + item.show.replace(" ","+") + "+trailer+HD+Español" \ "®ionCode=ES" + \ "&part=snippet" + \ "&hl=es_ES" + \ "&key=AIzaSyAd-YEOqZz9nXVzGtn3KWzYLbLaajhqIDA" + \ "&type=video" + \ "&maxResults=50" + \ "&pageToken=" itemlist.extend(youtube.fichas(item)) #itemlist.pop(-1) return itemlist