-
Notifications
You must be signed in to change notification settings - Fork 41
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
Set position "selected_file" to the currently playing title after opening or through hotkey #111
Comments
This should not be the case if you use
This can be achieved by closing and reopening the playlist when using |
Hello @jonniek , thank you for your patience. I just got back from a vacation yesterday, hence the late reply. To my second point: A dynamic bind is not necessary, if opening the playlist does highlight the current file. I totally agree. The reason I brought it up was, that I initially thought, opening the playlist would not do that (because it didn't). And that leads me to the real issue: There's a bug somewhere: I realized that the behavior is sometimes as desired (opening playlist | currently played file is selected and centers), and sometimes it is not (first/other item on list is highlighted). I tried narrowing it down to path- or filename, but couldn't. The results are not reproduceable. Here's an example: This is my folder structure: I opened the 7th file (qqoumabj - S01E04 (2012) - jskvxbpg.mkv) several times in a row, and got different results. Here are 3 screenshots just after opening the file: In case you want to reproduce, these are the file-names:
If you need any more information please don't hesitate to contact me. Thanks |
I've also noticed this behavior recently but I wasn't sure how to reliably reproduce it. I was using it on a playlist with ~300 URLs (that now also have EXTINF titles set so playlistmanager doesn't try to query for them every time) and that I had the last position saved by quitting with |
Hello @FichteFoll , I can confirm your last point, tried it. Plus I found another way to fix the behavior. So now there's two:
Tried both 10 times, 100% reproduceable |
What script are you using for loading the rest of the files to the playlist? There could be some problem like that script running sometimes after the There has been some changes recently in the Anyway I added a setting to reset cursor when opening the playlist which should fix this issue regardless of what the root cause is/was. |
Hey @jonniek , I am using https://github.com/mpv-player/mpv/blob/master/TOOLS/lua/autoload.lua for that... Not the current version though, I got the scrip a few weeks back. Before updating autoload, I will try your new version, and report back to you here. Thanks |
Hello @jonniek , I used the updated version, and again tried 10 times: It worked as expected every time! Thank you so much! |
Hello,
when opening the playlist, the selected item is always the first item in the list. It would be great to have an option that would
and/or
Does anyone else think that would make sense?
Thanks
The text was updated successfully, but these errors were encountered: