Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Soundirok cover art
#1
Anybody know how to get the cover art url in moode 5.0 for soundirok?
Reply
#2
ssh into moode
cd /var/www/
dir
make note of the 7 digit number
enter that into souundirox

my 7 digit number is 2056211, ip address 192.168.1.107
so I enter http://192.168.1.107//2056211//

you will need to do this every time you reboot or when the number changes.
Reply
#3
Hello,
we had that topic a while ago. So here is what to do (It's not from me, I think it was TheOldPresbyope):

sh into moode
cd /var/www/command
sudo nano worker.php

In /var/www/command/worker.php, at or around line 242, you should find this section:
// ensure certain files exist
if (!file_exists('/var/www/cover')) {SysCmd('ln -s /var/lib/mpd/music /var/www/cover');} <- this is the new line you have to insert
if (!file_exists('/var/local/www/currentsong.txt')) {sysCmd('touch /var/local/www/currentsong.txt');} <- this line should be already there
Save the file and reboot.

For example in M.A.L.P. the path for the covers then is: "http://moode/cover/%d/folder.jpg"
In MpDroid use: http://moode/cover/
In Soundirok it should be: http://moode/cover/
instead of "moode" use the name of your player or the IP-Address of your installation.

@Tim: Would it be possible to add that one line in the future version. It would be very helpful. Many thanks in advance.

Have fun
  duke.g

1x RPi 3B, 1x RPi 4, 1x RPi 5, Moode 9; 6k flac Songs; 180k MP3 Songs; Asset-UpnP 186k Songs
The blues has got a hold of me, I believe I'm gettin' dizzy - ZZ Top
Reply
#4
(04-18-2019, 08:51 PM)duke.g Wrote: Hello,
we had that topic a while ago. So here is what to do (It's not from me, I think it was TheOldPresbyope):

sh into moode
cd /var/www/command
sudo nano worker.php

In /var/www/command/worker.php, at or around line 242, you should find this section:
// ensure certain files exist
if (!file_exists('/var/www/cover')) {SysCmd('ln -s /var/lib/mpd/music /var/www/cover');} <- this is the new line you have to insert
if (!file_exists('/var/local/www/currentsong.txt')) {sysCmd('touch /var/local/www/currentsong.txt');} <- this line should be already there
Save the file and reboot.

For example in M.A.L.P. the path for the covers then is: "http://moode/cover/%d/folder.jpg"
In MpDroid use: http://moode/cover/
In Soundirok it should be: http://moode/cover/
instead of "moode" use the name of your player or the IP-Address of your installation.

@Tim: Would it be possible to add that one line in the future version. It would be very helpful. Many thanks in advance.

Have fun
  duke.g

Thanks, that did the job. I agree it would be great if @Tim could include this in future images.
Reply
#5
For the sake of completeness; I believe I've accomplished the same a little differently.

Simply by adding the line "sudo ln -s /var/lib/mpd/music/ /var/www/soundirok" above "exit 0" in the file "/var/local/www/commandw/wrkready.sh".

(In Soundirok, under Settings/Devices/Collection URL, i have correspondingly entered "http://172.24.1.1/soundirok/".)
Reply
#6
Anybody who has a solution for embedded covers? Because this all works great for separate cover files but not for the all-in-covers...

Thx,
Johan
 :@
Reply
#7
(04-20-2019, 08:38 PM)JST1963 Wrote: Anybody who has a solution for embedded covers? Because this all works great for separate cover files but not for the all-in-covers...

Thx,
Johan

... a workaround maybe http://moodeaudio.org/forum/showthread.p...282&page=2
Reply
#8
(04-21-2019, 06:17 AM)CallMeMike Wrote:
(04-20-2019, 08:38 PM)JST1963 Wrote: Anybody who has a solution for embedded covers? Because this all works great for separate cover files but not for the all-in-covers...

Thx,
Johan

... a workaround maybe http://moodeaudio.org/forum/showthread.p...282&page=2

I can't quite follow you, Mike... Is this going to solve my problem having cover art in Soundirok or M.A.L.P.?
 :@
Reply
#9
(04-20-2019, 08:38 PM)JST1963 Wrote: Anybody who has a solution for embedded covers? Because this all works great for separate cover files but not for the all-in-covers...

Thx,
Johan

As far as I know, Soundirok does not handle embedded album art. 

I wrote a short bash script to extract embedded covers into their respective folders. I'll post it here if I can locate it...
Reply
#10
(04-21-2019, 08:35 PM)Tenbagger Wrote: I wrote a short bash script to extract embedded covers into their respective folders. I'll post it here if I can locate it...

Thx for the clear answer. And yes, please, I would love to try that script.
I had my library as a flat list but as soon as I found out cover art wasn't working in that sort of setup, I put all the songs back in a folder structure "drive:\Artist\Album\Song.ext".
Didn't do it manually but I did it with a lil (very basic) routine I wrote in (die hard programmers, cover your ears now!!!) in Excel using VBA.

J
 :@
Reply


Forum Jump: