jonniek / mpv-playlistmanager

Mpv lua script to create and manage playlists
The Unlicense
551 stars 42 forks source link

"No additional files found" - even file in the "/mpv/playlists" #64

Closed Max-Enrik closed 2 years ago

Max-Enrik commented 3 years ago

I made .m3u file by pressing p and I see the file in folder %APPDATA%/mpv/playlists/ unfortunately I get message: No additional files found. I opened the file and I see paths of the video files in it.

Settings:

loadfiles_on_start=yes
playlist_savepath=
show_playlist_on_fileload=1
showamount=16

Any ideas?

jonniek commented 3 years ago

The message is related to the loadfiles_on_start=yes setting, it just means it didn't load any files.

Is the script behaving as you would expect, just the osd message is unexpected? If not can you elaborate a bit your issue, and what would be the expected result?

Max-Enrik commented 3 years ago

I need to see playlist files (in folder %APPDATA%/mpv/playlists/) by pressing P over mpv player, and able to play/run it, instead of going to the folder and drag and drop it over mpv player to play a playlist. I believe with that settings that I mentioned in my first comment it would do it but unfortunately so far can't make it, not possible to load the playlist file at start up, and/or maybe option to play that playlist file over mpv player. Is it possible to do it?

Max-Enrik commented 3 years ago

The message is related to the loadfiles_on_start=yes setting, it just means it didn't load any files.

But I have a .m3u file in the %APPDATA%/mpv/playlists/.

Max-Enrik commented 3 years ago

Look like I didn't explain clearly, or maybe I didn't understand correctly.

jonniek commented 2 years ago

Sorry for late reply, been a bit busy lately.

I guess the issue is that m3u files are not loaded by this script. You could try adding the following to your config

loadfiles_filetypes=["m3u","jpg","jpeg","png","tif","tiff","gif","webp","svg","bmp","mp3","wav","ogm","flac","m4a","wma","ogg","opus","mkv","avi","mp4","ogv","webm","rmvb","flv","wmv","mpeg","mpg","m4v","3gp"]
Max-Enrik commented 1 year ago

How is it possible to keep the original playlist name as a prefix?

Original playlist name: Manufacture_Company.m3u

After playing the playlist name: Manufacture_Company-2023-03-23_23-23-23_playlist-size_99.m3u

jonniek commented 1 year ago

You can use the interactive save module https://github.com/jonniek/mpv-playlistmanager/blob/master/playlistmanager-save-interactive.lua This will extend playlistmanager to prompt for a filename when saving playlist. Unfortunately it will not know the previous name, but you can name the saved playlist with the same name to overwrite.

Another option is if you always use only one playlist then you can define the playlist_save_filename in playlistmanager to always override and use the same filename.