Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • funkwhale funkwhale
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 385
    • Issues 385
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • funkwhale
  • funkwhalefunkwhale
  • Issues
  • #740

Closed
Open
Created Mar 05, 2019 by Trent Reed@TReed0803

Attempting to Import a Track With the Same Track Title, Album, and Artist (But Different Positions) Results in the Track Being Skipped as a Duplicate

Steps to reproduce

  1. Visit the "Add Content" page on an existing Funkwhale instance.
  2. Prepare to upload content (Get Started -> Upload -> Proceed).
  3. Upload two tracks that are from the same album, artist, with the same track name (different track positions). (Here is the release I was attempting to upload: OCTOPATH TRAVELER Arrangements Break & Boost; the track "Decisive Battle II")

What happens?

The second track with the same name, album, and artist is marked as a duplicate of the first, and is skipped in the import task process.

What is expected?

I would expect that because the tracks are in different positions on the album (or if they were on different discs) that they would not be marked as duplicates.

Context

Funkwhale version(s) affected: 0.18.1

I believe that the this has to do with the following line in file tasks.py:

query = Q(title__iexact=track_title, artist=artist, album=album)

Because the query to find duplicate tracks doesn't segment by the track position, this means that any albums which release which have the same title, artist, and album may be marked as duplicate. If possible, we should take track position and maybe disc number into consideration to ensure there are no collisions.

In case it helps, I'm using a Docker instance with an nginx proxy.

Work-Arounds

If you are here because you experience this issue, one possible work-around is to alter the title of the track using a tag editor to be different just to bypass the duplication detection logic, you can then log in to the admin pages ($HOST/api/admin) to change the track name back to what it originally was.

Assignee
Assign to
Time tracking