Skip to content
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

Request: keys for switching between multiple playlists in VGZ ZIP archives from within player #13

Open
JPLeBreton opened this issue Mar 27, 2023 · 1 comment

Comments

@JPLeBreton
Copy link

JPLeBreton commented Mar 27, 2023

Some VGZ ZIP archives contain multiple M3U playlists (eg to represent different versions of the game with large overlap in their soundtracks). One example can be found at the download link on this page: https://vgmrips.net/packs/pack/lemmings-series-ibm-pc-at

When such archives are opened with the vgm-player command line application, the last (alphabetically?) playlist found is used, and you can't access any of the other VGMs in the file from within vgm-player.

It would be nice if there were some in-player keystrokes that would go to the next or previous M3U playlist in the archive, the way the next/previous track keys work. Currently the only alternative is to extract all the files from the archive and play each M3U file directly.

@JPLeBreton JPLeBreton changed the title Request: keys for switching between multiple playlists in VGZ archives from within player Request: keys for switching between multiple playlists in VGZ ZIP archives from within player Mar 27, 2023
@ValleyBell
Copy link
Owner

I'm afraid that this won't be fixed very soon due to how the ZIP stuff works currently.

The way it works is this:

  • vgm-player (which is a wrapper shell script around the actual vgmplay application) determines the file type of the passed parameter
  • when it is NOT an archive -> pass it directly to vgmplay
  • when it IS an archive
    • extract the archive to a temp folder
    • search for the first .m3u file in the extracted folder
    • if not m3u is found, create one by listing all .vgm/.vgz files in the extracted folder
    • call vgmplay with that m3u file

So vgmplay itself never sees the multiple m3u files currently.


Also, I just noticed: The vgm-player wrapper script is not even included in the vgmplay-libvgm repo. It is part of legacy vgmplay only. (even though I still use it with the libvgm-based vgmplay for VGMs-in-ZIP playback)


Eventually I'd like to support ZIP and 7z files natively in VGMPlay and then you'd probably get the chance to select a list when booting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants