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

feature request: skip already converted #154

Open
quantum-booty opened this issue Apr 29, 2021 · 1 comment
Open

feature request: skip already converted #154

quantum-booty opened this issue Apr 29, 2021 · 1 comment

Comments

@quantum-booty
Copy link

I'm in the process of converting a big library, since there is no way of tracking whats already converted, when flacon crashes I would have to either manually check which album is not converted, or do the convertion one folder at a time, which is obviously not ideal. So It would be nice if flacon can scan whats already converted, or to save progress in case of a crash, so to avoid starting over again!

@SokoloffA
Copy link
Member

Sorry for the long silence. I didn't see a notification about your issue maybe Google marked the email as a spam.

That sounds reasonable. I will add such an option to the settings and command line argument.

Right now, you can use debug mode for automation. Run the program like this

./Flacon --debug -s ../tests/short.cue 2>&1 | grep "Track done:"
Track done:  id= 1  Track { trackNum: 0 trackCount:4 diskId:"12345678" Artist:"Test for flacon" Album:"Short file" Title:"(HTOA)" cueFile:"/Users/sokoloff/myPrograms/flacon/tests/short.cue"} outFileName: "/Users/sokoloff/Music2/Test for flacon/2011 - Short file/tmp.iUfKHL/pregap-0001.encoded.flac"
Track done:  id= 2  Track { trackNum: 1 trackCount:4 diskId:"12345678" Artist:"Test for flacon" Album:"Short file" Title:"Short track 1" cueFile:"/Users/sokoloff/myPrograms/flacon/tests/short.cue"} outFileName: "/Users/sokoloff/Music2/Test for flacon/2011 - Short file/tmp.iUfKHL/track-0001_01.encoded.flac"
Track done:  id= 3  Track { trackNum: 2 trackCount:4 diskId:"12345678" Artist:"Test for flacon" Album:"Short file" Title:"Short track 2" cueFile:"/Users/sokoloff/myPrograms/flacon/tests/short.cue"} outFileName: "/Users/sokoloff/Music2/Test for flacon/2011 - Short file/tmp.iUfKHL/track-0001_02.encoded.flac"
Track done:  id= 4  Track { trackNum: 3 trackCount:4 diskId:"12345678" Artist:"Test for flacon" Album:"Short file" Title:"Short track 3" cueFile:"/Users/sokoloff/myPrograms/flacon/tests/short.cue"} outFileName: "/Users/sokoloff/Music2/Test for flacon/2011 - Short file/tmp.iUfKHL/track-0001_03.encoded.flac"
Track done:  id= 5  Track { trackNum: 4 trackCount:4 diskId:"12345678" Artist:"Test for flacon" Album:"Short file" Title:"Short track 4" cueFile:"/Users/sokoloff/myPrograms/flacon/tests/short.cue"} outFileName: "/Users/sokoloff/Music2/Test for flacon/2011 - Short file/tmp.iUfKHL/track-0001_04.encoded.flac"

Unfortunately, outFileName contains the name of the temporary file, but the track number is printed. It's better than nothing.

When I made the command line support, I did not expect that it would be actively used. I only did this for benchmarks.
I wonder how many people use the program from the command line? Please check here who uses the command line.

Let's discuss what can I add for automation, for example, I can output some information in a computer-readable format, for example as JSON line. What information do you need?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants