GetDirectory失败| Kodi附加组件

时间:2018-02-18 11:27:06

标签: kodi

我是python的新手,我想制作Kodi附加组件,我遇到了GetDirectory的问题。

代码:

def get_category_videos(category_link):
category_number = resolve_category_number(category_link)
page = get_html_json(WEBCAMERA_CATEGORY_VIDEOS + category_number)

videos = []
for camera in page.find_all("div", attrs={'class': re.compile('.*inlinecam.*')}):
    videos.append({
        'thumb': "http:" + str(camera.find_all('img')[0]['data-src']),
        'link': "http:" + str(camera.find_all('a')[0]['href']),
        'name': camera.find_all('span')[0].text.strip()
    })

return videos

网站代码:

<div class="inlinecam inlinecam-fixed ">
<a href="//dzwirzyno.webcamera.pl/" title="Przejdź do kamery Dźwirzyno - HAVET">
    <span class="bar">Dźwirzyno - HAVET</span>

Kodi日志错误: 11:17:20.201 T:13496错误:XFILE :: CDirectory :: GetDirectory - 获取插件时出错://plugin.video.webcamera.pl/?action = listing&amp; category_link = https%3a%2f%2fwww.webcamera.pl %2fkategoria%2cmiasta 11:17:20.202 T:13496错误:CGUIMediaWindow :: GetDirectory(插件://plugin.video.webcamera.pl/?action = listing&amp; category_link = https%3a%2f%2fwww.webcamera.pl%2fkategoria%2cmiasta)失败

我想从inlinecam div类列出摄像头,但我不能。有什么问题?

0 个答案:

没有答案