Sign up here and you can log into the forum!

OPML Podcast plugin problems

Discussion, features, plugins--everything about zoster's UMSP UPnP Media Server software

OPML Podcast plugin problems   

Postby till » Sat Jan 08, 2011 5:59 pm

Hi,

I started writing a small OPML plugin starting from the existing news plugins to be able to browse podcast/station database.

However, I still have a few problems, I find hard to debug. Because the umsp-test.php script seems to not expose many errors (also container related stuff). Anyway I post my files here in the meantime maybe someone else can make out the errors more easily.

The code is here
http://forum.wdlxtv.com/viewtopic.php?f=53&t=3166

The link also contains example configuration via the umsp item plugin. The BBC example works fine. The radiotime and podcasts.com expose the problems I still have. They work with the test script but not on the device.

I still have some ideas about the possible problems, but I also would really be grateful if someone with more experience could look at it. For me it is often rather guessing...

-till

Edit: Moved code to plugins sub forum
Last edited by till on Sun Jan 09, 2011 5:26 am, edited 3 times in total.
till
Donor
 
Posts: 13
Joined: Sat Jan 08, 2011 5:33 pm

Re: OPML/RSS Podcast plugin   

Postby nicandmih » Sun Jan 09, 2011 12:03 am

HY,
I studdy your problem and i found just a daily-podcasts.xml file :
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<list>
   <item>                                                                 
      <description>ZDF</description>                               
      <image></image>                               
      <item>                                             
         <description>ZDF</description>             
            <url>http://www.zdf.de/ZDFmediathek/podcast/222506?view=podcast</url>
         <class>object.item.videoItem</class>     
         <limit>-24</limit>                                           
      </item>                                                 
   </item>
   <item>                                                                 
      <description>CHAOS</description>                               
      <image></image>                               
      <item>                                             
         <description>CHAOS</description>             
            <url>http://chaosradio.ccc.de/chaosradio_express-latest.rss</url>
         <class></class>     
         <limit>-24</limit>                                           
      </item>                                                 
   </item>
   <item>                                                                 
      <description>tagesschau</description>                               
      <image>http://www.tagesschau.de/image/podcast/ts-140.jpg</image>                               
      <item>                                             
         <description>tagesschau</description>             
            <url>http://www.tagesschau.de/export/video-podcast/webl/tagesschau/</url>
         <class>object.item.videoItem</class>     
         <limit>-24</limit>                                           
      </item>                                                 
   </item>
</list>
No BBC; no Radiotime, but i give u tagesschau!
Nicu.
nicandmih
Donor
 
Posts: 270
Joined: Sun Apr 11, 2010 10:46 am
Location: Romania, Constanta

Re: OPML/RSS Podcast plugin   

Postby till » Sun Jan 09, 2011 4:22 am

Thanks for pointing me to daily podcasts plugin. I changed my code to use this plugin (no need for 2 rss plugins). But my problem is on the opml / umsp debugging side. The opml plugin provides a nice way to browse through rss collection like the BBC opml.


-till
till
Donor
 
Posts: 13
Joined: Sat Jan 08, 2011 5:33 pm

digitalpodcast.com   

Postby till » Sun Jan 09, 2011 5:04 am

After a small fix here is another nice application of the OPML plugin. (I updated the plugin a little)

umsp-items.conf line:
Code: Select all
<item id="opml" param.url="http://www.digitalpodcast.com/opml/digitalpodcast.opml" dc.title="Digital Podcast"/>
till
Donor
 
Posts: 13
Joined: Sat Jan 08, 2011 5:33 pm

Re: OPML Podcast plugin problems   

Postby nicandmih » Sun Jan 09, 2011 5:39 am

I fallow this link: http://www.bbc.co.uk/radio/opml/bbc_podcast_opml.xml. I discover a lot of link for podcasts , but i do not have ideea haw u can put toghether. bbc plughin from UPMS mabe can be used. Radio time have a diferrit extension:asxh i 'm not shure if it is compatibile.
nicandmih
Donor
 
Posts: 270
Joined: Sun Apr 11, 2010 10:46 am
Location: Romania, Constanta

Re: OPML Podcast plugin problems   

Postby till » Sun Jan 09, 2011 5:46 am

Use my plugin above. It works for the BBC example.

It only has minor issues with other sites:
For radio time it is only the feed format (not rss). For podcasts.com it is some issue with the opml includes.
till
Donor
 
Posts: 13
Joined: Sat Jan 08, 2011 5:33 pm

Re: OPML Podcast plugin problems   

Postby nicandmih » Sun Jan 09, 2011 6:23 am

For me do not work i have this message:
Code: Select all
      Warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /tmp/umsp-plugins/opml/opml.php on line 8

      Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /tmp/umsp-plugins/opml/opml.php:8 Stack trace: #0 /tmp/umsp-plugins/opml/opml.php(8): SimpleXMLElement->__construct('') #1 /tmp/www-tmp/umsp2html.php(177): _pluginMain(NULL) #2 /tmp/www-tmp/umsp2html.php(113): _callPlugin('/opml/opml', NULL) #3 {main} thrown in /tmp/umsp-plugins/opml/opml.php on line 8
nicandmih
Donor
 
Posts: 270
Joined: Sun Apr 11, 2010 10:46 am
Location: Romania, Constanta

Re: OPML Podcast plugin problems   

Postby till » Sun Jan 09, 2011 9:08 am

nicandmih wrote:For me do not work i have this message:
Code: Select all
      Warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /tmp/umsp-plugins/opml/opml.php on line 8


Make sure that you pass the opml URL via the "url" parameter to the feed. The plugin currently has no (default) configuration file and no error handling! Do that either via the umsp-items.xml or by e.g. pasting "?url=http%3A%2F%2Fopml.podcast.com%2F46429%2F" after the plugin url

-till
till
Donor
 
Posts: 13
Joined: Sat Jan 08, 2011 5:33 pm

Re: OPML Podcast plugin problems   

Postby nicandmih » Sun Jan 09, 2011 11:04 am

till,

Hi, I dont think I can handle, I'm tired all day at the computer, go hard and English. Your plugin looks very interesting but to go. keep me informed please. Nicu
nicandmih
Donor
 
Posts: 270
Joined: Sun Apr 11, 2010 10:46 am
Location: Romania, Constanta

Re: OPML Podcast plugin problems   

Postby nicandmih » Tue Mar 29, 2011 10:36 am

Hi,

I want to concatenate 2 or more opml, anybody have an ideea?

the opml can be attachhed on the stick and play on Daily-Podcasts
nicandmih
Donor
 
Posts: 270
Joined: Sun Apr 11, 2010 10:46 am
Location: Romania, Constanta


Return to UMSP Media Server

Who is online

Users browsing this forum: No registered users and 2 guests