-
Notifications
You must be signed in to change notification settings - Fork 1
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
Album-awareness and input ordering #9
Comments
Other things to consider: online tagging needs some sort of album awareness to identify albums, to instance the total track count. For maximum flexibility, we could simply dispatch the online tagging function (and covers) to a script. What about reading external file tags from the Lua side? This would probably require some sort of caching too avoid excessive I/O. |
This seems like a good idea, yes. Though "the currently directory" is not general enough, since the user can pass in any list of files they want.
I don't understand what you mean by this. They're read on the Go side and accesible via |
Current directory: Indeed, any directory is even better and it comes at no cost. External metadata: because the I suggest two functions:
|
Oh, I see. Yes I've had a thought about this. I think that could indeed work if caching is done. Here's another option: Have a table Wait, why do you want the |
I think `inputs` would be unnecessarily complex while caching does the
same job transparently for the user.
metadata: Well, it takes the path of the file from which to get the
metadata. Did you expect something else?
|
Well I'm just imagining that it would be hard to use. How would you know the path when writing the script? With my |
The problem with the Besides, iterating over the full table for every track does not scale Concrete example with what I suggest:
|
This is true. But how is caching all the metadata beforehand any faster? Isn't it the exact same thing?
That's certainly true as well. Let me think about that. |
Caching is faster because it's done _on demand_ (i.e. laziless in
technical terms) and not beforehand.
|
Ok I see what you mean. It's the same speed if you do end up looping through every input file, it just wouldn't do that every time unless you tell it to. |
Exactly.
|
In #4 we mentioned the issue of auto-numbering tracks according to their position in the queue.
There are several ways to proceed. Some do not cope well with parallelization.
Using the queue order in the script is not very flexible though: what if the sorting (which depends on the locale) does not suit the user?
Probably better: add a directory listing function. That should not harm the sandboxed nature of Demlo.
By matching the track path with the directory listing, we could auto-number the tracks.
The text was updated successfully, but these errors were encountered: