problems parsing through XML

Hi everyone,

 

I am trying to parse a XML like described in the API documentation

 

This is the XML (partially):

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2enclosuresfull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?>

  
    
      Special-Podcast: E3 2009 ~ Teil 2
      http://feedproxy.google.com/~r/mtvgameone/~3/zzf4jiZ_qy4/15.mp3
      Gregor, Simon & Etienne
      Nintendos Highlights von der E3 2009
      Nach der ausführlichen Diskussion von Microsofts und Sonys E3-Lineup ist diesmal Nintendo dran. Als Vertretung für Budi ist diesmal Kollege Etienne dabei, der uns durch die restlichen Messe-Specials begleitet.
      Gregor, Simon & Etienne
      Nach der ausführlichen Diskussion von Microsofts und Sonys E3-Lineup ist diesmal Nintendo dran. Als Vertretung für Budi ist diesmal Kollege Etienne dabei, der uns durch die restlichen Messe-Specials begleitet.<img src="http://feeds.feedburner.com/~r/mtvgameone/~4/zzf4jiZ_qy4" height="1" width="1"/>
  <guid isPermaLink="false">http://cdn.riptide-mtvn.com/production/0000/0015/15.mp3</guid>
  <pubDate>Sat, 06 Jun 2009 10:39:47 +0200</pubDate>
  <itunes:duration>00:48:21</itunes:duration>
  <itunes:keywords>GameOne, Podcast, E3, 2009, Gregor, Simon, Etienne, Nintendo, Mario, Metorid, Samus</itunes:keywords>
  <media:content url="http://feedproxy.google.com/~r/mtvgameone/~5/zzf4jiZ_qy4/15.mp3" type="audio/mpeg" /><itunes:explicit>no</itunes:explicit><feedburner:origLink>http://cdn.riptide-mtvn.com/production/0000/0015/15.mp3</feedburner:origLink><enclosure url="http://feedproxy.google.com/~r/mtvgameone/~5/zzf4jiZ_qy4/15.mp3" length="0" type="audio/mpeg" /><feedburner:origEnclosureLink>http://cdn.riptide-mtvn.com/production/0000/0015/15.mp3</feedburner:origEnclosureLink>
</item>
</channel>

I am using the API to get the XML and parse it

def MainMenu():
content = XML.ElementFromURL('http://gameone.de/feed/podcast.xml')
items = content.xpath('/rss/channel/item')

oc = ObjectContainer()

for item in items:
	title = item.xpath('./title')[0].text
	link = item.xpath('./link')[0].text
	author = item.xpath('./author')[0].text
	description = item.xpath('./description')[0].text
	#oc.add(DirectoryObject(key=Callback(SendungVerpasst, name="Sendung Verpasst"), title="Sendung Verpasst"))
	oc.add(CreateTrackObject(url=link, title=title, fmt='mp3', thumb=R(ICON)))

return oc

anyway, it seems that I do not get anything back. I gues I am using xpath incorrectly, am I right?

 

Thanks in advance ^^

 

EDIT:

I am sorry! This problem was also related to: https://forums.plex.tv/topic/107575-old-content-is-still-cached-and-cant-be-removed/#entry636849

With my WP8 app for Plex it works very well. Seems that my browser still had the non-functional channel cached.

 

It is weird, because I always reload chrome with CTRL+Shift+R which should empty the cache completely

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.