ruby-mpd icon indicating copy to clipboard operation
ruby-mpd copied to clipboard

.songs returns empty array despite reporting 200k songs

Open whatisgravity opened this issue 8 years ago • 4 comments

Any idea why I would always get an empty string when using mpd.songs. When using ympd it shows a database, and mpd stats even report back that it has songs. I can do mpd.albums and mpd.artists and it gives the exepcted output but songs is empty. Is it that I have too many songs?

mpd.stats
 => {:uptime=>2930, :playtime=>0, :artists=>2169, :albums=>1772, :songs=>201361, :db_playtime=>29261847, :db_update=>2016-02-01 23:44:27 +0100}

whatisgravity avatar Feb 01 '16 22:02 whatisgravity

Can you try the latest version from the repo, or manually apply https://github.com/Phrogz/ruby-mpd/commit/54741ab83f8a69db10a359a626af5be3aa2f2379 locally? I suspect that will fix your problem.

Phrogz avatar Feb 12 '16 18:02 Phrogz

I will be attempting this soon, thank you for the suggestion. I will report the results when I complete it.

whatisgravity avatar Feb 13 '16 23:02 whatisgravity

If that fixes it, I'll do a new gem release soon, was just planning on merging all PRs by @Phrogz first :)

archseer avatar Feb 14 '16 03:02 archseer

Maybe this is related to #80?

janpieper avatar Mar 27 '16 12:03 janpieper