-
Notifications
You must be signed in to change notification settings - Fork 6
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
[Bug] repeated loading when use fuzzydir.lua #3
Comments
This script was made to add path discovery support to mpv, not to select the correct file for the user. It is also not a bug as far as I'm concerned, as the "vanilla" mpv has the same behavior. Config (the script is NOT loaded): Directory structure:
mpv's console output:
The "only one file was loaded" behavior before is probably caused by a non-configured or misconfigured |
You understand wrong. I don't mean that mpv will only load one file. Instead, the same file is loaded only once. For your example, using the script of fuzzydir.lua will get the following results:
|
Yep, managed to reproduce the bug. I'll take a look, thanks for the report! |
The latest commit has fixed this issue and the script is now working properly. |
I also want to know another thing. Will this be realized? |
Hm, I'm not sure to be honest. Feels a bit too hackish, so I'd like to debug it before making any decisions. Could you share any info on how to reproduce the crash (in a new issue)? |
Sorry, I don't have the conditions to reproduce the relevant issues. This issue was reported to me by a friend of mine. He plays files through SMB protocol, He gets a very bad delayed loading experience when uses this script with thousands of files in the video directory. It can be said that this problem is actually caused by poor document management habits. |
Well, either way just having the script cause problems isn't good, there should be a fail-safe of sorts. Made #4, I'll look into it someday. |
As I mentioned there: #2
For the following folder structure:
Before use the script of fuzzydir.lua: mpv only had one 1.srt.
After use the script of fuzzydir.lua: mpv had two 1.srt.
The same is true for audio files.
As in the example, this issue only happen in the same directory of the video file. Normal loading in subdirectory.
I think the same file should only be loaded once on mpv.
The text was updated successfully, but these errors were encountered: