Can't open smart playlist with a Last Played criterion

Bug #136158 reported by Adam Olsen
2
Affects Status Importance Assigned to Milestone
Exaile
Fix Released
Undecided
Johannes Sasongko

Bug Description

When a smart playlist's state is

{{{
#!python
[([u'Last Played', u'in the last'], [1.0, 'days'])]
}}}

opening it produces

{{{
Traceback (most recent call last):
  File "/usr/share/exaile/xl/panels.py", line 2610, in open_playlist
    self.open_smart_playlist(obj.name, obj.id)
  File "/usr/share/exaile/xl/panels.py", line 2654, in open_smart_playlist
    where = filter.get_result()
  File "/usr/share/exaile/xl/filtergui.py", line 182, in get_result
    return [f[0].get_result() for f in self.rows]
  File "/usr/share/exaile/xl/filtergui.py", line 305, in get_result
    return self.child.get_result()
  File "/usr/share/exaile/xl/filtergui.py", line 305, in get_result
    return self.child.get_result()
  File "/usr/share/exaile/xl/filtergui.py", line 305, in get_result
    return self.child.get_result()
  File "/usr/share/exaile/xl/filtergui.py", line 435, in get_result
    return self.generate_result(*self.get_state())
TypeError: <lambda>() takes exactly 1 argument (2 given)
}}}

Found by Daniel ("ethereality") in #exaile.

This ticket was migrated from the old trac: re #712

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

I've fixed this some time ago but the last_played field seems to never be set.

Changed in exaile:
assignee: nobody → sjohannes
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.