2015-01-21, 05:53
Hi, I am creating a simple addon on frodo. it fetch all the item list from three level sub-pages but shows blank list at final songs list page.
This is where it shows empty list:
log:
This is where it shows empty list:
Code:
def songslist(url):
link=OPEN_URL(url)
link=link.split('<tbody>')[1]
link=link.split('</tbody>')[0]
match=re.compile('value="(.+?)".*?title=(.+?)"').findall(link)
for url,name in match:
addDir(name,'http://www.sikhnet.com/gurbani/audio/play/'+str(url),2,'','')
return
url is http://www.sikhnet.com/gurbani/artist/7121/audio
log:
Code:
20:49:33 T:8440 DEBUG: Instantiating addon using automatically obtained id of "plugin.video.testaudio" dependent on version 2.0 of the xbmc.python api
20:49:33 T:8440 NOTICE: Mode: 11
20:49:33 T:8440 NOTICE: URL: http://www.sikhnet.com/gurbani/artist/7121/audio
20:49:33 T:8440 NOTICE: Name: Click OK for list
20:49:33 T:8440 NOTICE: IconImage: None
20:49:33 T:8440 NOTICE: http://www.sikhnet.com/gurbani/artist/7121/audio
20:49:33 T:16284 DEBUG: ------ Window Init (DialogBusy.xml) ------
20:49:34 T:8440 INFO: Scriptresult: Success
20:49:34 T:12744 DEBUG: XFILE::CPluginDirectory::WaitOnScriptResult- plugin returned successfully
20:49:34 T:11152 NOTICE: Thread Background Loader start, auto delete: false
20:49:34 T:8440 INFO: Python script stopped
20:49:34 T:8440 DEBUG: Thread XBPyThread 8440 terminating
20:49:34 T:16284 DEBUG: waiting for python thread 83 (C:\Users\EAI\AppData\Roaming\XBMC\addons\plugin.video.sikhnet\default.py) to stop
20:49:34 T:16284 DEBUG: python thread 83 (C:\Users\EAI\AppData\Roaming\XBMC\addons\plugin.video.sikhnet\default.py) destructed
20:49:34 T:11152 DEBUG: Thread Background Loader 11152 terminating
20:49:34 T:16284 DEBUG: ------ Window Deinit (DialogBusy.xml) ------
20:49:35 T:16284 DEBUG: Keyboard: scancode: 38, sym: 0134, unicode: 0000, modifier: 100
20:49:35 T:16284 DEBUG: CApplication::OnKey: alt-leftalt (4f0d4) pressed, action is
20:49:35 T:16284 DEBUG: CWinEventsWin32::WndProcWindow is active
20:49:35 T:16284 DEBUG: CWinEventsWin32::WndProc: Focus switched to process C:\Windows\explorer.exe