2013-10-14, 19:40
This is the function that looks in a given url for matches based on a pattern and then adds links for each match:
And this is the error I get:
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.
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.