After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 632845 - Allow adding songs to the play queue after currently playing track, album, or artist
Allow adding songs to the play queue after currently playing track, album, or...
Status: RESOLVED FIXED
Product: banshee
Classification: Other
Component: general
unspecified
Other All
: Normal normal
: 1.x
Assigned To: Banshee Maintainers
Banshee Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-10-22 00:38 UTC by Alex Launi
Modified: 2010-10-22 02:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[PlayQueue] Add 'Add after' feature for adding songs to queue (15.22 KB, patch)
2010-10-22 00:38 UTC, Alex Launi
accepted-commit_now Details | Review
[PlayQueue] Add 'Add after' feature for adding songs to queue (15.22 KB, patch)
2010-10-22 01:54 UTC, Alex Launi
none Details | Review
[PlayQueue] Add 'Add after' feature for adding songs to queue (15.13 KB, patch)
2010-10-22 01:58 UTC, Alex Launi
committed Details | Review

Description Alex Launi 2010-10-22 00:38:27 UTC
It would be neat to be able to queue tracks for after the current album, artist, or currently playing song. I tend to listen to my music in terms of albums, and also tend to queue entire discographies of bands and then get tired of a band long before listening to all of thier albums. This would enable finishing an album without manually rearranging the queue, something I have to do very often because of how I tend to listen to my music.
Comment 1 Alex Launi 2010-10-22 00:38:29 UTC
Created attachment 172966 [details] [review]
[PlayQueue] Add 'Add after' feature for adding songs to queue

Allows adding tracks to the play queue after the currently playing song, artist, or album.
Comment 2 Alexander Kojevnikov 2010-10-22 00:54:13 UTC
Review of attachment 172966 [details] [review]:

Looks good apart from two nitpicks below. Please commit after fixing them.

::: src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/PlayQueueSource.cs
@@ +335,3 @@
                 }
+                long max_view_order = MaxViewOrder - 1;
+                long view_order = CalculateViewOrder (mode);

I'm not fond of the whole +/-1 juggling. MaxViewOrder should return the MAX(ViewOrder) and all its usages should be updated accordingly.

@@ +356,3 @@
+                case QueueMode.AfterCurrentAlbum:
+                case QueueMode.AfterCurrentTrack:
+                switch (mode) {

I think `default: break;` can just be deleted. Also, you could turn it into `if (mode != QueueMode.Normal) Shift...;`
Comment 3 Alexander Kojevnikov 2010-10-22 00:55:28 UTC
Review of attachment 172966 [details] [review]:

Looks good apart from two nitpicks below. Please commit after fixing them.

::: src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/PlayQueueSource.cs
@@ +335,3 @@
                 }
+                long max_view_order = MaxViewOrder - 1;
+                long view_order = CalculateViewOrder (mode);

I'm not fond of the whole +/-1 juggling. MaxViewOrder should return the MAX(ViewOrder) and all its usages should be updated accordingly.

@@ +356,3 @@
+                case QueueMode.AfterCurrentAlbum:
+                case QueueMode.AfterCurrentTrack:
+                switch (mode) {

I think `default: break;` can just be deleted. Also, you could turn it into `if (mode != QueueMode.Normal) Shift...;`
Comment 4 Alex Launi 2010-10-22 01:54:32 UTC
Created attachment 172970 [details] [review]
[PlayQueue] Add 'Add after' feature for adding songs to queue

Allows adding tracks to the play queue after the currently playing song, artist, or album.
Comment 5 Alex Launi 2010-10-22 01:58:42 UTC
Created attachment 172971 [details] [review]
[PlayQueue] Add 'Add after' feature for adding songs to queue

Allows adding tracks to the play queue after the currently playing song, artist, or album.
Comment 6 Alex Launi 2010-10-22 02:10:02 UTC
Attachment 172971 [details] pushed as e51ceb1 - [PlayQueue] Add 'Add after' feature for adding songs to queue