-
Notifications
You must be signed in to change notification settings - Fork 4
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
Options to rename files #16
Comments
Two solutions here:
The first seems like overkill. The second feels arbitrary. It's unlikely to accomodate user preferences so the only thing it would be good for is the possibility that it could help with ordering. However, we do now have the option to use artifical track numbers. Most players will only use file names as a fallback when there are no track numbers. All things considered I do't think this one is worth it for now. |
However... if we eschew metadata and limt ourselves to feed/entry data, the implications are nicely limited to entryinfo.py. All we need to do is change poca_abspath using information from sub and entry which are already present in entryinfo. Misigivings: It's going in a new and 'artificial' direction, similar to track numbering (except we can't use those trracknumbers!) The cleanest way of doing it is writing dates-title. |
I also don't much like parsing a string for variables interspersed with characters. But... What if we used the lxml to allow users to build-a-string? Something like this:
Note that tracknumber would be arbitrary number as we do not have the file at the time this is determined. If tracknumber is enabled for metadata, this would use the same setting. If not it would implement it. would use the format YYYYMMDD so as to enable correct alphabetical order. The idea would be that we have the tools in place to ensure that the format does not get messed with. Bad xml gets rejected. Anything we don't need (node.text, subnodes), we can just ignore. We process the nodes one by one in the order they come. Each correct node calls a lambda or small function that returns the relevant information which gets added to a growing string. We can call each segment as many times as we want. If a node is not recognised as valid (not quite sure how best to do this) we just skip it. |
Ideas:
|
Implemented. We still need to
|
Also: How do defaults and sub specific renames stack up? I fear that they're just added on top of another, rather than the latter replacing the former. |
|
Many podcasts have either random UID filenames or just name the files inconsistently. This can cause problems with the order in which the files appear in a player.
We should have options for each podcast to rename files based on:
Instead of giving free reins we could simply start by having a few simple prepackaged solutions for misbehaving podcasts.
We might also need sign scrubbing similar to derailleur?
The text was updated successfully, but these errors were encountered: