Aram created this task.
Aram added projects: Pywikibot, Pywikibot-Scripts.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  In Pywikibot, I used the `delinker.py` script. It works really well; I like 
how it functions, especially the way it generates the edit summary and its 
speed. However, I encounter errors from time to time, and it takes a long time 
if we run it on both Commons and a local wiki.
  
  Why don't we save time and memory? I would like to request a feature that 
utilizes the Category:Pages with missing files 
<https://en.wikipedia.org/wiki/Category:Pages_with_missing_files>. This is a 
built-in MediaWiki category that is available on all wikis and automatically 
contains pages with broken files.
  
  **Steps to implement:**
  
  1. Add an option to find the category on the local wiki using Q4989282 
<https://www.wikidata.org/wiki/Special:EntityPage/Q4989282>.
  2. Only check pages in the main namespace.
  3. Use the API to get a list of broken/missing files on the article page.
  4. Check the deletion log of each broken file on both Commons and the local 
wiki:
    - If the file was deleted and doesn’t exist, delink it.
    - If the file doesn’t have a deletion log and doesn’t exist, ignore it 
because it may be uploaded on another wiki (not Wikimedia Commons) but not 
available on the local wiki. For now, ignoring these files is the better option.
  
  Well, that is it! This way we really save time, memory and all. Thanks!

TASK DETAIL
  https://phabricator.wikimedia.org/T372206

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Aram
Cc: Aklapper, pywikibot-bugs-list, Aram, mevo, PotsdamLamb, Jyoo1011, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, 
Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, 
Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to