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

[web] feature requests #1621

Open
whatdoineed2do opened this issue Jun 11, 2023 · 3 comments
Open

[web] feature requests #1621

whatdoineed2do opened this issue Jun 11, 2023 · 3 comments

Comments

@whatdoineed2do
Copy link
Contributor

whatdoineed2do commented Jun 11, 2023

Suggestions for adding to web UI

  • ability to update track ratings
    server has endpoint for updating track ratings that can be triggered from web ui using:
  library_track_set_rating (trackId, rating) {
    return axios.put('/api/library/tracks/' + trackId, undefined, { params: { rating: rating } }).then((response) => {
      store.dispatch('add_notification', { text: rating === 0 ? 'Track Rating Reset' : 'Track Rating Updated', type: rating === 0 ? 'success' : 'info', timeout: 1500 })
      return Promise.resolve(response)
    })
  }

using: vue-star-rating
UI: ModalDialogTrack and PageNowPlaying

  • add to Q avoid duplicate tracks
    toggle functionality: when adding tracks to (a long) play queue (particularly play next), i do not want to duplicates track- entries - when a track is added to Q position, any previous instances of same track(s) should be removed to avoid duplicate

  • files listing needs to be more user friendly
    Currently listing is grouped in directories , playlists and the files. If you want to view files in a large library you have to scroll a long way. Need to provide an index like scheme, similar for albums view

Need index to accomodate for different groups (file vs directory) have the same index. Possibly provide a different view per group (ie show all dirs or all files or all playlists etc)

@hacketiwack
Copy link
Collaborator

@whatdoineed2do, I was indeed wondering where the rating was coming from. Looking at your proposition, makes sense actually.

@whatdoineed2do
Copy link
Contributor Author

IIRC, the track ratings can be autocalculated i believed based on number of times played, skippped etc - something similar to mpd and you can control it via the config file rating_updates flag. I wanted more control by setting the rating myself.

I never managed to submit a PR for this - in a sample impl, i have it dispalyed and settable on the track modal and now playing
image
image

      <star-rating v-model:rating="rating"
          :star-size="17"
          :padding="5"
          :show-rating="false"
          :max-rating="5"
          :increment="1"
          :inline="true"
          :clearable="true"
          :active-on-click="true"
          @update:rating="rate_track">
        </star-rating>

where rate_track calls library_track_set_rating . My impl or the star library has a bug on display of stars after the initial assignment of the rating which i never solved but the above may give you an (partially) working example

@hacketiwack
Copy link
Collaborator

hacketiwack commented Apr 23, 2024

FYI, with this commit, a breadcrumb has been implemented to simplify the navigation within directories (Files).

Moreover, there is still no index implemented. The main problem for this is to have something visually and from a user experience point of view acceptable. Any mockup for such a view can be proposed.

Not directly related, and for the record, I don't have such difficulty with my library, because I tagged all my files (with MusicBrainz Picard) and named them automatically following a scheme that avoid name clashes (e.g., two releases of the same album having the same name but different track count).

This name scheme uses MusicBrainz identifiers:

/first-character-of-album-identifier/second-character-of-album-identifier/album-identifier/track-identifier

Concretely

Music/7/4/7405a38a-a72e-4559-916a-26ff00ed2b93/30ad4c32-1fab-3536-8b7c-fb1d32207221.mp3

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