SnypeTEST's scripts php_pSio, ioTrial |
02-28-2005, 12:45 AM
|
#61
|
Senior Member
Join Date: Mar 2004
Posts: 289
|
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
|
|
|
03-10-2005, 12:01 AM
|
#62
|
Disabled
Join Date: Apr 2003
Posts: 21
|
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.
|
|
|
03-21-2005, 05:22 PM
|
#63
|
Member
FlashFXP Registered User ioFTPD Foundation User
Join Date: Apr 2004
Posts: 30
|
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.
|
|
|
04-04-2005, 10:50 AM
|
#64
|
Junior Member
Join Date: Oct 2004
Posts: 16
|
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 !!
|
|
|
04-04-2005, 11:09 AM
|
#65
|
Member
ioFTPD Registered User
Join Date: Nov 2003
Posts: 78
|
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
|
|
|
04-05-2005, 04:58 PM
|
#66
|
Senior Member
ioFTPD Scripter
Join Date: Feb 2003
Posts: 458
|
turn mp3 cache off.
|
|
|
04-06-2005, 07:50 AM
|
#67
|
Member
ioFTPD Registered User
Join Date: Nov 2003
Posts: 78
|
Quote:
Originally posted by SnypeTEST
turn mp3 cache off.
|
its already off
|
|
|
04-06-2005, 01:21 PM
|
#68
|
Junior Member
Join Date: Oct 2004
Posts: 16
|
cache is off completely, but still the cache files are created
|
|
|
04-11-2005, 01:42 PM
|
#69
|
Senior Member
Join Date: Mar 2004
Posts: 289
|
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...
|
|
|
04-11-2005, 05:48 PM
|
#70
|
Senior Member
ioFTPD Scripter
Join Date: Feb 2003
Posts: 458
|
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
|
|
|
04-12-2005, 03:29 AM
|
#71
|
Junior Member
Join Date: Jan 2005
Posts: 14
|
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.
|
|
|
04-17-2005, 09:33 PM
|
#72
|
Senior Member
Join Date: Mar 2004
Posts: 289
|
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.
|
|
|
04-17-2005, 09:49 PM
|
#73
|
Member
ioFTPD Registered User
Join Date: Nov 2003
Posts: 78
|
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 ...
|
|
|
04-17-2005, 10:09 PM
|
#74
|
Senior Member
Join Date: Mar 2004
Posts: 289
|
possible to reduce the time by limiting research ?
|
|
|
04-18-2005, 06:16 PM
|
#75
|
Senior Member
ioFTPD Scripter
Join Date: Feb 2003
Posts: 458
|
maybe you can uhh, use your local imdb site... maybe something like
uk.imdb.com ?? etc
|
|
|
Thread Tools |
|
Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:20 PM.
|