Closed altesockensuppe closed 11 months ago
Hi,
Thanks for submitting the bugreport. How big is the songs.db
file? Would it be possible to maybe send it to me on my email on my github profile / upload it somewhere?
If not, tell me, and I'll try to reproduce it artificially myself.
Hi @Polochon-street
I looked at the DB with a sqlite browser but didn't notice anything conspicuous.
I have now started to scan my collection with mp3check
and mp3val
and to repair "broken" audio files. There were a lot of hits...
the sound.db is 64mb in size. I have zipped it (still 25mb) and uploaded it.
I have sent the link to your e-mail address.
I am very curious about what is causing the problem.
Many thanks for your quick support.
Hi again! Thanks for all the nice debug info :)
The problem is most likely broken UTF8 in some songs (artists mostly), which leads to a panic when trying to get these fields from the database.
Would you be able to try out this branch https://github.com/Polochon-street/bliss-rs/pull/67 (library-fix-utf8
), and tell me whether it fixes it for you?
Cloning blissify, and putting instead of bliss-audio = "0.6.9"
, bliss-audio = { git = "https://github.com/Polochon-street/bliss-rs.git", branch = "library-fix-utf8" }
and running cargo run --release list-db
should do the trick.
I've been able to blissify list-db
with your database after my fix, but I don't know if making playlists will show other errors. Hopefully not! 🤞
Nice, works!
$ cargo run --release list-db | wc -l
Finished release [optimized] target(s) in 0.07s
warning: the following packages contain code that will be rejected by a future version of Rust: rustc-serialize v0.3.24
note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
Running `target/release/blissify list-db`
[2023-12-27T12:25:58Z WARN blissify] Could not find any MPD_PORT environment variable set. Defaulting to 6600.
59378
And even the playlist
command works! :muscle:
$ mpc
[playing] #1/1 0:04/3:53 (1%)
$ cargo run --release playlist 30
Finished release [optimized] target(s) in 0.10s
warning: the following packages contain code that will be rejected by a future version of Rust: rustc-serialize v0.3.24
note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
Running `target/release/blissify playlist 30`
[2023-12-27T12:27:42Z WARN blissify] Could not find any MPD_PORT environment variable set. Defaulting to 6600.
$ mpc
[playing] #1/30 0:43/3:53 (18%)
Should I test something else?
EDIT:
the command looks slightly different on the raspberry pi
cargo run --features=ffmpeg-next/rpi --release list-db
Awesome! If this work, everything should work hopefully.
Closing the issue, but don't hesitate to open another one if you experience any other problem :)
Hi! Just as a heads-up - I've updated blissify with the fix, so getting v.0.3.7+ should work for you. Cheers!
Hi,
after installing, I initialized my music collection.
It worked well, about 60'000 files!
but the created
songs.db
cannot be read outA
rescan
does not helpAs a test, I put the
music_directory
on a subfolder in mpd. About 500 files were scanned. Thelist-db
command worked.if I install
blissify
on another computer and copy thesound.db
to it, I get the same error.System: