Raptor 2101 Wrote:yeah, i fixed this problem. i didn't mentioned that some attributes are "optional".
but i didn't push this in the repository cause i'am hunting a additional problem.
for quick fix, replace your local __init__.py whit this https://github.com/raptor2101/PodCatcher..._init__.py
Thanks, I updated my install with this file, it gets further but still crashes when using the OPML file from
http://www.npr.org/podcasts.opml
Code:
16:31:17 T:140445967447824 M:2550845440 NOTICE: ['plugin://plugin.audio.podcatcher/', '0', '']
16:31:17 T:140445967447824 M:2550845440 NOTICE: [PodCatcher]: special://profile/addon_data/plugin.audio.podcatcher/opml.xml
16:31:17 T:140445967447824 M:2550591488 DEBUG: xbp_dlopen loading python lib /usr/local/lib64/xbmc/system/python/python24.zip/pyexpat.so. flags: 2
16:31:17 T:140445967447824 M:2551091200 DEBUG: Loading: /home/myth/.xbmc/temp/pyexpat.so
16:31:17 T:140445967447824 M:2551091200 DEBUG: RegisterExtensionLib, adding pyexpat.so (0x7fbc396b2610)
16:31:17 T:140445967447824 M:2551091200 DEBUG: xbp_dlsym - load symbol initpyexpat
16:31:18 T:140445967447824 M:2498695168 NOTICE: [PodCatcher]: Path:
16:31:18 T:140445967447824 M:2498695168 NOTICE: [PodCatcher]: Action: browse
16:31:18 T:140445967447824 M:2498695168 NOTICE: [PodCatcher]: OpmlFolder
16:31:18 T:140445967447824 M:2498695168 NOTICE: [PodCatcher]: Load: http://www.publicbroadcasting.net/wual/.jukebox?action=viewPodcast&podcastId=3783
16:31:18 T:140445967447824 M:2498695168 NOTICE: [PodCatcher]: Downloading from url=http://www.publicbroadcasting.net/wual/.jukebox?action=viewPodcast&podcastId=3783
16:31:18 T:140445967447824 M:2496696320 DEBUG: xbp_dlopen loading python lib /usr/local/lib64/xbmc/system/python/python24.zip/_locale.so. flags: 2
16:31:18 T:140445967447824 M:2496720896 DEBUG: Loading: /home/myth/.xbmc/temp/_locale.so
16:31:18 T:140445967447824 M:2496720896 DEBUG: RegisterExtensionLib, adding _locale.so (0x7fbc08af4090)
16:31:18 T:140445967447824 M:2496720896 DEBUG: xbp_dlsym - load symbol init_locale
16:31:18 T:140445967447824 M:2496720896 NOTICE: [PodCatcher]: Load: http://www.publicbroadcasting.net/wual/.jukebox?action=viewPodcast&podcastId=177
16:31:18 T:140445967447824 M:2496720896 NOTICE: [PodCatcher]: Downloading from url=http://www.publicbroadcasting.net/wual/.jukebox?action=viewPodcast&podcastId=177
16:31:18 T:140445788583696 M:2495127552 INFO: Loading skin file: DialogProgress.xml
16:31:18 T:140445788583696 M:2495127552 DEBUG: Load DialogProgress.xml: 1.04ms
16:31:18 T:140445788583696 M:2495127552 DEBUG: DialogProgress::StartModal called
16:31:18 T:140445788583696 M:2495127552 DEBUG: ------ Window Init (DialogProgress.xml) ------
16:31:18 T:140445788583696 M:2495127552 DEBUG: Alloc resources: 0.81ms (0.00 ms skin load)
16:31:18 T:140447477909664 M:2495000576 DEBUG: LIRC: Update - NEW at 46032994:0000000080010094 00 KEY_PROG1_UP Antec_Veris_RM200 (KEY_PROG1_UP)
16:31:18 T:140445967447824 M:2494464000 NOTICE: [PodCatcher]: OpmlFolder
16:31:18 T:140445967447824 M:2494464000 NOTICE: [PodCatcher]: Load: http://www.npr.org/rss/podcast.php?id=510285
16:31:18 T:140445967447824 M:2494464000 NOTICE: [PodCatcher]: Downloading from url=http://www.npr.org/rss/podcast.php?id=510285
16:31:18 T:140445967447824 M:2494394368 NOTICE: [PodCatcher]: OpmlFolder
16:31:18 T:140445967447824 M:2494394368 NOTICE: [PodCatcher]: Load: http://www.npr.org/holidays
16:31:18 T:140445967447824 M:2494394368 NOTICE: [PodCatcher]: Downloading from url=http://www.npr.org/holidays
16:31:18 T:140447477909664 M:2494148608 DEBUG: ------ Window Deinit (DialogBusy.xml) ------
16:31:19 T:140445967447824 M:2494021632 INFO: -->Python script returned the following error<--
16:31:19 T:140445967447824 M:2494021632 ERROR: Error Type: xml.parsers.expat.ExpatError
16:31:19 T:140445967447824 M:2494021632 ERROR: Error Contents: not well-formed (invalid token): line 4, column 778
16:31:19 T:140445967447824 M:2493894656 ERROR: Traceback (most recent call last):
File "/home/myth/.xbmc/addons/plugin.audio.podcatcher/default.py", line 105, in ?
opmlFile.displayMenu(path);
File "/home/myth/.xbmc/addons/plugin.audio.podcatcher/feedreader/opml.py", line 108, in displayMenu
self.opmlFolder.displayMenu(path);
File "/home/myth/.xbmc/addons/plugin.audio.podcatcher/feedreader/opml.py", line 46, in displayMenu
self.gui.buildMenuEntry(element);
File "/home/myth/.xbmc/addons/plugin.audio.podcatcher/simplexbmc.py", line 80, in buildMenuEntry
if(menuElement.hasUnreadItems()):
File "/home/myth/.xbmc/addons/plugin.audio.podcatcher/feedreader/opml.py", line 80, in hasUnreadItems
if(element.hasUnreadItems()):
File "/home/myth/.xbmc/addons/plugin.audio.podcatcher/feedreader/__init__.py", line 89, in hasUnreadItems
self.loadFeed();
File "/home/myth/.xbmc/addons/plugin.audio.podcatcher/feedreader/__init__.py", line 97, in loadFeed
self.updateFeed();
File "/home/myth/.xbmc/addons/plugin.audio.podcatcher/feedreader/rss.py", line 33, in updateFeed
xmlDocument = minidom.parseString(xmlPage);
File "../Python/Lib/xml/dom/minidom.py", line 1925, in parseString
File "../Python/Lib/xml/dom/expatbuilder.py", line 940, in parseString
File "../Python/Lib/xml/dom/expatbuilder.py", line 223, in parseString
ExpatError: not well-formed (invalid token): line 4, column 778
16:31:19 T:140445967447824 M:2493894656 INFO: -->End of Python script error report<--
16:31:19 T:140445967447824 M:2493894656 INFO: Python script stopped
16:31:19 T:140445967447824 M:2493894656 DEBUG: Thread 140445967447824 terminating
16:31:19 T:140447477909664 M:2493894656 DEBUG: python thread 157 destructed
16:31:19 T:140447477909664 M:2493894656 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
16:31:19 T:140447477909664 M:2493894656 DEBUG: Alloc resources: 0.01ms (0.00 ms skin load)
16:31:19 T:140445788583696 M:2493894656 DEBUG: WaitOnScriptResult - plugin exited prematurely - terminating
16:31:19 T:140447477909664 M:2493870080 ERROR: GetDirectory - Error getting plugin://plugin.audio.podcatcher/
16:31:19 T:140447477909664 M:2493870080 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.podcatcher/) failed
16:31:19 T:140447477909664 M:2493870080 DEBUG: CGUIMediaWindow::GetDirectory (addons://sources/audio/)
Seems that the xmlUrl is not well-formed,
Code:
<outline
text=""
title=""
type="rss"
version="RSS"
imageHref=""
description="Fifty of the most memorable stories from NPR in 2007, as selected by NPR.org's editorial team."
typicalDurationMins=""
orgId="1"
topicId="1008"
orgName="National Public Radio"
topicName="Arts &amp; Life"
xmlUrl="http://www.npr.org/holidays"
htmlUrl=""
/>
So the plugin should probably be made more robust by skipping individuals feeds that don't parse, rather than aborting completely, since most OPML files will often be long and have multiple feeds, which may or may not always parse.