Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: iTMS cover download script (Read 12142 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

iTMS cover download script

I put the php walmart cover download script together with some of the code from http://tpemble.urfbownd.net/itunes/, and made this.

The iTMS covers are much better than walmart or amazon because they are 600x600 and excellent quality.

Install php4 (not 5) (from the zip file here).
Put the php.ini from my zip in your php folder.

Works best with foo_openwith, using these parameters:
Code: [Select]
App path: "c:\program files\php4\php.exe"
pre params: "c:\program files\foobar2000\itmscovers\getcover.php"
main params: "[%artist%]" "[%album%]" "[%song%]" "$replace(%_path%,\%_filename_ext%,)" "folder"

Beware of the line wrapping, some of them need an extra space at the end too.

The command preview should show something like this:
Code: [Select]
"c:\program files\php4\php.exe" "c:\program files\foobar2000\itmscovers\getcover.php" "Iron Maiden" "Killers" "" "d:\Music\Iron Maiden\[1981] Killers" "folder"


[attachment=1965:attachment]

iTMS cover download script

Reply #1
Quote
Put the php.ini from my zip in your php folder.
[a href="index.php?act=findpost&pid=351784"][{POST_SNAPBACK}][/a]

what changes did you make to the php.ini file?
--alt-presets are there for a reason! These other switches DO NOT work better than it, trust me on this.
LAME + Joint Stereo doesn't destroy 'Stereo'

iTMS cover download script

Reply #2
Quote
Quote
Put the php.ini from my zip in your php folder.
[a href="index.php?act=findpost&pid=351784"][{POST_SNAPBACK}][/a]

what changes did you make to the php.ini file?
[a href="index.php?act=findpost&pid=351997"][{POST_SNAPBACK}][/a]


Added "extension=extensions/php_domxml.dll" (needed to parse the iTMS XML) and changed max_execution_time so that it doesn't timeout if the connection is slow.

iTMS cover download script

Reply #3
Quote
Quote
Quote
Put the php.ini from my zip in your php folder.
[a href="index.php?act=findpost&pid=351784"][{POST_SNAPBACK}][/a]

what changes did you make to the php.ini file?
[a href="index.php?act=findpost&pid=351997"][{POST_SNAPBACK}][/a]


Added "extension=extensions/php_domxml.dll" (needed to parse the iTMS XML) and changed max_execution_time so that it doesn't timeout if the connection is slow.
[a href="index.php?act=findpost&pid=352003"][{POST_SNAPBACK}][/a]

thanks for your answer. why don't you want people tu run it on php5...because that way I have on my system...
--alt-presets are there for a reason! These other switches DO NOT work better than it, trust me on this.
LAME + Joint Stereo doesn't destroy 'Stereo'

iTMS cover download script

Reply #4
Quote
Quote
Quote
Quote
Put the php.ini from my zip in your php folder.
[a href="index.php?act=findpost&pid=351784"][{POST_SNAPBACK}][/a]

what changes did you make to the php.ini file?
[a href="index.php?act=findpost&pid=351997"][{POST_SNAPBACK}][/a]


Added "extension=extensions/php_domxml.dll" (needed to parse the iTMS XML) and changed max_execution_time so that it doesn't timeout if the connection is slow.
[a href="index.php?act=findpost&pid=352003"][{POST_SNAPBACK}][/a]

thanks for your answer. why don't you want people tu run it on php5...because that way I have on my system...
[a href="index.php?act=findpost&pid=352004"][{POST_SNAPBACK}][/a]


I tried it with php5, but found it didn't work, and at the time I couldn't be bothered working out why, as it is quite easy to have multiple php installations. I think the reason is that classes have been completely revamped in php5, however I'm no PHP ace and I can only code the stuff which is the same as C/C++

iTMS cover download script

Reply #5
Quote
however I'm no PHP ace and I can only code the stuff which is the same as C/C++
[a href="index.php?act=findpost&pid=352005"][{POST_SNAPBACK}][/a]

so why don't you create a plugin for foobar that doesn't depend on PHP
--alt-presets are there for a reason! These other switches DO NOT work better than it, trust me on this.
LAME + Joint Stereo doesn't destroy 'Stereo'

iTMS cover download script

Reply #6
Quote
Quote
however I'm no PHP ace and I can only code the stuff which is the same as C/C++
[{POST_SNAPBACK}][/a]

so why don't you create a plugin for foobar that doesn't depend on PHP
[a href="index.php?act=findpost&pid=352013"][{POST_SNAPBACK}][/a]


Most of this code comes from existing PHP scripts, from [a href="http://tpemble.urfbownd.net/itunes/]http://tpemble.urfbownd.net/itunes/[/url] and from the walmart script posted here earlier. Also its much easier to do web stuff (retrieving http pages and running regular expressions on them etc.) in a language like PHP or Python or .NET

iTMS cover download script

Reply #7
[removed]

iTMS cover download script

Reply #8
Quote
  • Copy the contents of the DLLs subdirectory to the main PHP directory

Thank you!

iTMS cover download script

Reply #9
Does not work here 

I get "No input file specified"

Any idea why ?

iTMS cover download script

Reply #10
Quote
Does not work here 

I get "No input file specified"

Any idea why ?
[a href="index.php?act=findpost&pid=355580"][{POST_SNAPBACK}][/a]


don't quite know what's wrong,
when i run it, get a blank cmd popup which quickly disappears

and nothing happens

iTMS cover download script

Reply #11
Quote
don't quite know what's wrong,
when i run it, get a blank cmd popup which quickly disappears

and nothing happens


I presume your running it using foo_openwith so I suggest you run it manually from the command prompt. At least then you'll have some feedback that you can post back here.

iTMS cover download script

Reply #12
Quote
Quote
don't quite know what's wrong,
when i run it, get a blank cmd popup which quickly disappears

and nothing happens


I presume your running it using foo_openwith so I suggest you run it manually from the command prompt. At least then you'll have some feedback that you can post back here.
[a href="index.php?act=findpost&pid=356067"][{POST_SNAPBACK}][/a]



how do i go about doing that?
thanks

iTMS cover download script

Reply #13
Quote
how do i go about doing that?
thanks

Read the first post, it's all there.
Quote
The command preview should show something like this:
Code: [Select]
"c:\program files\php4\php.exe" "c:\program files\foobar2000\itmscovers\getcover.php" "Iron Maiden" "Killers" "" "d:\Music\Iron Maiden\[1981] Killers" "folder"
Explanation of the syntax:
"Location of PHP4" "Location of Script" "ARTIST" "ALBUM" "SONG" "Album Directory" "Filename the downloaded picture should take"

So open up Command Prompt and copy that in (careful, there are no line breaks).

EDIT: Also be aware that the album art can only be placed in an existing folder. PHP4 cannot make the directory for you.

iTMS cover download script

Reply #14
Quote from: prawns,Jan 11 2006, 06:[code
50 AM]
[quote=jett,Jan 11 2006, 06:14 AM]how do i go about doing that?
thanks[/quote]
Read the first post, it's all there.
[quote]The command preview should show something like this:
[code]"c:\program files\php4\php.exe" "c:\program files\foobar2000\itmscovers\getcover.php" "Iron Maiden" "Killers" "" "d:\Music\Iron Maiden\[1981] Killers" "folder"[/code]
Explanation of the syntax:
"Location of PHP4" "Location of Script" "ARTIST" "ALBUM" "SONG" "Album Directory" "Filename the downloaded picture should take"

So open up Command Prompt and copy that in (careful, there are no line breaks).

EDIT: Also be aware that the album art can only be placed in an existing folder. PHP4 cannot make the directory for you.
[a href="index.php?act=findpost&pid=356345"][{POST_SNAPBACK}][/a]
[/quote]

thanks for that

Code: [Select]
X-Powered-By: PHP4/4.4.1
Content-type: text/html

Your search returned no results


i ran this on another album and received the same response as zurman

 

iTMS cover download script

Reply #15
hi, new to hydrogen, got the script working fine, but how can i add a line in the script, to make it pause before it closes, sometimes miss the output

thanks