Now Playing FTP 1.8 - Updated 09/01/2010

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderators: Peke, Gurus

Peke
Posts: 18413
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: Now Playing FTP 1.6 [MM2+3]

Post 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).
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
SpritHansi
Posts: 57
Joined: Sun Jun 18, 2006 4:43 pm

Re: Now Playing FTP 1.6 [MM2+3]

Post by SpritHansi »

FlashFXP also use .preftp files. It disappear after a few seconds, and then I get the error in MM3
Regards
SpritHansi
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Re: Now Playing FTP 1.6 [MM2+3]

Post by trixmoto »

If you upload the file manually, what commands does your ftp software send and what responses does it get?
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
SpritHansi
Posts: 57
Joined: Sun Jun 18, 2006 4:43 pm

Re: Now Playing FTP 1.6 [MM2+3]

Post 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)
Regards
SpritHansi
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Re: Now Playing FTP 1.6 [MM2+3]

Post 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. :-?
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Re: Now Playing FTP 1.7 [MM2+3]

Post 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! :)
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
koro
Posts: 42
Joined: Thu Aug 07, 2008 2:49 am

Re: Now Playing FTP 1.7 [MM2+3]

Post 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
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Re: Now Playing FTP 1.7 [MM2+3]

Post 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.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
koro
Posts: 42
Joined: Thu Aug 07, 2008 2:49 am

Re: Now Playing FTP 1.7 [MM2+3]

Post 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
koro
Posts: 42
Joined: Thu Aug 07, 2008 2:49 am

Re: Now Playing FTP 1.7 [MM2+3]

Post 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
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Re: Now Playing FTP 1.7 [MM2+3]

Post 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.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

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

Post 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.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
ermal
Posts: 38
Joined: Wed Jun 04, 2008 4:32 pm

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

Post 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
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

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

Post by trixmoto »

This script stores the currently playing album art as "%temp%\np.jpg" if you have that option enabled.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
ermal
Posts: 38
Joined: Wed Jun 04, 2008 4:32 pm

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

Post 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 :)
Post Reply