Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • funkwhale funkwhale
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 379
    • Issues 379
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • funkwhalefunkwhale
  • funkwhalefunkwhale
  • Issues
  • #1238
Closed
Open
Issue created Sep 25, 2020 by David Sn@divadsn

Add number of tracks and discs of an album to API

/label Type: New feature Status: Need triage

What is the problem you are facing?

While working on improving the mopidy plugin for funkwhale, I noticed that there is currently no way to determine the amount of tracks and discs for an album from the API, which makes multi-CD albums a problem when browsing the library using ncmpcpp.

What are the possible drawbacks or issues with the requested changes?

Currently, this is how the playlist looks like when mopidy has wrong information about album track amount:

Screenshot_20200925_062403

The /0 are because as for now, the num_tracks for an album are determined by this snippet of code:

len(payload.get("tracks", [])),

I guess before the track endpoint got added into the API, the tracks were returned as a list with the album, which made the code above work.

Context

Other streaming services API have meta about album track and disc amount in their responses, so why not in Funkwhale?

Assignee
Assign to
Time tracking