Skip to content
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

Moodbar: Support Clementine's cache #98

Closed
sjohannes opened this issue May 29, 2015 · 2 comments
Closed

Moodbar: Support Clementine's cache #98

sjohannes opened this issue May 29, 2015 · 2 comments
Assignees
Milestone

Comments

@sjohannes
Copy link
Member

@sjohannes sjohannes commented May 29, 2015

Not too difficult to let Exaile read Clementine's cache, in addition to .mood files and our own cache. Can also allow write access, with big warning since we can't guarantee the format.

Quick overview of Clementine's Moodbar cache format (essentially QNetworkDiskCache):

  • Path: ~/.cache/Clementine/moodbarcache/data7/X/YYYYYYYY.d.
    • URI → SHA1 → first 64 b → uint64 (native order) → base 36 (lowercase) → first 8 chars → YYYYYYYY.
    • Last Y → ord → mod 16 → hex (lowercase) → X.
  • Content: 8 B stuff, 4 B URI len (network order), URI, 28 B stuff, data (3000 B moodbar).
@sjohannes sjohannes self-assigned this May 29, 2015
@sjohannes sjohannes added this to the Someday milestone May 29, 2015
@genodeftest

This comment has been minimized.

Copy link
Contributor

@genodeftest genodeftest commented May 23, 2017

I wouldn't want to do this:

  • Clementine's format might change at any time. We should only do this in my opinion if we contact the clementine developers prior to that.
  • Clementine's cache belongs to Clementine, not to Exaile. A separate library (with separate cache folder) would be preferred.
@sjohannes

This comment has been minimized.

Copy link
Member Author

@sjohannes sjohannes commented May 23, 2017

It's not a big deal anyway. I'd rather concentrate on the big problems with Moodbar, mainly that there is still no alternative version to the Gst 0.10-based one.

@sjohannes sjohannes closed this May 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.