Code Monkey home page Code Monkey logo

Comments (8)

cweiske avatar cweiske commented on July 18, 2024

The problem still exists with Gerbera v2.1.0-45-g6379af30 (after #3092 has been merged).

from gerbera.

KarlStraussberger avatar KarlStraussberger commented on July 18, 2024

I know, try to find the root cause to fix it. It's the cleanup in grb-mode: we try to update instead of delete and create - in the end we have to cleanup orphans (unchanged because of metadata change)

from gerbera.

cweiske avatar cweiske commented on July 18, 2024

I tried compiled the latest master and tested this by using kid3-qt to add covers to all 14 files of an album.

After saving the files in kid3, only 3 of the 14 are shown in gerbera, and only 1 of the 3 has a cover image:
2024-06-28 gerbera change files

The logs say that all files have been scanned:

# journalctl -eu gerbera|tail -n25|grep Wonder|cut -b 61-
info: import: /data/media/Music/Alben/Wonderwall/What Does It Mean/Wonderwall - What Does It Mean - 01 - One More Song For You.ogg_KID3
rror: [/usr/local/src/gerbera/gerbera-git/src/cds/cds_item.cc:86] virtual void CdsItem::validate() const Error: Item validation failed: file /data/media/Music/Alben/Wonderwall/What Does It Mean/Wonderwall - What Does It Mean - 01 - One More Song For You.ogg_KID3 not found
rror: [/usr/local/src/gerbera/gerbera-git/src/cds/cds_item.cc:86] virtual void CdsItem::validate() const Error: Item validation failed: file /data/media/Music/Alben/Wonderwall/What Does It Mean/Wonderwall - What Does It Mean - 01 - One More Song For You.ogg_KID3 not found
rror: [/usr/local/src/gerbera/gerbera-git/src/cds/cds_item.cc:86] virtual void CdsItem::validate() const Error: Item validation failed: file /data/media/Music/Alben/Wonderwall/What Does It Mean/Wonderwall - What Does It Mean - 01 - One More Song For You.ogg_KID3 not found
rror: [/usr/local/src/gerbera/gerbera-git/src/cds/cds_item.cc:86] virtual void CdsItem::validate() const Error: Item validation failed: file /data/media/Music/Alben/Wonderwall/What Does It Mean/Wonderwall - What Does It Mean - 01 - One More Song For You.ogg_KID3 not found
rror: [/usr/local/src/gerbera/gerbera-git/src/cds/cds_item.cc:86] virtual void CdsItem::validate() const Error: Item validation failed: file /data/media/Music/Alben/Wonderwall/What Does It Mean/Wonderwall - What Does It Mean - 01 - One More Song For You.ogg_KID3 not found
info: import: /data/media/Music/Alben/Wonderwall/What Does It Mean/Wonderwall - What Does It Mean - 01 - One More Song For You.ogg
info: import: /data/media/Music/Alben/Wonderwall/What Does It Mean/Wonderwall - What Does It Mean - 02 - EverythingYouDoIsWrongDay.ogg
info: import: /data/media/Music/Alben/Wonderwall/What Does It Mean/Wonderwall - What Does It Mean - 03 - Sure.ogg_KID3
info: import: /data/media/Music/Alben/Wonderwall/What Does It Mean/Wonderwall - What Does It Mean - 03 - Sure.ogg
info: import: /data/media/Music/Alben/Wonderwall/What Does It Mean/Wonderwall - What Does It Mean - 04 - This Is.ogg
info: import: /data/media/Music/Alben/Wonderwall/What Does It Mean/Wonderwall - What Does It Mean - 05 - Flying.ogg
info: import: /data/media/Music/Alben/Wonderwall/What Does It Mean/Wonderwall - What Does It Mean - 06 - Princess Without Jewels.ogg
info: import: /data/media/Music/Alben/Wonderwall/What Does It Mean/Wonderwall - What Does It Mean - 07 - What Does It Mean.ogg
info: import: /data/media/Music/Alben/Wonderwall/What Does It Mean/Wonderwall - What Does It Mean - 08 - Silent Tears.ogg
info: import: /data/media/Music/Alben/Wonderwall/What Does It Mean/Wonderwall - What Does It Mean - 09 - Feel Like Dying.ogg
info: import: /data/media/Music/Alben/Wonderwall/What Does It Mean/Wonderwall - What Does It Mean - 10 - Appletree.ogg
info: import: /data/media/Music/Alben/Wonderwall/What Does It Mean/Wonderwall - What Does It Mean - 11 - Boys  Girls.ogg
info: import: /data/media/Music/Alben/Wonderwall/What Does It Mean/Wonderwall - What Does It Mean - 12 - I Want You Babe.ogg
info: import: /data/media/Music/Alben/Wonderwall/What Does It Mean/Wonderwall - What Does It Mean - 13 - Should I Cry.ogg
info: import: /data/media/Music/Alben/Wonderwall/What Does It Mean/Wonderwall - What Does It Mean - 14 - All I Want.ogg

Strange is that restarting gerbera does not fix this issue.

from gerbera.

KarlStraussberger avatar KarlStraussberger commented on July 18, 2024

Can you make sure the the CoverArt did not break the file format. Run with --debug (or matching debug-mode set in config.xml) to see details from taglib etc.

from gerbera.

cweiske avatar cweiske commented on July 18, 2024

The files are ok. I enabled taglib logging and restarted gerbera, which now shows "Enable Logging for Taglib".
Then I touched one of the missing files:

debug: [taglib_handler.cc:325] addArtworkResource(): Found artwork of type image/jpeg in file /data/media/Music/Alben/Wonderwall/What Does It Mean/Wonderwall - What Does It Mean - 14 - All I Want.ogg
debug: [taglib_handler.cc:301] fillMetadata(): TagLib handler done.
 info: [js_functions.cc:74] js_print(): import: /data/media/Music/Alben/Wonderwall/What Does It Mean/Wonderwall - What Does It Mean - 14 - All I Want.ogg

This file now appears in the album.

from gerbera.

KarlStraussberger avatar KarlStraussberger commented on July 18, 2024

I support there was a problem when importing the file in the first run. Afterwards we look at the timestamp to check for a file change. If there was no change there is no import. You may retry and observe the messages in the taglib (or other log) why the scan breaks.

from gerbera.

cweiske avatar cweiske commented on July 18, 2024

Maybe the tag editor began writing the file, and gerbera tried to import it while it was being written.

from gerbera.

KarlStraussberger avatar KarlStraussberger commented on July 18, 2024

The file change should be handled by inotify. Does the editor restore the original modification date. Gerbera needs a change in timestamp to rescan the file.

from gerbera.

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.