0x40-web icon indicating copy to clipboard operation
0x40-web copied to clipboard

First song can't be from querried packs.

Open Ondrej-Douda opened this issue 4 years ago • 5 comments
trafficstars

When external respack is loaded using URL querry, first song can't be selected from this respack... Example: https://0x40.mon.im/montegral.html?autoSong=off&packs=mon.zip&skipPreloader=off&song=lobster_loop

This will load selected respack, but use first song from default respack...

Ondrej-Douda avatar Nov 04 '21 10:11 Ondrej-Douda

Ah - the search for songs is based on the song name only, so if you provide song=LÅT it works fine.

There are some solutions here, such as just using the song name, or extending the search to also use the artist name and the filename, what are your thoughts?

mon avatar Nov 05 '21 02:11 mon

Oh, so it searches by title, not song name, haven't thought about that... Using title is fine for me, but might be extended to use also filename (mentioned usecase)...

Some additional thoughts (might exist, but missed them): (Would be nice to be able to)

  • reference remote/external respacks using URL.
  • filter/deselect/forbid some respacks' resources (images/songs).
  • hide UI.
  • remove/delete already imported respacks.
  • reconstruct/generate URL with current settings (setup using UI, share by copy/paste).
  • add/append additional packsURL.

And I want to thank you for maintaining this wonderful tool/app/page/platform...

Ondrej-Douda avatar Nov 05 '21 12:11 Ondrej-Douda

Here's my recommendation: If you can host external respacks, you can host your own hues! This solves

  • reference remote/external respacks using URL.
  • add/append additional packsURL
  • filter/deselect/forbid some respacks' resources (images/songs)
  • remove/delete already imported respacks.
    • Just delete them
  • hide UI
    • make a CSS rule: .hues-ui { display: none }

The one I can't easily solve at the moment: reconstruct/generate URL with current settings (setup using UI, share by copy/paste).

I like the idea, but it might take some time to implement as I am time-poor.

mon avatar Nov 05 '21 13:11 mon

These thought were mostly about ability to tailor already hosted hues... Referencing external respacks would be for ability to load others work from different hues/sites... Then you could merge and choose from all the resource available on internet... Most of the "recomendations" are targeted for querring...

If you don't mind I'll fiddle with your code and possibly make some improving PRs...

Ondrej-Douda avatar Nov 05 '21 14:11 Ondrej-Douda

Seems reasonable enough - that's why the code is open-source, after all!

mon avatar Nov 05 '21 15:11 mon