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 374076 - iPod track transfer does not preserve rating
iPod track transfer does not preserve rating
Status: RESOLVED FIXED
Product: rhythmbox
Classification: Other
Component: Removable Media
0.9.6
Other All
: Normal normal
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
Depends on: 436319
Blocks: 338564
 
 
Reported: 2006-11-11 23:38 UTC by Michel Alexandre Salim
Modified: 2007-06-10 09:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Save rating to the iPod when it changes (3.20 KB, patch)
2007-04-06 22:29 UTC, Christophe Fergeau
none Details | Review
Updated patch (4.50 KB, patch)
2007-05-06 11:11 UTC, Christophe Fergeau
accepted-commit_now Details | Review
updated patch after the landing of async iTunesDB saving (4.61 KB, patch)
2007-06-07 19:25 UTC, Christophe Fergeau
committed Details | Review

Description Michel Alexandre Salim 2006-11-11 23:38:10 UTC
Please describe the problem:
When Rhythmbox is compiled with --enable-track-transfer, if the song being transferred to the iPod has a rating, the matching song in the iPod database has a rating of 1 instead of the original rating.

Also, after re-rating the song, the next time RB is loaded the rating is back to 1

Steps to reproduce:
1. Compile RB with --enable-track-transfer
2. Transfer a rated track
3. Set rating to 5
4. Restart RB

Actual results:
The song appears with a rating of 1

Expected results:
The song appears with original rating

Does this happen every time?
Always

Other information:
Comment 1 Christophe Fergeau 2006-11-11 23:55:48 UTC
This is a known limitation (at least the fact that the rating cannot be changed), I'm surprised this hasn't been filed yet ;) Should be pretty easy to fix if someone wants to give it a try...
Comment 2 James "Doc" Livingston 2006-11-22 12:50:15 UTC
Looking at the code, create_ipod_song_from_entry() sets track->rating, so I would have thought it would have transferred. We definitely don't change the on-ipod metadata when the you rate an existing ipod song though.
Comment 3 Christophe Fergeau 2007-04-06 22:29:46 UTC
Created attachment 85930 [details] [review]
Save rating to the iPod when it changes

The attached patch saves song ratings to the iPod when they are changed in RB. It should also save the rating for new songs copied to the iPod (there was a missing * ITDB_RATING_STEP).
However, writing the ipod database is really slow on my ipod (maybe ten seconds) and since itdb_schedule_save is 100% synchronous, this makes things really slow. Saving should probably be made asynchronous before this patch is committed.
Comment 4 Christophe Fergeau 2007-05-06 11:11:22 UTC
Created attachment 87648 [details] [review]
Updated patch

This patch saves last played time and play count in addition to rating, and it uses the async saving implemented in bug #436319
Comment 5 James "Doc" Livingston 2007-05-08 13:00:31 UTC
Looks fine to me.
Comment 6 Christophe Fergeau 2007-06-07 19:25:44 UTC
Created attachment 89561 [details] [review]
updated patch after the landing of async iTunesDB saving
Comment 7 James "Doc" Livingston 2007-06-10 01:20:42 UTC
Looks good to me.