Commons:Bots/Requests/TheSandBot

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

TheSandBot (talk · contribs)

Operator: TheSandDoctor (talk · contributions · Number of edits · recent activity · block log · User rights log · uploads · Global account information)

Bot's tasks for which permission is being sought: Corrects erroneous dates, by extracting the right date from EXIF. It would get the files to check from Category:Uploaded with Mobile/Android and is per bot request.

Automatic or manually assisted: automatic

Edit type (e.g. Continuous, daily, one time run): periodic, as needed

Maximum edit rate (e.g. edits per minute): The bot would only edit once it found a mismatch between "EXIF DateTimeOriginal" and the value within Template:According to EXIF data. The rate at which it is allowed to save edits could be controlled to any number as desired.

Bot flag requested: (Y/N): Y

Programming language(s): Python

TheSandDoctor (talk) 06:43, 15 April 2019 (UTC)

Discussion

Please make a few test edits. --Krd 06:56, 15 April 2019 (UTC)

@Krd: with the bot account I assume? How many do you want exactly/ballpark? --TheSandDoctor (talk) 06:58, 15 April 2019 (UTC)
Of course. I'd say ten is a good start. --Krd 07:06, 15 April 2019 (UTC)

Thanks for implementing this much-needed bot! I will analyze your test run as soon as it is available. Note: The bug that resulted in erroneous dates has been fixed a few months ago, so a single bot run should probably be enough (I hope not too many people keep using old versions of the program). Syced (talk) 08:48, 15 April 2019 (UTC)

@Krd, Syced: The bot has completed the requested 10 test edits without any issue. If I recall correctly, I confirmed the second, eighth, and tenth edits (only ends of run double check really possible as it overwrites the local file every time). (1, 2, 3, 4, 5, 6, 7, 8, 9, 10. --TheSandDoctor (talk) 13:45, 16 April 2019 (UTC)
Looks OK for me, but please use better edit summaries with link to task. --EugeneZelenko (talk) 13:54, 16 April 2019 (UTC)
@EugeneZelenko: What would you prefer for the summaries? They do currently link to this page. --TheSandDoctor (talk) 14:43, 16 April 2019 (UTC)
please mention that this is task #1 looks like placeholder. --EugeneZelenko (talk) 14:46, 16 April 2019 (UTC)
@EugeneZelenko: I can remove it if you like, that is just following the format that is used by all of my bots on enwiki (ie TSB) to differentiate between various tasks. It is most useful when the bot has more than one task, so at this point removing it would be something I would be happy to do. I have just found it helpful with multiple as sometimes editors reaching out can be extremely vague in what task they are referring to/don't link diffs. --TheSandDoctor (talk) 15:08, 16 April 2019 (UTC); ce 17:13, 16 April 2019 (UTC)
Indeed, specific task should be mentioned. This could be done in form of direct link or just Task #1 with general link. --EugeneZelenko (talk) 14:10, 17 April 2019 (UTC)
@EugeneZelenko: How does this sound then? "Task 1: Fixed inaccurate use of Template:According to Exif data using TheSandBot. Questions? msg TSD!"? --TheSandDoctor (talk) 14:38, 17 April 2019 (UTC)
Bot name in edit summary is redundant since it presents in history anyway. --EugeneZelenko (talk) 14:43, 17 April 2019 (UTC)
@EugeneZelenko: Removed (now reads: "Task 1: Fixed inaccurate use of Template:According to Exif data. Questions? msg TSD!"). How does that sound? --TheSandDoctor (talk) 14:48, 17 April 2019 (UTC)
Looks OK for me. --EugeneZelenko (talk) 14:49, 17 April 2019 (UTC)
@EugeneZelenko, Krd: Summary updated in the code/on repo per this thread. --TheSandDoctor (talk) 15:03, 17 April 2019 (UTC)
  • Please make some more test edits. I think this can be approved if nothing else arises then. --Krd 07:45, 22 April 2019 (UTC)
@Krd: ✓ Done. No problems were encountered, every other edit was verified manually. 1, 2, 3, 4, 5, 6, 7, 8, 9, 10. --TheSandDoctor (talk) 02:38, 23 April 2019 (UTC)

Approved. --Krd 05:27, 23 April 2019 (UTC)