cd plugin bugs with the new playlist class and formatter

Bug #739648 reported by Rocco Aliberti
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Exaile
Fix Released
Medium
Dustin Spicuzza

Bug Description

I tried to patch them, but i'm not convinced about a couple of points, e.g.
(watching the attachment)

plugins/cd/__init__.py

@@ -174,7 +174,7 @@

- tr = self.ordered_tracks[i]
+ tr = self[i]

There's a similar case in xlgui/panel/flatplaylist.py, there is needed the entire list of tracks.

It would be better xl.playlist methods that return the list of the tracks and the single track, i think.

Related branches

Revision history for this message
Rocco Aliberti (eri.trabiccolo) wrote :

I just noticed that Playlist.__getitem__ was rewritten and returns just a track object, then that aspect is not a problem. Sorry

Revision history for this message
Mathias Brodala (mathbr) wrote :

What’s the formatter issue you mention in the title?

Revision history for this message
Rocco Aliberti (eri.trabiccolo) wrote :

I meant the formatter.TrackFormatter constructor.

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

I assume this is on trunk? Filing there so we don't forget.

Changed in exaile:
importance: Undecided → Medium
milestone: none → 0.3.3.0
status: New → Triaged
Revision history for this message
Rocco Aliberti (eri.trabiccolo) wrote :

Yes it's on trunk, Sorry for inaccuracies

Revision history for this message
Rocco Aliberti (eri.trabiccolo) wrote :

I saw that in last rev(3909) mathbr, made some changes to cd rom plugin, but more are needed. The patches I uploaded months ago may not be the best way to fix those bugs but at least it can serve as a starting point to understand where the bugs occur.

Revision history for this message
Rocco Aliberti (eri.trabiccolo) wrote :

Patch against rev3920.

Revision history for this message
Dustin Spicuzza (dustin-virtualroadside) wrote :

I took your patch and modified it a bit. I didn't retain the menu modifications since the whole flatplaylist/devices/etc should be redone anyways at some point, no sense confusing the code with a mix of old and new stuff.

For some reason CDDB doesn't seem to be working for me, but I'm not sure if it's exaile's fault or not.

Anyways, pushed in revision 3970

Changed in exaile:
assignee: nobody → Dustin Spicuzza (dustin-virtualroadside)
status: Triaged → Fix Committed
Revision history for this message
Rocco Aliberti (eri.trabiccolo) wrote :

Of course, was an old patch and maybe even then wasn't "perfect" :D
Anyway here your commit works (CDBB works for me), except for the menù item "Properties" of the cd-track. Signal connection missing? Is it really useful for a cd track?

Thanks.

Revision history for this message
Dustin Spicuzza (dustin-virtualroadside) wrote :

Yeah, the signal wasn't connected, and it was that way in Exaile 0.3.2 so I elected to leave it that way for now. It's not actually useful for a CD track the way properties are currently implemented. It would be nice if one could actually name the tracks correctly if CDDB didn't work, but I think that will have to be done in 0.3.3.1 or past that.

Revision history for this message
Rocco Aliberti (eri.trabiccolo) wrote :

Yeah i see. I was thinking that menu is about flatplaylist (?) so maybe "Properties" may be useful in other contexts, but I don't know what else extends that class.

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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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