Traceback when trying to read a podcast

Bug #172356 reported by Marc Poulhiès
2
Affects Status Importance Assigned to Milestone
Exaile
Fix Released
Undecided
Unassigned

Bug Description

When adding this podcast: http://www.lemonde.fr/pod/fil/0,57-0,64-970371,0.xml
I get this output in term:

Radiozapping Le "réveil des ghettos" http://medias.lemonde.fr/mmpub/edt/son/20071127/982872_2_radiozapping071127.mp3
Radiozapping "On nous traite comme des chiens" http://medias.lemonde.fr/mmpub/edt/son/20071126/982469_2_radiozapping071126.mp3
Radiozapping Les quartiers chics contre Rachida Dati http://medias.lemonde.fr/mmpub/edt/son/20071123/981703_2_radiozapping071123.mp3
Radiozapping Mobilisation pour Jacques Chirac http://medias.lemonde.fr/mmpub/edt/son/20071122/981234_2_radiozapping071122.mp3
Radiozapping "Oui à la liberté de fumer" http://medias.lemonde.fr/mmpub/edt/son/20071121/980753_2_radiozapping071121.mp3
Radiozapping L'"OPA" des cheminots sur la grève http://medias.lemonde.fr/mmpub/edt/son/20071119/979883_2_radiozapping071119.mp3
Radiozapping En attendant Sarkozy http://medias.lemonde.fr/mmpub/edt/son/20071120/980324_2_radiozapping071120.mp3
Radiozapping Grève ou écologie, il faut choisir ! http://medias.lemonde.fr/mmpub/edt/son/20071116/979131_2_radiozapping071116.mp3
Radiozapping Grèves : le bout du tunnel ? http://medias.lemonde.fr/mmpub/edt/son/20071115/978720_2_radiozapping071115.mp3
Radiozapping La "contre-manif'" des usagers http://medias.lemonde.fr/mmpub/edt/son/20071114/978043_2_radiozapping071114.mp3
Traceback (most recent call last):
  File "/usr/lib/exaile/xl/panels/radio.py", line 544, in open_podcast
    self.add_podcast_to_queue(song)
  File "/usr/lib/exaile/xl/panels/radio.py", line 566, in add_podcast_to_queue
    self.podcast_queue.append(song)
  File "/usr/lib/exaile/xl/panels/radio.py", line 217, in append
    self.total_bytes += song.size
TypeError: unsupported operand type(s) for +=: 'int' and 'unicode'

I'm using up to date bzr branch for exail/main.

Revision history for this message
Marc Poulhiès (marc-poulhies) wrote :

After a small print-debug, I can see that the song.size attribute is empty and contains "":

The line:
        print "Size: [%s]" %song.size
outputs:
Size: []

If I look at the origin of this attribute, I see that it comes from the DB, but I don't know where this DB field is written... The podcasts are not downloaded (at least, not in ~/.exaile/podcast), so I wonder how this size field could be already filled correctly...

Revision history for this message
Marc Poulhiès (marc-poulhies) wrote :

Latest 'main' does not show this bug anymore... Not sure if it has been fixed in exaile or if the upstream rss was broken...

Revision history for this message
Johannes Sasongko (sjohannes) wrote :

Marking fixed for 0.2.12 then.

Changed in exaile:
milestone: none → 0.2.12
status: New → Fix Committed
Changed in exaile:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.