skip lines starting with # for m3u8 files#767
Conversation
|
Hi @Et0h, any thoughts on this? Bonus thoughts:
However, these are more opinionated and completely biased towards my use cases, and I actually have my own workarounds for 3 of these with a VLC plugin... so for me the main QoL issue is that syncplay doesnt ignore |
|
The change in the PR itself seems fine. It is not too complicated and will allow more files to be read. In terms of your bonus thoughts:
Syncplay allows people to load .m3u8 files but not save them, and if it starts stripping off the # part of the .m3u8 file it might be better if it doesn't save as .m3u8 files. In terms of saving the playback position, this might work better as part of a feature where the playlist state is automatically saved (as per your later suggestion) rather than as part of saving a playlist .txt file, but I'm not strongly opposed. While it isn't a feature I'd use myself, if implemented I expect it would need to be optional as some people might not want to save the playback position. I don't mind helping assist someone in developing it, but as I don't plan to use the feature I'm probably not best placed to take the lead on it.
That'd be neat. I am currently working on a Mark as played feature, and I suspect that once that's integrated into Syncplay the code it uses to be able to automatically mark a file as played could be extended to allow for the playlist to be updated. Some thoughts:
As this is a feature I might use I don't mind having a stab at developing it when I have the time, but not sure when that'd be.
So long as this is optional I have nothing against this in principle - it'd presumably have to be tied to the specific server and the specific room. Again, this is not a feature I'd use so I'd probably not be best placed to develop it. I wouldn't want it to write every second to reflect changes in position, so it might want to have some sort of time limit to only do it every X seconds or when there is a list change or when you are about to close or something.
Sounds like that'd tie in nicely with the other feature. |
|
Thanks for your quick & comprehensive reply!
This PR should solve
I took a look at something similar prior to my more minimalist fix. The challenge is trying to make something somewhat portable with the feature sets we want.
#EXTVLCOPT:start-time=123
#EXT-SP-WATCHED=item_1
#EXT-SP-WATCHED=item_2
item_3
item_4This would allow the playlist file to still resume from the correct file ( Anyway... Playlist file standardisation is not something that I can solve, but at the very least... I would appreciate it if at least syncplay would not load the comment lines as files 😉 |
|
Thanks for this fix @Namyts - I've accepted your PR. Happy to revisit playlist auto-saving/loading as a separate discussion or as a PR - just refer back to this issue. Auto-delete after an episode is watches is something which could be revisited after #746 has been merged as it should be able to re-use some of the same logic - again, just refer back to this issue. |
Syncplay allows loading from
.m3u8files but doesn't ignore lines starting with#(it treats those lines like files too)This PR skips lines starting with
#when loading an.m3u8file