Go Back   FlashFXP Forums > > > >

SnypeTEST's scripts php_pSio, ioTrial

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 02-28-2005, 12:45 AM   #61
iam
Senior Member
 
Join Date: Mar 2004
Posts: 289
Default Re: quickfix: Warning: Division by zero in D:\ioFTPD\scripts\psio\funcs.php on line 4

Quote:
Originally posted by odog
saw you guys had some problem with this error when uploading a file and no sfv exists. this gets rid of the msg.
and yes i know it aint all that nice but atleast it works!
replace in funcs.php (at the top of the file):

function progressmeter($total,$found) {
$dpercent = round($found/$total,1);
$bars = round(20*$dpercent,0);
return str_repeat("#",$bars).str_repeat("-",20-$bars);
}

with

function progressmeter($total,$found) {
if ( $total == "" ) {
return str_repeat("#",0).str_repeat("-",20-0);
} else {
$dpercent = round($found/$total,1);
$bars = round(20*$dpercent,0);
return str_repeat("#",$bars).str_repeat("-",20-$bars);
}
}
thx, working
iam is offline  
Old 03-10-2005, 12:01 AM   #62
ZAiNT
Disabled
 
Join Date: Apr 2003
Posts: 21
Default

1. someone uploads a file
2. psio renames it to somefile.bad => release 98% complete
3. after 'site rescan' somefile.bad is suddenly crc-ok(?) => release 100% complete

anyone else had this problem?

ps. lovely script ds.
ZAiNT is offline  
Old 03-21-2005, 05:22 PM   #63
prozak
Member
FlashFXP Registered User
ioFTPD Foundation User
 
Join Date: Apr 2004
Posts: 30
Default del on bad sfv request

As far as I see there is no option for files to be deleted when they do not pass sfv check. Could there be an option that would allow for deletion of all non passed files instead of them being renamed to .bad?

Thanks whatever the anwer may be.
prozak is offline  
Old 04-04-2005, 10:50 AM   #64
bethlehem
Junior Member
 
bethlehem's Avatar
 
Join Date: Oct 2004
Posts: 16
Default

Great work with that zipscript !!

the only thing which has to be improved is the deleting of the cache files like

.ioFTPD.psio_cache._mp3_info_
.ioFTPD.psio_cache._rlsinfo_
.ioFTPD.psio_cache._sfv_files_
.ioFTPD.psio_cache._sfv_info_

this is really annoying

but except of this the zipscript is really nice !!
bethlehem is offline  
Old 04-04-2005, 11:09 AM   #65
hot_pit
Member
ioFTPD Registered User
 
Join Date: Nov 2003
Posts: 78
Default

Dont know if its just me , but

$realtime_mp3_info = " ÛÛ TiTLE : %y\n". always give same title (the first mp3 uploaded).

Btw on imdb info uploaded on nfo, psio should "detach" the nfo then get the info, cause the way it is now, until grab info, psio freezes the upload on the nfo ...

I cant wait to get new version ...

Except that, psio is really nice , thnx snype
hot_pit is offline  
Old 04-05-2005, 04:58 PM   #66
SnypeTEST
Senior Member
ioFTPD Scripter
 
Join Date: Feb 2003
Posts: 458
Default

turn mp3 cache off.
SnypeTEST is offline  
Old 04-06-2005, 07:50 AM   #67
hot_pit
Member
ioFTPD Registered User
 
Join Date: Nov 2003
Posts: 78
Default

Quote:
Originally posted by SnypeTEST
turn mp3 cache off.
its already off
hot_pit is offline  
Old 04-06-2005, 01:21 PM   #68
bethlehem
Junior Member
 
bethlehem's Avatar
 
Join Date: Oct 2004
Posts: 16
Default

cache is off completely, but still the cache files are created
bethlehem is offline  
Old 04-11-2005, 01:42 PM   #69
iam
Senior Member
 
Join Date: Mar 2004
Posts: 289
Default Re: del on bad sfv request

Quote:
Originally posted by prozak
As far as I see there is no option for files to be deleted when they do not pass sfv check. Could there be an option that would allow for deletion of all non passed files instead of them being renamed to .bad?

Thanks whatever the anwer may be.
yeah needeed, too many file *.bad...
iam is offline  
Old 04-11-2005, 05:48 PM   #70
SnypeTEST
Senior Member
ioFTPD Scripter
 
Join Date: Feb 2003
Posts: 458
Default

oh.. sorry guys i am taking alitle break until d1 releases new version. I bet someone can just update my script to do not rename bad files
SnypeTEST is offline  
Old 04-12-2005, 03:29 AM   #71
sk1nt
Junior Member
 
Join Date: Jan 2005
Posts: 14
Default

Easy done, in zipscript-c.php replace
Code:
if (file_exists($filename.".bad")) {
   unlink($filename.".bad");
}
rename($filename,$filename.".bad");
remfile($filename);
with
Code:
if ($create_bad_files == TRUE) {
    if (file_exists($filename.".bad")) {
        unlink($filename.".bad");
    }
    rename($filename,$filename.".bad");
    remfile($filename);
} else {
   unlink($filename);
}
If you want the same change for zips do the same change some lines above.
sk1nt is offline  
Old 04-17-2005, 09:33 PM   #72
iam
Senior Member
 
Join Date: Mar 2004
Posts: 289
Default

thx sk1nt, (not test atm),

it is normal that that would be long?
Transferred: avp-rejects.nfo 11 KB in 42,52 seconds (0,3 KB/s)

when I activate:
Quote:
$IMDB_CONF['ENABLED'] = TRUE;
$IMDB_CONF['SECTIONS'] = "DIVX";
$IMDB_CONF['SCREENS_LAYOUT'] = "%B%c%B %n SCREENS :: ";
$IMDB_CONF['ANNOUNCE_MSG'] = "";
without this option that work fine.
iam is offline  
Old 04-17-2005, 09:49 PM   #73
hot_pit
Member
ioFTPD Registered User
 
Join Date: Nov 2003
Posts: 78
Default

Quote:
Originally posted by iam
thx sk1nt, (not test atm),

it is normal that that would be long?
Transferred: avp-rejects.nfo 11 KB in 42,52 seconds (0,3 KB/s)

when I activate:


without this option that work fine.
sure, its downloading info from imdb and parsing it ...
hot_pit is offline  
Old 04-17-2005, 10:09 PM   #74
iam
Senior Member
 
Join Date: Mar 2004
Posts: 289
Default

possible to reduce the time by limiting research ?
iam is offline  
Old 04-18-2005, 06:16 PM   #75
SnypeTEST
Senior Member
ioFTPD Scripter
 
Join Date: Feb 2003
Posts: 458
Default

maybe you can uhh, use your local imdb site... maybe something like

uk.imdb.com ?? etc
SnypeTEST is offline  
Closed Thread

Tags
php, post, psio, remove, zip.exe

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:37 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)