10000 Songs with sequential collatable artist or title are duplicated in db on every load · Issue #992 · performous/performous · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Songs with sequential collatable artist or title are duplicated in db on every load #992

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

Open
BWagener opened this issue May 5, 2024 · 0 comments
Labels

Comments

@BWagener
Copy link
Contributor
BWagener commented May 5, 2024

Performous & operating system versions

Performous: master 41b7637
Operating system: Windows 11 Pro N and Steam OS 3.5.19

What is the problem?

When a song's artist or title starts with two or more "collatable" words (words defined in config[game/sorting_ignore]) it is duplicated in the DB whenever it is loaded from cache.

Steps to reproduce

Change a song's artist or title to fit the criteria above, some examples:

  • Alejandro Sanz - A la primera persona
  • Ed Sheeran - The A Team
  • La La Land (Emma Stone) - Audition (The Fools Who Dream)

Start up the game, close it, start it again, close it.

First save:

    <song id="0" artist="Alejandro Sanz" title="la primera persona,A"/>
    <song id="1" artist="Ed Sheeran" title="A Team,The"/>
    <song id="3" artist="La Land (Emma Stone),La" title="Audition (The Fools Who Dream)"/>
    ...

Second save:

    <song id="0" artist="Alejandro Sanz" title="primera persona,A,la"/>
    <song id="1" artist="Ed Sheeran" title="Team,The,A"/>
    <song id="3" artist="Land (Emma Stone),La,La" title="Audition (The Fools Who Dream)"/>
    ...
    <song id="10" artist="Alejandro Sanz" title="la primera persona,A"/>
    <song id="11" artist="Ed Sheeran" title="A Team,The"/>
    <song id="13" artist="La Land (Emma Stone),La" title="Audition (The Fools Who Dream)"/>
    ...

Third save:

    <song id="0" artist="Alejandro Sanz" title="primera persona,A,la"/>
    <song id="1" artist="Ed Sheeran" title="Team,The,A"/>
    <song id="3" artist="Land (Emma Stone),La,La" title="Audition (The Fools Who Dream)"/>
    ... 
    <song id="10" artist="Alejandro Sanz" title="primera persona,A,la"/>
    <song id="11" artist="Ed Sheeran" title="Team,The,A"/>
    <song id="13" artist="Land (Emma Stone),La,La" title="Audition (The Fools Who Dream)"/>
    ...
    <song id="20" artist="Alejandro Sanz" title="la primera persona,A"/>
    <song id="21" artist="Ed Sheeran" title="A Team,The"/>
    <song id="23" artist="La Land (Emma Stone),La" title="Audition (The Fools Who Dream)"/>
    ...

Additional context

#989 coincidentally works around this issue most of the times, as long as the cache is not deleted.

As a proper solution I would suggest only ever saving the unmodified artist and title like outlined in this PR: #993

Log(s) & preferences file(s)

No response

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

No branches or pull requests

1 participant
0