cuelgame.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:pelisalacarta-ce 作者: pelisalacarta-ce 项目源码 文件源码
def findvideos(item):
    logger.info()
    itemlist = []
    temp = item.fulltitle.split("|")[0]
    epi = item.fulltitle.split("|")[1]

    url_temp= "http://api.themoviedb.org/3/tv/"+item.show.split("|")[5]+"/season/"+temp+"/images?api_key="+api_key+""
    data = httptools.downloadpage(url_temp).data
    data = re.sub(r"\n|\r|\t|\s{2}| ","",data)
    patron = '{"id".*?"file_path":"(.*?)","height"'
    matches = re.compile(patron,re.DOTALL).findall(data)
    if len(matches) == 0:
        thumbnail= item.thumbnail
    for thumtemp in matches:
        thumbnail= "https://image.tmdb.org/t/p/original"+ thumtemp
        title = item.show.split("|")[3]+ " " + temp+"x"+epi
        title = "[COLOR lightgreen]"+title+"[/COLOR]"
        itemlist.append( Item(channel=item.channel, title = title , action="play", url=item.url, server="torrent", thumbnail= item.show.split("|")[4],extra=item.extra,show= item.show, fanart=item.show.split("|")[0],fulltitle = title,  folder=False) )
    extra = item.extra+"|"+temp+"|"+epi
    title_info ="    Info"
    title_info = "[COLOR darkseagreen]"+title_info+"[/COLOR]"
    itemlist.append( Item(channel=item.channel, action="info_capitulos" , title=title_info , url=item.url, thumbnail=thumbnail, fanart=item.show.split("|")[1], extra =extra,show=item.show,category=item.category, folder=False ))
    return itemlist
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号