New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import ratings, play counts from Rhythmbox #1463

Closed
lazka opened this Issue Mar 15, 2015 · 14 comments

Comments

Projects
None yet
1 participant
@lazka
Member

lazka commented Mar 15, 2015

Original issue 1463 created by philhudsonster on 2014-09-03T14:51:55.000Z:

I cannot see any way to import my track ratings and play counts from Rhythmbox. This is all that is stopping me from switching.

@lazka

This comment has been minimized.

Member

lazka commented Mar 15, 2015

Comment #1 originally posted by reiter.christoph on 2014-09-04T07:10:36.000Z:

This has come up a few times... I'll look into adding a plugin for that.

@lazka

This comment has been minimized.

Member

lazka commented Mar 15, 2015

Comment #2 originally posted by reiter.christoph on 2014-09-04T08:46:45.000Z:

This issue was closed by revision cec18f1.

@lazka

This comment has been minimized.

Member

lazka commented Mar 15, 2015

Comment #3 originally posted by reiter.christoph on 2014-09-04T08:50:33.000Z:

  • Make sure you have all songs in your QL library
  • Take the attached file and put it into "~/.quodlibet/plugins" (you might have to create the directory).
  • Restart QL
  • Go to "Music > Plugins > Rhythmbox Import" and click the "Start Import" button

and hopefully it works, if not please report

@lazka

This comment has been minimized.

Member

lazka commented Mar 15, 2015

Comment #4 originally posted by philhudsonster on 2014-09-04T17:53:40.000Z:

Error:

Traceback (most recent call last):
File "/home/phil/.quodlibet/plugins/rbimport.py", line 16, in
from quodlibet.util.path import expanduser
ImportError: No module named path

I see in one of the built-in plugins a statement importing expanduser from quodlibet.util. I'll try making that change myself and report back.

@lazka

This comment has been minimized.

Member

lazka commented Mar 15, 2015

Comment #5 originally posted by reiter.christoph on 2014-09-04T17:59:53.000Z:

What distro? It should work with the latest stable release, so maybe you can update using one of the PPAs?

@lazka

This comment has been minimized.

Member

lazka commented Mar 15, 2015

Comment #6 originally posted by philhudsonster on 2014-09-04T18:15:37.000Z:

Runs now. Thanks, you're incredible. That was such a fast turnaround!

First thought: although it's very fast, it does go over the 8-second limit they taught me about in UX grade school for my 10000+ songs; maybe a progress bar? At least a busy cursor.

Second: After the import finishes, every song with a rating in RB (there are a few unrated) is displayed in QL with four stars, irrespective of the rating in RB. It looks to me like the variable 'stats' (a map?) is not being initialized or populated anywhere, but my Python-fu is pretty rudimentary so that's just a guess.

@lazka

This comment has been minimized.

Member

lazka commented Mar 15, 2015

Comment #7 originally posted by philhudsonster on 2014-09-04T18:17:45.000Z:

I'm on Linux Mint Debian Edition, which is a "rolling release" based on Debian Testing -- likely to be up to six months behind current. The installed version of QL is 3.0.2. Here's what the "About..." dialog says:

Supported formats: FLAC, MIDI, MOD/XM/IT, MP3,
MPEG-4 AAC, Monkey's Audio, Musepack, Ogg FLAC,
Ogg Opus, Ogg Speex, Ogg Theora, Ogg Vorbis,
SPC700, True Audio, WAVE, WavPack,
Windows Media Audio

Audio device: GStreamer (autoaudiosink)
Mutagen: 1.22
GTK+: 3.8.4
PyGObject: 3.8.2
GStreamer: 1.2.1.0

@lazka

This comment has been minimized.

Member

lazka commented Mar 15, 2015

Comment #8 originally posted by reiter.christoph on 2014-09-04T18:22:01.000Z:

oops.. I knew I forgot something

@lazka

This comment has been minimized.

Member

lazka commented Mar 15, 2015

Comment #9 originally posted by philhudsonster on 2014-09-04T18:30:44.000Z:

If I understand the algorithm design in method _process_song (big if; as I say, I'm not a Pythonist), then I think it might be smartest to subtract 1 from the RB rating (1 to 5 stars) when converting to a QL rating (1 to 4). It may be that there is no single "right" way to map from one to the other, but that would suit my collection and what the ratings mean in my head.

@lazka

This comment has been minimized.

Member

lazka commented Mar 15, 2015

Comment #10 originally posted by reiter.christoph on 2014-09-04T19:09:53.000Z:

QL uses 0.0-1.0, so I just divided stars by 5 now.

Please try again with the attached.

@lazka

This comment has been minimized.

Member

lazka commented Mar 15, 2015

Comment #11 originally posted by philhudsonster on 2014-09-04T21:08:08.000Z:

OK, I switched to your Debian repo and this rev of the plugin.

Dude... you rock!

That is one of the fastest, if not the fastest, RFE turnarounds I've ever seen, with the main delay being me getting back to you. I am so impressed.

For utter perfection, you would do that waiting/watch/hourglass-cursor thing I mentioned, but this is good enough for me. Thank you very much.

@lazka

This comment has been minimized.

Member

lazka commented Mar 15, 2015

Comment #12 originally posted by philhudsonster on 2014-09-04T21:11:34.000Z:

Plus you now have (what I was thinking of asking for): user-selectable rating scales!

@lazka

This comment has been minimized.

Member

lazka commented Mar 15, 2015

Comment #13 originally posted by reiter.christoph on 2014-09-04T21:19:57.000Z:

Thanks for the update.

Authors of the other 300+ bug reports might disagree ;)

For the UX issue, I agree, I'll look into that later.

@lazka

This comment has been minimized.

Member

lazka commented Mar 15, 2015

Comment #14 originally posted by nick.boultbee on 2014-09-05T10:30:46.000Z:

+1 (though haven't tested myself yet): great work Christoph (again!).

I think we could do well once this is stable by publicising it, possibly as part of the overall initial user experience - after yet another O/S reinstall I've been alerted to that again (good ol' Issue #1090).

Without wanting to push potential users too much, RB is almost the iTunes of the modern Linux space, and I think encouraging these new users [to migrate to the awesomeness of QL], this kind of thing would really help (c.f. Jetbrain's very smooth and successful support for transitioning from Eclipse -> IntelliJ IDEA in the Java IDE space)

As a starter I can help update docs / site pages too, as soon as I get a bit of time...

@lazka lazka closed this Mar 15, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment