M3U Playlist export error for 0-length files

Bug #477202 reported by AsstZD
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Exaile
Fix Released
Low
Johannes Sasongko

Bug Description

[Rev 2602]

  ...
  File "/usr/local/lib/exaile/xl/playlist.py", line 80, in save_to_m3u
    leng = float(track['__length'])
TypeError: float() argument must be a string or a number

Related branches

reacocard (reacocard)
Changed in exaile:
importance: Undecided → Low
milestone: none → 0.3.0.3
Changed in exaile:
assignee: nobody → Johannes Sasongko (sjohannes)
status: New → Fix Committed
reacocard (reacocard)
Changed in exaile:
milestone: 0.3.0.3 → 0.3.0.2
reacocard (reacocard)
Changed in exaile:
status: Fix Committed → Fix Released
Revision history for this message
Laurent (laurent-pouillet) wrote :

The fix does not seem to work for me. At today latest release (revision 2612) I still get :

Traceback (most recent call last):
  File "/home/garath/tlc/exaile/xlgui/__init__.py", line 155, in export_current_playlist
    _xpl.export_playlist(pl, path)
  File "/home/garath/tlc/exaile/xl/playlist.py", line 359, in export_playlist
    return save_to_m3u(playlist, path)
  File "/home/garath/tlc/exaile/xl/playlist.py", line 80, in save_to_m3u
    leng = round(float(track.get('__length', -1)))
AttributeError: 'Track' object has no attribute 'get'

And I cannot export the playlist (just the header is saved)

Revision history for this message
reacocard (reacocard) wrote :

re-fixed in trunk/2613, 0.3.0.x/2462

Changed in exaile:
milestone: 0.3.0.2 → 0.3.0.3
status: Fix Released → Fix Committed
Revision history for this message
Laurent (laurent-pouillet) wrote :

Thanks Aren, I confirm this is now working

Laurent

reacocard (reacocard)
Changed in exaile:
milestone: 0.3.0.3 → 0.3.1
reacocard (reacocard)
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.