-
Notifications
You must be signed in to change notification settings - Fork 7
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
Overwriting during Internet recording #65
Comments
Hi!
Next file should be created as usual, depending on what output file template you're using. Can you attach logs when it is not the case?
When using file names from the server's meta data, overwriting your existing files on disk is insecure behaviour -- it's better if you'd use |
The command:
gave the following log:
Phiola overlooks some files. They are created but not written. The file size remains at 0. File 1 was also not written and remained at 0 size. I assume the file was too small because the title had been playing for a while.
I see it as an advantage to be able to save by artist and title. Perhaps recordings could automatically add an index if the file already exists. |
I would need the full debug log to understand what was happening.
You can just use |
Here is a debug log: All files were written at once only after recording was complete. The file size remained at zero for that long. I hope it helps. Otherwise I'll try again.
One option would be to set the counter at the end of the file. In the beginning it is unfavorable for sorting. |
It's a bug, will be fixed in the next version, thank you!
Well, I currently see two options here:
Adding file name counter automatically only in case the output file exists won't add any benefit, because the new output file will have the same content as the previous one (e.g. |
Thank you very much for your effort and the active development of Phiola.
No, not necessarily. Recordings (songs) from internet radio are never exactly the same length. Sometimes they are mixed with other tracks or are interrupted by jingles. I always look for the best version and then delete the others. |
This should be resolved in 2.3-rc8.
I thought for a moment about that and couldn't come up with the plan how to properly pass this user's intention via CLI (because this definitely must not be default behaviour). Maybe you can suggest a CLI option how you think it's best to do it? |
I like streamripper's approach here (https://github.com/streamripper/streamripper).
But of course this is more complex to implement. Alternatively, an option -add (if the file already exists, create a new file with an index) or -dskip (don't skip the file if it already exists) might be possible. |
This would require the code that either iterates in a loop to find the correct index or reads the contents of the directory -- in either case several to many system calls in the place where we can/should just create the file in 1 single operation. Personally, I don't see how this approach is any better than just using |
If I record from the Internet and the file already exists, the recording stops. This happens particularly often with the Gingles. But even when a new song comes on, the recording is not continued.
Unfortunately, the "-f" option for overwriting is not available here.
The text was updated successfully, but these errors were encountered: