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 575326 - Playlists uploaded to Dap are not separated according to their format
Playlists uploaded to Dap are not separated according to their format
Status: RESOLVED WONTFIX
Product: banshee
Classification: Other
Component: Device - iPod
git master
Other All
: Normal normal
: 1.x
Assigned To: Banshee Maintainers
Banshee Maintainers
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2009-03-14 06:03 UTC by Andrés G. Aragoneses (IRC: knocte)
Modified: 2020-03-17 08:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot (16.07 KB, image/png)
2009-03-14 06:05 UTC, Andrés G. Aragoneses (IRC: knocte)
  Details
Patch v1 (1.91 KB, patch)
2010-05-30 02:14 UTC, Andrés G. Aragoneses (IRC: knocte)
none Details | Review
Patch v2 (2.82 KB, patch)
2010-06-02 21:28 UTC, Andrés G. Aragoneses (IRC: knocte)
reviewed Details | Review

Description Andrés G. Aragoneses (IRC: knocte) 2009-03-14 06:03:08 UTC
Please describe the problem:
I think the root cause of bug 434237 is this more generic bug.

Steps to reproduce:
1. Import 2 videos.
2. Import 2 songs (beware, both should have Albums specified or you'll hit bug 573683).
3. Sync to iPod.



Actual results:
All default playlists are stored in the root of the iPod source. Thus, in the iPod device they're mixed as well.

Expected results:
The "unheard" playlist should be below the Music subsource of the iPod.
The "unwatched" playlist should be below the Video subsource of the iPod.
When accessing the music playlists on the iPod, the "unwatched" one should not appear there.

Does this happen every time?
Yes.

Other information:
Comment 1 Andrés G. Aragoneses (IRC: knocte) 2009-03-14 06:05:23 UTC
Created attachment 130631 [details]
screenshot
Comment 2 Andrés G. Aragoneses (IRC: knocte) 2010-05-30 02:14:30 UTC
Created attachment 162287 [details] [review]
Patch v1

This was actually a small bug in the Dap library, so it is not specific to iPod.
Comment 3 Gabriel Burt 2010-06-02 19:10:34 UTC
I'm pretty sure your patch will break the actual sync logic, which looks for PlaylistSources beneath the main DapSource.
Comment 4 Andrés G. Aragoneses (IRC: knocte) 2010-06-02 21:28:37 UTC
Created attachment 162575 [details] [review]
Patch v2

(In reply to comment #3)
> I'm pretty sure your patch will break the actual sync logic, which looks for
> PlaylistSources beneath the main DapSource.

You were right! sorry for not testing exhaustively. This fixes it.
Comment 5 Alexander Kojevnikov 2010-06-05 02:44:52 UTC
Review of attachment 162575 [details] [review]:

::: src/Dap/Banshee.Dap/Banshee.Dap/DapSource.cs
@@ +295,3 @@
+            if (lib.Equals (ServiceManager.SourceManager.MusicLibrary)) {
+        {
+        internal void AddPlaylistSource (PlaylistSource playlistsource, LibrarySource lib)

Did you test the scenario when SupportsVideo is false and thus video_group_source is null?
Comment 6 Andrés G. Aragoneses (IRC: knocte) 2010-06-07 12:01:42 UTC
Thanks for the review.

(In reply to comment #5)
> Review of attachment 162575 [details] [review]:
> 
> ::: src/Dap/Banshee.Dap/Banshee.Dap/DapSource.cs
> @@ +295,3 @@
> +            if (lib.Equals (ServiceManager.SourceManager.MusicLibrary)) {
> +        {
> +        internal void AddPlaylistSource (PlaylistSource playlistsource,
> LibrarySource lib)
> 
> Did you test the scenario when SupportsVideo is false and thus
> video_group_source is null?

Actually, no. But, as far as I understand, if SupportsVideo is false, lib could never equal VideoLibrary because that DapLibrarySync instance would never exist.

BTW, did you test or only review? Because I'm thinking I forgot to test with manual sync mode (although I guess the worse thing to happen would be that in this scenario the playlists are simply children of the dap source, which is not something bad, but just that this bug is not fixed for that case). I'll test this, and I'll also force SupportsVideo to false to make sure I test what you mention too.
Comment 7 André Klapper 2020-03-17 08:18:56 UTC
Banshee is not under active development anymore and had its last code changes more than three years ago. Its codebase has been archived.

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect
reality. Please feel free to reopen this ticket (or rather transfer the project
to GNOME Gitlab, as GNOME Bugzilla is being shut down) if anyone takes the
responsibility for active development again.
See https://gitlab.gnome.org/Infrastructure/Infrastructure/issues/264 for more info.