Page 5 of 6

Re: Now Playing FTP 1.6 [MM2+3]

Posted: Mon Oct 06, 2008 6:53 am
by Peke
The reason you get this file is that file is still in Upload Queue of pureftpd Server (pure ftp daemon uses this naming for temporal files).

Re: Now Playing FTP 1.6 [MM2+3]

Posted: Mon Oct 06, 2008 7:25 am
by SpritHansi
FlashFXP also use .preftp files. It disappear after a few seconds, and then I get the error in MM3

Re: Now Playing FTP 1.6 [MM2+3]

Posted: Tue Oct 07, 2008 7:04 am
by trixmoto
If you upload the file manually, what commands does your ftp software send and what responses does it get?

Re: Now Playing FTP 1.6 [MM2+3]

Posted: Fri Oct 31, 2008 5:46 am
by SpritHansi
[R] TYPE I
[R] 200 TYPE is now 8-bit binary
[R] PASV
[R] 227 Entering Passive Mode (195,47,247,64,247,113)
[R] Opening data connection IP: 195.47.247.64 PORT: 63345
[R] STOR np.inc
[R] 150 Accepted data connection
[R] 226-File successfully transferred
[R] 226 0.086 seconds (measured here), 2.23 Kbytes per second
Transferred: np.inc 196 bytes in 0,17 seconds (1,1 KB/s)
[R] TYPE A
[R] 200 TYPE is now ASCII
[R] PASV
[R] 227 Entering Passive Mode (195,47,247,64,246,155)
[R] Opening data connection IP: 195.47.247.64 PORT: 63131
[R] MLSD
[R] 150 Accepted data connection
[R] 226-Options: -a -l
[R] 226 7 matches total
[R] List Complete: 799 bytes in 0,30 seconds (2,6 KB/s)
Transfer queue completed
Transferred 1 file totaling 196 bytes in 2,74 seconds (1,1 KB/s)

Re: Now Playing FTP 1.6 [MM2+3]

Posted: Mon Nov 03, 2008 4:53 am
by trixmoto
Well that's fine, it's correctly giving 226 responses once the file is uploaded. I'm not sure why this is not happening when the file is automatically uploaded though. :-?

Re: Now Playing FTP 1.7 [MM2+3]

Posted: Sun Dec 21, 2008 1:26 pm
by trixmoto
New version (1.7) now available to download. Changes include...

- Fixed errors if no track in player
- Fixed artwork should be uploaded first
- Added option to include previous tracks
- Added album artist and rating values
- Fixed html encoding issues
- Added update server to installation package

The option to include previous tracks build a php array of the values, excluding the image which is not included. Here are some examples...

Code: Select all

echo "The previous track's title was ".$prev[0]["title"];
echo "The track before the previous track's genrewas ".$prev[1]["genre"];
You get the idea! :)

Re: Now Playing FTP 1.7 [MM2+3]

Posted: Thu Mar 19, 2009 2:11 pm
by koro
Hi Trix,

I tried this ftp upload but i always get this error: "NowPlayingFTP: Error occured during file upload"

If i open a dos box and do manualy like in your script, and i select a random file (wich i have on my HD) everything seems to be working fine.
But i can't find the file np.inc in the scripts map?
Or does the script make this locally?

Greetz,
Koen

Re: Now Playing FTP 1.7 [MM2+3]

Posted: Fri Mar 20, 2009 5:43 am
by trixmoto
The "np.*" files are created in the windows temporary directory (%temp%) but are cleaned up as well. If you are on Vista, Try finding the "command.exe" program, right clicking on it and ticking "Run as administrator" in the properties.

Re: Now Playing FTP 1.7 [MM2+3]

Posted: Fri Mar 20, 2009 7:36 am
by koro
Hi trix,

No i use Win XP SP3... do i have to see the file created and deleted.
If so, i'll see if the file is created... and deleted...
I have no idea wich causes this upload error.

I have also a second domain wich i support, and uploading to that one gives the same error.
So i think it's on my side...

tnx,
Koen

Re: Now Playing FTP 1.7 [MM2+3]

Posted: Fri Mar 20, 2009 1:37 pm
by koro
Hi Trix,

It's working now...

The only problem i have is, if i don't have a cover, the previous stays on screen. I only show np.jpg.

<body>
<table width="200" border="0">
<tr>
<td align="center"><strong class="Verdana">Now Playing</strong></td>
</tr>
<tr>
<td align="center"><img src="np.jpg" width="150" height="150" border="1"></td>
</tr>
<tr>
<td height="52" align="center" valign="top" class="Titels">
<?php
$refresh = 40;


include("np.inc");
switch ($mode) {
case "0":

echo "$artist<br/>$title<br/>$album<br/>$year<br/>$genre" ;

break;
case "1":
echo "Player stopped.";
break;
case "2":
echo "Player closed.";
break;
default:
echo "Data unavailable.";
}
?>
<meta http-equiv="refresh" content="<?php echo $refresh; ?>" />
</td>
</tr>
</table>
<p>&nbsp;</p>
</body>


How can i show the default.jpg?

Koen

Re: Now Playing FTP 1.7 [MM2+3]

Posted: Sat Mar 21, 2009 5:49 pm
by trixmoto
Well "$image" is set to blank so you could check for this and set it to be a default image of your choosing.

Re: Now Playing FTP 1.8 [MM2+3] - Updated 09/01/2010

Posted: Sat Jan 09, 2010 8:41 am
by trixmoto
New version (1.8.) is now available to download from my website. Now the FTP password is encrypted before storing in the INI file. When installing this version over the top of an existing version, the password will be blanked out and you will need to re-enter it.

Re: Now Playing FTP 1.8 - Updated 09/01/2010

Posted: Sat Apr 24, 2010 12:43 pm
by ermal
Can you please make a version of this script that just saves the currently playing album art in a directory. I want to access it in order to make a docklet for objectdock. I've modified a growl notification script that was based on your script but many of the script lines are not used and it needs a growlnotification.exe to run without errors(i'm accessing np.jpg in temp folder by the way). I just hope for you to help me make the script cleaner. :) Thank you

Re: Now Playing FTP 1.8 - Updated 09/01/2010

Posted: Sun Apr 25, 2010 5:20 am
by trixmoto
This script stores the currently playing album art as "%temp%\np.jpg" if you have that option enabled.

Re: Now Playing FTP 1.8 - Updated 09/01/2010

Posted: Sun Apr 25, 2010 6:39 am
by ermal
trixmoto wrote:This script stores the currently playing album art as "%temp%\np.jpg" if you have that option enabled.
yes but it keeps asking me for a ftp adress and I don't have one. If i enter a non existing adress it gives me an error. That's why i needed your help :)