Wikipedia:Bots/Requests for approval/EyeEightDestroyerBot
- The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA. The result of the discussion was Approved.
Operator: X! (talk · contribs)
Automatic or Manually assisted: Automatic
Programming language(s): PHP
Source code available: On Toolserver SVN
Function overview: As requested on BOTREQ, this is an adminbot that will delete 25000 specific images under CSD F8.
Links to relevant discussions (where appropriate):
Edit period(s): One-time run
Estimated number of pages affected: Roughly 25000 images will be deleted.
Exclusion compliant (Y/N): Y
Already has a bot flag (Y/N): N
Function details: This bot, as requested by multichil, does the following:
- Get every transclusion of Special:WhatLinksHere/Template:PBB Image citation
- For each transclusion:
- Check if the transclusion is actually an image, if not, skips
- Check if the image exists on Commons, if not, skips
- Gets the hashes of both the enwiki and commons images, if they are not the same, skips
- Checks if the enwiki page has {{nobots}} (or a variant), if so, skips
- Deletes the image with the summary: "[[WP:CSD#F8|F8]]: Media file available on Commons - http://commons.wikimedia.org/wiki/File:Example.jpg"
This is a one-time run, so this should be relatively uncontroversial.
Discussion
[edit]I have spammed WP:AN and WP:VPR about this bot. (X! · talk) · @072 · 00:43, 1 March 2010 (UTC)[reply]
- Looks good as far as I can see. Two small points:
- You don't have to download the files, you can just ask the api the SHA1 hash
- Link should probably not be external, what do you think of "[[WP:CSD#F8|F8]]: Media file available on [[:Commons:File:Example.jpg|Commons]]"?
- multichill (talk) 08:08, 1 March 2010 (UTC)[reply]
- Caveat to the first is that the database contains the correct hash, which has been known to break. Q T C 08:31, 1 March 2010 (UTC)[reply]
- First is just a fallback, to ensure that images are not skipped or deleted unless they actually are the same image. Second was something that did not occur to me, I have completed this accordingly. (X! · talk) · @664 · 14:56, 1 March 2010 (UTC)[reply]
- Caveat to the first is that the database contains the correct hash, which has been known to break. Q T C 08:31, 1 March 2010 (UTC)[reply]
- Question - How would this bot check to see if 2nd, 3rd, and 4th main/outer bullet points of the F8 criteria are true?--Rockfang (talk) 23:23, 2 March 2010 (UTC)[reply]
- I took care of that, see here. multichill (talk) 19:11, 3 March 2010 (UTC)[reply]
- Thanks for the link. That works for me. One further question though. What about any potential images that might have {{NoCommons}} or {{KeepLocal}}?--Rockfang (talk) 19:22, 3 March 2010 (UTC)[reply]
- The uploader likes this transfer, so I think the potential is zero.
- Upload is done by the way, so it would be nice if the bot could be fired up. multichill (talk) 19:26, 3 March 2010 (UTC)[reply]
- Sounds fine to me.--Rockfang (talk) 19:40, 3 March 2010 (UTC)[reply]
- Thanks for the link. That works for me. One further question though. What about any potential images that might have {{NoCommons}} or {{KeepLocal}}?--Rockfang (talk) 19:22, 3 March 2010 (UTC)[reply]
- I took care of that, see here. multichill (talk) 19:11, 3 March 2010 (UTC)[reply]
- Images transfered to Commons look good so I support a bot deletion. Let admins check what needs to be checked and let a bot do this job here. --MGA73 (talk) 20:03, 3 March 2010 (UTC)[reply]
{{BotTrial}} — The Earwig (talk) 02:08, 4 March 2010 (UTC)[reply]
- Done 30 on main account. (X! · talk) · @139 · 02:19, 4 March 2010 (UTC)[reply]
- Looks good to me. Josh Parris 08:19, 4 March 2010 (UTC)[reply]
- Looks good, Trial complete. multichill (talk) 12:22, 4 March 2010 (UTC)[reply]
Approved. the trial has shown this helpful and harmless. Josh Parris 13:13, 4 March 2010 (UTC)[reply]
- The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA.