raptor2101 / PodCatcher

A PodCatcher-Addon for xBMC
GNU General Public License v3.0
9 stars 5 forks source link

Allow for multiple outline hierarchies #5

Open samperd opened 9 years ago

samperd commented 9 years ago

@raptor2101 I am currently running PodCatcher v 0.1.9 running on RaspBMC (now Kodi) I am able to use an opml.xml file with a single outline hierachy, but not multiple outline hierarchies.

According to OPML spec we should be able to use multiple hierachies: http://dev.opml.org/spec1.html "An is an XML element, possibly containing one or more attributes, and containing any number of sub-elements."

The OPML's below should also validate according to: http://validator.opml.org

Sample single hierarchy that works

<?xml version="1.0" encoding="utf-8" ?>
<opml version="1.1">
<head>
<title>Podcasts</title>
<dateCreated>Fri, 02 Jan 2015 17:40:20 +0100</dateCreated></head>

<body>
<outline text="CBC Podcasts">
<outline text="CBC Spark" type="rss" xmlUrl="http://www.cbc.ca/podcasting/includes/spark.xml" />
<outline text="CBC Ideas" type="rss" xmlUrl="http://www.cbc.ca/podcasting/includes/ideas.xml" />
<outline text="CBC How To Do It" type="rss" xmlUrl="http://www.cbc.ca/podcasting/includes/howtodoit.xml" />
<outline text="CBC Laugh Out Loud" type="rss" xmlUrl="http://www.cbc.ca/podcasting/includes/laughoutloud.xml" />
<outline text="CBC Misener On Tech" type="rss" xmlUrl="http://www.cbc.ca/podcasting/includes/misenerontech.xml" />
<outline text="CBC The House" type="rss" xmlUrl="http://www.cbc.ca/podcasting/includes/thehouse.xml" />
</outline>
</outline>
</body>
</opml>

Sample multi-hierarchy that fails

<?xml version="1.0" encoding="utf-8" ?>
<opml version="1.1">
<head>
<title>Podcasts</title>
<dateCreated>Fri, 02 Jan 2015 17:40:20 +0100</dateCreated></head>

<body>
<outline text="CBC Podcasts">
<outline text="CBC Spark" type="rss" xmlUrl="http://www.cbc.ca/podcasting/includes/spark.xml" />
<outline text="CBC Ideas" type="rss" xmlUrl="http://www.cbc.ca/podcasting/includes/ideas.xml" />
<outline text="CBC How To Do It" type="rss" xmlUrl="http://www.cbc.ca/podcasting/includes/howtodoit.xml" />
<outline text="CBC Laugh Out Loud" type="rss" xmlUrl="http://www.cbc.ca/podcasting/includes/laughoutloud.xml" />
<outline text="CBC Misener On Tech" type="rss" xmlUrl="http://www.cbc.ca/podcasting/includes/misenerontech.xml" />
<outline text="CBC The House" type="rss" xmlUrl="http://www.cbc.ca/podcasting/includes/thehouse.xml" />
</outline>

<outline text="O'Reilly Network">
<outline text="FOO Casts: Podcasts from O'Reilly & Friends" type="rss" xmlUrl="http://www.oreillynet.com/pub/feed/32?format=rss2" />
<outline text="MAKE Audio" type="rss" xmlUrl="http://makezine.com/blog/archive/make_podcast/index.xml" />
</outline>
</body>
</opml>```

Any ideas on how to use multiple hierarchies to help organize podcasts?
samperd commented 9 years ago

Correction,

After more troubleshooting looks like the issue may be with the O'Reilly feeds.

Example multi hierarchy using CBC podcasts

<?xml version="1.0" encoding="utf-8" ?>
<opml version="1.1">
<head>
<title>Podcasts</title>
<dateCreated>Fri, 02 Jan 2015 17:40:20 +0100</dateCreated></head>
<body>
<outline text="CBC 1 Podcasts">
<outline title="CBC Spark" text="CBC Spark" type="rss" xmlUrl="http://www.cbc.ca/podcasting/includes/spark.xml" />
<outline title="CBC Ideas" text="CBC Ideas" type="rss" xmlUrl="http://www.cbc.ca/podcasting/includes/ideas.xml" />
</outline>
<outline text="CBC 2 Podcasts">
<outline title="CBC How To Do It" text="CBC How To Do It" type="rss" xmlUrl="http://www.cbc.ca/podcasting/includes/howtodoi>
<outline title="CBC Laugh Out Loud" text="CBC Laugh Out Loud" type="rss" xmlUrl="http://www.cbc.ca/podcasting/includes/laug>
<outline title="CBC Misener On Tech.xml" text="CBC Misener On Tech" type="rss" xmlUrl="http://www.cbc.ca/podcasting/include>
<outline title="CBC The House" text="CBC The House" type="rss" xmlUrl="http://www.cbc.ca/podcasting/includes/thehouse.xml" >
</outline>

</body>
</opml>
samperd commented 9 years ago

Perhaps providing a bit more info in the log file might be good to suggest what is failing.

I was looking at /home/pi/.kodi/temp/kodi.log

Errors are pretty sparse and essentially python back traces.

raptor2101 commented 9 years ago

can you send me your full opml so i can run a test on my maschine?