Coder Social home page Coder Social logo

Comments (6)

Rello avatar Rello commented on August 21, 2024

thank you @kbaegis for the analysis.
there is indeed an error in the scanner because when adding a track to the DB, all information is validated in combination - but not including the file_id (from owncloud filecache).

will be fixed soon

from audioplayer.

Rello avatar Rello commented on August 21, 2024

@kbaegis can you please describe the issue more in detail?
I evaluated the scanner and the current process is on purpose: when a file with the same matching combination of the following fields is found, it is not added to the database again - because this would not make any sense.

  • $aTrack['title'],
  • $aTrack['number'],
  • $aTrack['artist_id'],
  • $aTrack['album_id'],
  • $aTrack['length'],
  • $aTrack['bitrate'],
  • $aTrack['mimetype'],
  • $aTrack['genre'],
  • $aTrack['year']

This can be seen in the scanner when the numbers of "found" and "added" are different:
screen shot 2016-09-12 at 21 56 56

let me know

from audioplayer.

kbaegis avatar kbaegis commented on August 21, 2024

Here's the actual error I see from the owncloud log (sanitized):
http://hastebin.com/piqonubuvo.xml
"duplicate key value violates unique constraint"

from audioplayer.

Rello avatar Rello commented on August 21, 2024

Hello,

the problem is alerted by index

aa_tracks_file_user_id_idx

which has to be unique for file_id & user_id (where file_id is the unique ID from the cloud filecache).
But this can only be the case if you have the actual same file twice in your collection - not the same song in 2 different files.

I don´t know how this can happen - but can you please analyze how?
Any Idea?
perhaps a file linked twice via a symlink on OS level?

from audioplayer.

Rello avatar Rello commented on August 21, 2024

Hello,
Can you please post the "title" of the song mentioned in the errorlog? Could it be longer than 256 digits?

Thank you...

from audioplayer.

 avatar commented on August 21, 2024

Closed due to lack of info.

from audioplayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.