-
Notifications
You must be signed in to change notification settings - Fork 13
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
Feature request: Read ISRC from .cue files #42
Comments
Parsing ISRCs from cue sheets is not a big deal. The problem is getting the Disc ID from the cuesheet. The official library (libdiscid) does only support creating these from physical discs. On the pro side: cuesheets are somewhat widespread. Do you have many cuesheets lying around? |
The calculation is defined in http://musicbrainz.org/doc/Disc_ID_Calculation This would need a couple of tests, that the resulting ids are the same using libdiscid (the reference) and our implementation. |
I tend to have cue sheets + EAC logs (the latter is sufficient to generate a discID of course). Is it necessary to have a discID to submit ISRCs? |
Technically ISRCs are a property of recordings and submission works over tracks entities. You could provide the release Searching with the artist/title/track information from the cuesheet (if present) and then giving a choice is an option, but not the first. I also want to note, that this won't be fully automatic. I will see if I can add disc id calculation when I have time, but this isn't high priority. |
By the way, if you do want to create a script for your use case, isrcsubmit-cdrdao (ngs) might be a better start. However, that script also is missing the matching part from the cue to the recordings/releases. |
Another thing to note: libdiscid itself includes a function that calculates a disc id when given the offsets (from a toc/cue): It's just that the python library I am using (python-musicbrainz2) doesn't expose this interface in any way. |
I started a libdiscid python binding: When that binding is done, calculating the disc id should only be a couple of lines in isrcsubmit. |
@kepstin indicated in #musicbrainz There is a C library to wrap CUE+WAV and other formats: Kepstin also has a library that might already help you (uses libdiscid and libmirage): |
It might be possible to add ISRC reading in my tool via the libmirage interfaces, I might take a look at that at some point. Opened kepstin/image-id#1 for this. |
image-id does have ISRC output now. My current idea would be to haven an --image parameter that, if given an image file, would get ID and ISRCs from the image-id output, store this in some Disc object (or similar?) and then go on asking which MB release should be chosen. |
I plan to make an actual release of image-id shortly, so you can have a version to refer to in docs, etc. |
image-id 1.0.1 is released now. I'll implement this when I have some time. |
@LordSputnik implemented a small script that submits ISRCs from cue files to musicbrainz. |
Not really sure if I can implement this for 2.0. I'll see. |
Still planned, but moved to 2.1.x, so I am hopefully able to release version 2 soon, since I already wanted to do that a long time ago. |
It would be handy if isrcsubmit could read/submit ISRCs from .cue files which include them.
The text was updated successfully, but these errors were encountered: