This page is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Now that MediaWiki supports API uploading, I rewrote the upload function in botclasses.php to use the API:
function upload ($page,$file,$desc='') {
if ($this->token == null) {
$this->token = $this->getedittoken();
}
$params = array(
'filename' => $page,
'comment' => $desc,
'text' => $desc,
'token' => $this->token,
'ignorewarnings' => '1',
'file' => '@'.$file
);
return $this->query('?action=upload&format=php',$params);
}
This is much more reliable than the old method and also gives you real status messages. Can you replace the old function with this one in botclasses.php?
Thanks! Kaldari ( talk) 05:38, 16 March 2011 (UTC)
I just got a note from your bot regarding the above file. Could you help me out here by specifying exactly what is wrong? -- John Broughton (♫♫) 22:01, 19 March 2011 (UTC)
Hi Chris G,
Back in August of last year, all of the articles on songs for Jyukai (band) were redirected to the article on the band. While the articles were redirected, the files used on those articles were deleted by the orphaned image deletion bot. However, four of the redirects were undone soon afterwards, but the files were never restored. I'm not totally sure whether the articles on the songs should be redirected or not (the claim to notability for them seems to be that they were used as theme songs for TV series). However, given that they have remained as articles for the past 7 months without anyone re-redirecting them, I was thinking the files used on them should probably be restored. The files in question and the articles where they had been used are File:Hoshi akari.jpg (used on Hoshi Akari), File:Koibito doushi.jpg (used on Koibito Doushi), File:Anata ga ita mori.jpg used on ( Anata ga Ita Mori), and File:Ainohoshi.jpg (used on Ai no Hoshi/Hanamuke no Melody). Three of the articles have since been edited to remove the redlinked files, but I would edit the articles to put the files back in if you restore them. Also, I want to mention that I wasn't the person who uploaded the files, so I can't just re-upload them. Anyway, hopefully this isn't too much trouble, and hopefully this won't cause problems if someone decides to redirect the articles again (I'm assuming the bot would just take care of the images again in that case). Calathan ( talk) 06:23, 28 March 2011 (UTC)
Please see this deletion ( http://en.wikipedia.org/?title=Special:Log&page=File%3ALogo+POP+PLUS.jpg) by the bot and notice that it was not 7 full days as advertised. -- After Midnight 0001 01:42, 5 April 2011 (UTC)