Help, error while triying to add list videos.
#1
This is the function that looks in a given url for matches based on a pattern and then adds links for each match:

Code:
def listVideos(url, pattern):
    data = getUrl(url)

    matches = re.compile(pattern,re.DOTALL).findall(data)
    print matches

    for scrapedthumbnail, scrapedurl, scrapedtitle in matches:
        addLink(scrapedtitle, 'http://extreme-vidz.com'+scrapedurl, 'playVideo', scrapedthumbnail)

And this is the error I get:

Code:
19:06:05 T:5672   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.xtreme-vidz/?mode=listCatVideos&url=http%3a%2f%2fextreme-vidz.com%2fGraffiti%2ffree
19:06:05 T:5672   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.xtreme-vidz/?mode=listCatVideos&url=http%3a%2f%2fextreme-vidz.com%2fGraffiti%2ffree) failed

I can't understand what isn't working, depending on the selected category (directories) it then lists found videos. There are categories for bmx, mtb, snowboard, etc. and when selected the addon returns a list with found videos and three subcategories. Entering main categories works well but when trying to enter in the subcategories it gives me that error.
Reply
#2
Ok, found the solution. Forgot to add 'xbmcplugin.endOfDirectory(pluginhandle)' at the end of the function. Now everything is working, this thread can be deleted.
Reply

Logout Mark Read Team Forum Stats Members Help
Help, error while triying to add list videos.0