Commons:Bots/Requests/YiFeiBot (23)
Operator: Zhuyifei1999 (talk · contributions · Statistics · Recent activity · block log · User rights log · uploads · Global account information)
Bot's tasks for which permission is being sought: Remove double file extensions (ignore cases; jpg and jpeg are same; tif and tiff are same; remove the second last extension). List depends on User:Dispenser/Double_extension, Bot will use the same method of dumping to User:CommonsDelinker/commands/filemovers as Commons:Bots/Requests/YiFeiBot_(19)
Automatic or manually assisted: Automatic unsupervised
Edit type (e.g. Continuous, daily, one time run): monthly
Maximum edit rate (e.g. edits per minute): 6 moves per minute
Bot flag requested: (Y/N): N
Programming language(s): python: pywikibot
Zhuyifei1999 (talk) 09:19, 2 February 2015 (UTC)
Discussion
- Test run at [1] --Zhuyifei1999 (talk) 09:24, 2 February 2015 (UTC)
- I prefer to use lowercase file extensions in new name and probably keep shorter one (.jpg instead of .jpeg). --EugeneZelenko (talk) 15:15, 2 February 2015 (UTC)
- I don't think it's good to change .jpeg.JPG => .jpg --Zhuyifei1999 (talk) 06:18, 3 February 2015 (UTC)
- Could you please elaborate of usefulness and readability of file extensions capitalization? --EugeneZelenko (talk) 15:11, 3 February 2015 (UTC)
- Hmm. I'm not saying that extension capitalization is useful or not. The uploader might have some reasons for uploading upper case extensions. And I don't find any cons for using upper case. If the filename breaks a pattern in a group of files, it can be further renamed manually. --Zhuyifei1999 (talk) 11:27, 4 February 2015 (UTC)
- It may be just camera which use uppercase for file names/extensions. My works that way. --EugeneZelenko (talk) 15:06, 4 February 2015 (UTC)
- Hmm. I'm not saying that extension capitalization is useful or not. The uploader might have some reasons for uploading upper case extensions. And I don't find any cons for using upper case. If the filename breaks a pattern in a group of files, it can be further renamed manually. --Zhuyifei1999 (talk) 11:27, 4 February 2015 (UTC)
- Could you please elaborate of usefulness and readability of file extensions capitalization? --EugeneZelenko (talk) 15:11, 3 February 2015 (UTC)
- I don't think it's good to change .jpeg.JPG => .jpg --Zhuyifei1999 (talk) 06:18, 3 February 2015 (UTC)
- By the word, does bot check actual file format for cases like .png.jpg? --EugeneZelenko (talk) 15:16, 2 February 2015 (UTC)
- .png.jpg are skipped (they are not same) --Zhuyifei1999 (talk) 06:18, 3 February 2015 (UTC)
- I prefer to use lowercase file extensions in new name and probably keep shorter one (.jpg instead of .jpeg). --EugeneZelenko (talk) 15:15, 2 February 2015 (UTC)
- Would the bot move the following files, and if so, where would they go:
- --99of9 (talk) 05:09, 5 February 2015 (UTC)
- Both skipped (ext are not same) --Zhuyifei1999 (talk) 06:10, 5 February 2015 (UTC)
- Ok, so it's quite conservative. I don't anticipate any trouble. Support --99of9 (talk) 06:43, 5 February 2015 (UTC)
- Both skipped (ext are not same) --Zhuyifei1999 (talk) 06:10, 5 February 2015 (UTC)
- Support I also think that jpg is better than JPG or jpeg. Actually, when doing rename manually, the extension are automatically switched to lower case. So you can also include (JPG|jpg|jpeg) -> jpg. Regards, Yann (talk) 16:49, 5 February 2015 (UTC)
- I think the manual move is because of
this.mimeFileExtension
part in MediaWiki:Gadget-AjaxQuickDelete.js. I'll implement that tomorrow. --Zhuyifei1999 (talk) 07:50, 6 February 2015 (UTC) - Done --Zhuyifei1999 (talk) 10:37, 8 February 2015 (UTC)
- Could you please make another test run with various extensions combinations? --EugeneZelenko (talk) 15:14, 10 February 2015 (UTC)
- User:Dispenser/Double_extension is done. Only File:Богоявленский храм.jpeg.jpg => File:Богоявленский храм.jpg and File:Здвиженська церква в Тернополі F.27.12.07r.039.jpg.JPG => File:Здвиженська церква в Тернополі F.27.12.07r.039.jpg are skipped as their target already exist --Zhuyifei1999 (talk) 08:00, 11 February 2015 (UTC)
- Could you please make another test run with various extensions combinations? --EugeneZelenko (talk) 15:14, 10 February 2015 (UTC)
- I think the manual move is because of
If there are no objections, I think task should be approved. --EugeneZelenko (talk) 15:02, 11 February 2015 (UTC)