Hi wbartels,
is there an opportunity to get the internet image update via advanced search from http://www.slothradio.com/covers/index.php?adv=1 ??
I`ve got a lot of German Punk-Music. There are german Covers on slothradio. But there are not listed via netjukebox image updaet at the web-interface.
do you have any script to search in advanced and normal cover search !
Cover search | Locale: Germany
- wbartels
- netjukebox developer
- Posts: 881
- Joined: Thu Nov 04, 2004 3:12 pm
- Location: Netherlands
- Contact:
Re: Cover search | Locale: Germany
Not, yet.Maier540 wrote:do you have any script to search in advanced and normal cover search !
I will try to add this feature to the next netjukebox version.
Can you give me some search examples that will only be found in advanced search?
In the meantime you can change update.php with this to get your German Punk-Music covers:
Old code:
Code: Select all
$matches = '';
$content = file_get_contents('http://www.slothradio.com/covers/?artist=' . rawurlencode($artist_strip) . '&album=' . rawurlencode($album_strip));
preg_match_all('/<!-- RESULT ITEM START -->.*?<img src="(http:\/\/images\.amazon.*?)"/s', $content, $matches);
Code: Select all
$matches = '';
$content = file_get_contents('http://www.slothradio.com/covers/?adv=1&genre=p&imgsize=x&locale=de&sort=%2Bsalesrank&artist=' . rawurlencode($artist_strip) . '&album=' . rawurlencode($album_strip));
preg_match_all('/<!-- RESULT ITEM START -->.*?<img src="(http:\/\/images\.amazon.*?)"/s', $content, $matches);
Hi wbartels,
something is strange !!
The URL and the parameters seems to work
I`ve tried to put your url part of the code into the browser like this
http://www.slothradio.com/covers/?adv=1 ... Bsalesrank
and there are covers found !!
but not at your interface !?!?
can you help me, please !?
greetings
something is strange !!
The URL and the parameters seems to work
I`ve tried to put your url part of the code into the browser like this
http://www.slothradio.com/covers/?adv=1 ... Bsalesrank
and there are covers found !!
but not at your interface !?!?
can you help me, please !?
greetings
- wbartels
- netjukebox developer
- Posts: 881
- Joined: Thu Nov 04, 2004 3:12 pm
- Location: Netherlands
- Contact:
When setting "locale=de" the images come from another server.Maier540 wrote:Hi wbartels,
something is strange !!
The URL and the parameters seems to work
I`ve tried to put your url part of the code into the browser like this
http://www.slothradio.com/covers/?adv=1 ... Bsalesrank
and there are covers found !!
but not at your interface !?!?
can you help me, please !?
greetings
So the code has to be changed a little.
This would do the trick
Code: Select all
$matches = '';
$content = file_get_contents('http://www.slothradio.com/covers/?artist=' . rawurlencode($artist_strip) . '&album=' . rawurlencode($album_strip));
preg_match_all('/<!-- RESULT ITEM START -->.*?<img src="(.*?amazon\.com.*?)"/s', $content, $matches);
http://images.amazon.com and http://images-eu.amazon.com
And block images form:
http://images.google.com
hey...
the right code is:
Code:
$matches = '';
$content = file_get_contents('http://www.slothradio.com/covers/?adv=1 ... nk&artist=' . rawurlencode($artist_strip) . '&album=' . rawurlencode($album_strip));
preg_match_all('/<!-- RESULT ITEM START -->.*?<img src="(.*?amazon\.com.*?)"/s', $content, $matches);
now it works perfect !!!
thanks a lot
the right code is:
Code:
$matches = '';
$content = file_get_contents('http://www.slothradio.com/covers/?adv=1 ... nk&artist=' . rawurlencode($artist_strip) . '&album=' . rawurlencode($album_strip));
preg_match_all('/<!-- RESULT ITEM START -->.*?<img src="(.*?amazon\.com.*?)"/s', $content, $matches);
now it works perfect !!!
thanks a lot