Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#8 Fails with custom categories

open
nobody
None
5
2014-08-24
2011-06-15
Android
No

I run my own personal freedb server (long story, don't ask) and when I set it up I wanted better categories of music since most of my collection fell into MISC.

When checking against my freedb server the searches always fail because it converts back to MISC by default. The query finds the record, grabs the category from the freedb server and then trys to pull the record from the MISC category instead. My patch will be included in the comments below.

Discussion

  • Android
    Android
    2011-06-15

    This is most likely not the best solution (I didn't dig too far into the code), but it does cause the lookups to work.

    --- cddb_cmd.c.orig 2011-06-15 09:43:20.000000000 -0600
    +++ cddb_cmd.c 2011-06-15 09:43:42.000000000 -0600
    @@ -930,7 +930,7 @@
    }

    /* send read command and check response */
    - if (!cddb_send_cmd(c, CMD_READ, CDDB_CATEGORY[disc->category], disc->discid)) {
    + if (!cddb_send_cmd(c, CMD_READ, disc->genre, disc->discid)) {
    return FALSE;
    }
    switch (code = cddb_get_response_code(c, &msg)) {