User talk:Magog the Ogre

From Wikimedia Commons, the free media repository
Jump to: navigation, search

Running cleanup bot over search results[edit]

Hi Magog. I would love to have the possibility to run your cleanup bot over files found in custom searches. Example 1, 2, 3. What do you think? --Leyo 00:57, 18 March 2015 (UTC)

@Leyo: was this a feature you wanted added to the bot, or something you just want done on a one-time basis? Magog the Ogre (talk) (contribs) 05:48, 18 March 2015 (UTC)
Well, I would love to have this as a permanent feature (as VFC does not have it). However, I don't know how tricky (and risky?) it would be to implement. --Leyo 16:52, 18 March 2015 (UTC)
@Leyo: "tricky." Actually I should be able to do that without killing myself. Magog the Ogre (talk) (contribs) 22:10, 18 March 2015 (UTC)
 ;-) “Risky” was thought to refer to the potential mass use of such an extended feature. --Leyo 23:24, 18 March 2015 (UTC)
Do you think someone might shove beans up their nose? Magog the Ogre (talk) (contribs) 23:39, 18 March 2015 (UTC)
@Leyo: this is mostly functional; it seems to be omitting some search results, but otherwise working is working now. It will limit the bot to 1000 results by request. Magog the Ogre (talk) (contribs) 00:05, 19 March 2015 (UTC)
Hey, that's great work! Thanks. The only this is that the edit summaries seem to be mixed up occasionally. --Leyo 01:21, 19 March 2015 (UTC)

@Leyo: they're not, but they're hard to read (clean up of file in search insource:/La bildo estas kopiita de wikipedia/ insource:/La originala priskribo estas/ as requested by User:Magog the Ogre). I think I will just use a generic edit summary. Magog the Ogre (talk) (contribs) 02:28, 19 March 2015 (UTC)

The search responsible for that cleanup was not the one mentioned, but insource:/Kategorie\:Datei\:Chemie/. --Leyo 10:33, 19 March 2015 (UTC)
  • Thanks for this feature! This made it possible to get rid of those silly double information templates. When Commons Helper moves files from some East Asian projects, Commons Helper doesn't properly interpret the local information template but inserts the whole template as the Chinese or Japanese "description" in another information template. --Stefan4 (talk) 11:05, 19 March 2015 (UTC)

User:OgreBot/Notable uploads and User:OgreBot/Uploads by new users[edit]

These pages are not updated for couple of days. --EugeneZelenko (talk) 14:24, 26 March 2015 (UTC)

It is also the case for Commons:WikiProject Aviation/recent uploads. Gyrostat (talk) 20:02, 26 March 2015 (UTC)
@EugeneZelenko, Gyrostat: thanks for the heads up. I've made a correction and the bot should be making the changes within a few hours. Magog the Ogre (talk) (contribs) 22:12, 26 March 2015 (UTC)
Working again, thanks, usefull tools! Gyrostat (talk) 21:59, 27 March 2015 (UTC)

Request for restoring of files[edit]

I send you this message to know if you can restore these files. They were deleted in 2013 because they were consider as Violations Copyrights, but i've remake a demand to the original photographer and ask him for an OTRS authorization (i'd forgot the OTRS procedure the last time). This is the files which are the subjects of this message :
* File:MV "Lopi" at Aliaga.jpg
* File:MV "Beau" at Aliaga.jpg
* File:MV "Antic" at Aliaga.jpg
* File:MV "Biladi" and MV "Beau" at Aliaga.jpg

If isn't possible, could you please said me which procedure i've to make to be authorize to reupload them?
Thank you in advance. Good evening. --Lev. Anthony (talk) 23:35, 28 March 2015 (UTC)

@Lev. Anthony: please see Commons:Email templates. Magog the Ogre (talk) (contribs) 23:05, 30 March 2015 (UTC)

Rexexp search against Wiki API[edit]

Hi Magog the Ogre, from your cleanup_multi.php - how to run a query containig regexp against the Wiki API? Could you please paste an example for it? I currently only get empty results although the i use the same expression as via Wiki UI. Thanks, --Arnd (talk) 08:30, 29 March 2015 (UTC)

@Aschroet: Please provide me with the regular expression you're having trouble with. Magog the Ogre (talk) (contribs) 15:53, 29 March 2015 (UTC)
I am trying this which should return the same results as this. --Arnd (talk) 18:22, 29 March 2015 (UTC)
@Aschroet: uh, I don't even know. Try asking at w:WP:VPT. Magog the Ogre (talk) (contribs) 18:31, 29 March 2015 (UTC)
But how do you run the query and extract the files in cleanup_multi.php? --Arnd (talk) 18:33, 29 March 2015 (UTC)
Through the API. I don't know why the API is returning different results for you. Magog the Ogre (talk) (contribs) 18:35, 29 March 2015 (UTC)
Can you please extract the source code line generating the API URL? --Arnd (talk) 18:40, 29 March 2015 (UTC)
@Aschroet: this is the query it runs in the above scenario, as with POST (not GET) parameters (although it shouldn't matter): [1]. Magog the Ogre (talk) (contribs) 21:25, 29 March 2015 (UTC)
Thanks, works. Seems that the namespace parameter is mandatory. Furthermore, seems to be a bug since it only happens when srsearch param.contains regexp. --Arnd (talk) 12:52, 30 March 2015 (UTC)