autoload.lua: stop initial file from being added twice#16997
autoload.lua: stop initial file from being added twice#16997kasper93 merged 1 commit intompv-player:masterfrom
Conversation
|
not only is the script obsolete, I also messed up the commit message cheers |
|
Please reopen this, I think it's still useful to fix issues with the script. If it was obsolete it would be removed from the repo. |
this happened right after going to the next file
|
sure. after initial discussion in the irc it did seem the --autocreate-playlist=filter works for 'most' cases but some stuff is still not 100% there so I guess there is value in keeping it working if its still in the repo. |
Could you link to the issues with |
|
Could you create issues for those? |
There's also #14675 if you feel like tackling it |
This works only by accident and how autoload.lua works. Not by design. For example if you play the last file in folder it wouldn't load anything more, because playlist is recreated on
Easy to add, but I haven't seen any requests for this.
Sounds about right. Might fix, if playing hidden files is critical usecase.
Ok. |
|
The problem with patterns is that Windows lacks |
We can use C++ or Rust for that. |
It could use a lua pattern if pattern matching is necessary here, and assuming it's sufficient. |
This behavior is wanted and used by users. See #14555 (comment) and #16125 (allows new file detection on demand).
Can be done if JS is enabled like |
this happened right after going to the next file. the playlist would be fine when staying on the first file. with logging you can see it 'prepending' the file it was just on.
traced it back to it this behaviour appearing since 5de1f5a
the fix to just throw the current file in the added_entries right away seems to work fine in all scenarios I could think and test