Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4f31b1a792 | |||
| 3fbfd4ccd7 | |||
| 50b0e142ec | |||
| 14db996a43 | |||
| 110589cb5b | |||
| 5c277495a3 | |||
| a466ab4e74 | |||
| 860a285ab0 | |||
| 2c105336b0 | |||
| ea85ca731f | |||
| 6e119ea98f | |||
| 67aaf3cbbe | |||
| fa13e2a5cf | |||
| 562e689418 |
@@ -18,6 +18,12 @@ Those can be installed using pip and the _requirements.txt_ file provided with t
|
||||
|
||||
Versions
|
||||
--------
|
||||
* v1.1.1
|
||||
- Check if moved page exists
|
||||
|
||||
* v1.1
|
||||
- Improved page filter
|
||||
|
||||
* v1.0
|
||||
- first stable release
|
||||
- less debug output
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#
|
||||
# redfam.py
|
||||
#
|
||||
# Copyright 2017 Jonathan Golder <jonathan@golderweb.de>
|
||||
# Copyright 2018 Jonathan Golder <jonathan@golderweb.de>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -594,8 +594,26 @@ class RedFamWorker( RedFam ):
|
||||
except Break:
|
||||
break
|
||||
|
||||
# Follow moved pages
|
||||
if self.article_has_status( "redirect", title=article ):
|
||||
try:
|
||||
page = page.moved_target()
|
||||
|
||||
# Short circuit if movement destination does not exists
|
||||
if not page.exists():
|
||||
continue
|
||||
|
||||
except pywikibot.exceptions.NoMoveTarget:
|
||||
pass
|
||||
|
||||
# Exclude Users & User Talkpage
|
||||
if page.namespace() == 2 or page.namespace() == 3:
|
||||
self.article_add_status( "user", title=article )
|
||||
continue
|
||||
|
||||
# Toggle talkpage
|
||||
if talkpages:
|
||||
if talkpages and not page.isTalkPage() or\
|
||||
not talkpages and page.isTalkPage():
|
||||
page = page.toggleTalkPage()
|
||||
|
||||
# Add reference to redfam to pages
|
||||
|
||||
Reference in New Issue
Block a user