- 0.99.5 alpha for Odroid C2 is up: http://goo.gl/4RsF9V (22/03/2016)

- MPD 0.19.14 packages are up: http://goo.gl/sGSXyK (20/03/2016)

local cover art for Mpdroid and Mpod/Mpad

Everything related to the development of Archphile distribution
User avatar
tux
Site Admin
Posts: 568
Joined: Wed Apr 16, 2014 2:03 pm
Location: Greece
Contact:

local cover art for Mpdroid and Mpod/Mpad

Postby tux » Thu Feb 19, 2015 12:10 pm

Hi all,

It's been a long time since Archphile community started experimenting with apache/lighttpd in order to be able to fetch local cover art using various MPD clients.

Although I prefer fetching the covers using internet services, I decided to find a solution with the smaller possible impact in resources/performance.

I did not want to use the well known web servers (nginx, lighttpd, Apache etc) because I believe that they are an overkill for a simple sharing of a directory that's needed in order for the local cover art to be served.

That's why I chose mongoose:

https://code.google.com/p/mongoose/
https://aur.archlinux.org/packages/mongoose/

I have added a section in /usr/bin/archphile-optimze, which is a startup script for various archphile procedures:

Code: Select all

# local cover art support
# uncomment below if you use Mpdroid. The path to music is http://xxx.xxx.xxx.xxx:8080/music/
#mongoose -listening_port 8080 -document_root /var/www/covers
# uncomment below if you use Mpod or Mpad
#mongoose -listening_port 8080 -document_root /var/www/Music


The directory /var/lib/mpd/music is linked to /var/www/covers (for mpdroid) and /var/www/Music (for Mpod/Mpad). The only thing that the end user has to do is to uncomment one of the two lines above. for example for mpdroid:

you need to uncomment the line:

Code: Select all

mongoose -listening_port 8080 -document_root /var/www/covers


so that when booting, the web server starts and you are ready to configure your MPD client.

In the Mpdroid scenario, if your device has the ip 192.168.1.100, you only need to set:

Code: Select all

http://192.168.1.100:8080/music/


as the music path.

Unforunately I don't have an ios device to test with Mpod/Mpad but I am 99% sure that it will work without any problems.

All the above will be included in the new Archphile images I am preparing.

Stay tuned!
My name is Michael
Michael
Posts: 29
Joined: Tue Dec 02, 2014 10:32 pm

Re: local cover art for Mpdroid and Mpod/Mpad

Postby Michael » Fri Feb 20, 2015 2:33 am

Huzzah! Thank you. ;)
Mushimdosa
Posts: 1
Joined: Thu Apr 09, 2015 1:04 pm

Re: local cover art for Mpdroid and Mpod/Mpad

Postby Mushimdosa » Wed Jul 01, 2015 3:01 pm

I tested mpdroid & mpod/mpad, but could not get the cover art from mpod/mpad even if i tried your instructions.
doors.sl
Posts: 12
Joined: Sun Apr 03, 2016 3:52 pm

Re: local cover art for Mpdroid and Mpod/Mpad

Postby doors.sl » Fri Apr 15, 2016 12:34 am

Is there any way to search for *.jpg in files folder instead of a Folder.jpg?
RAG
Posts: 90
Joined: Wed Sep 10, 2014 12:33 am

Re: local cover art for Mpdroid and Mpod/Mpad

Postby RAG » Fri Apr 15, 2016 8:41 am

Hi all!

That would also be in my interest. There are many solutions in computer-life, where pictures in a folder are just shown wether the folder or files have a specified name or not. To just show a jpeg or dng ore whatever file without the dependency of a special file name or folder name would be very welcome. In my case there anyway is just one picture per album stored and I think many users practice it like this.

Greetingz, Robert
espakman
Bug Destroyer
Posts: 26
Joined: Sat Jan 02, 2016 12:44 pm

Re: local cover art for Mpdroid and Mpod/Mpad

Postby espakman » Fri Apr 15, 2016 9:24 am

Hi,

That's up to the client. Archphile is serving all the files, but for example mpad/mpod picks only the name which is configured in this client (default Folder.jpg).
So nothing which can be done on the Archphile side.
RAG
Posts: 90
Joined: Wed Sep 10, 2014 12:33 am

Re: local cover art for Mpdroid and Mpod/Mpad

Postby RAG » Fri Apr 15, 2016 9:39 am

Should have thought of that. Simply logical:-) So it will be up to the MPDroid- guys.

Thanx!
doors.sl
Posts: 12
Joined: Sun Apr 03, 2016 3:52 pm

Re: local cover art for Mpdroid and Mpod/Mpad

Postby doors.sl » Fri Apr 15, 2016 2:10 pm

Hi all,
To run the coverart in mpod is necessary set this URL in MPOD http://youripaddress:8080/music.
When i try this URL http://ipaddres:8080/ doesnt work here.
espakman
Bug Destroyer
Posts: 26
Joined: Sat Jan 02, 2016 12:44 pm

Re: local cover art for Mpdroid and Mpod/Mpad

Postby espakman » Fri Apr 15, 2016 2:26 pm

I use the following URL in mpad/mpod:
http://archphile.local:8080/music
But http://<your archphile ip-address>:8080/music also works
You can point your browser to that URL to check if it works
doors.sl
Posts: 12
Joined: Sun Apr 03, 2016 3:52 pm

Re: local cover art for Mpdroid and Mpod/Mpad

Postby doors.sl » Fri Apr 22, 2016 6:11 pm

Does anyone know how the Mpdroid recognizes a local cover art?
Because in all my folders I have a file called folder.jpg, but Mpdroid does not display these files.

For example, I have a folder called Miles Davis and within a Kind of Blue folder with a SACD ISO + folder.jpg file.
In this case and in many others, not Mpdroid shows the local cover art.

Thanks.

Return to “Archphile Distribution”

Who is online

Users browsing this forum: No registered users and 1 guest