Revision: 6004
Author: filnik
Date: 2008-10-20 14:02:43 +0000 (Mon, 20 Oct 2008)
Log Message:
-----------
little fix
Modified Paths:
--------------
trunk/pywikipedia/checkimages.py
Modified: trunk/pywikipedia/checkimages.py
===================================================================
--- trunk/pywikipedia/checkimages.py 2008-10-20 13:44:30 UTC (rev 6003)
+++ trunk/pywikipedia/checkimages.py 2008-10-20 14:02:43 UTC (rev 6004)
@@ -113,7 +113,7 @@
# '{{nld' --> '\{\{(?:template:|)no[ _]license ?(?:\||\n|\}) ?' (case
insensitive).
# If there's not a {{ it will work as usual (if x in Text)
txt_find = {
- 'commons':[u'{{no license', u'{{nld', u'{{no
permission since'],
+ 'commons':[u'{{no license', u'{{no license/en',
u'{{nld', u'{{no permission since'],
'de':[u'{{DÜP', u'{{Dateiüberprüfung'],
'en':[u'{{nld', u'{{no license'],
'hu':[u'{{nincsforrás',u'{{nincslicenc'],
@@ -1129,8 +1129,8 @@
exit_cicle = True
break
if not seems_ok:
- rep_text_license_fake = u"\n*[[:Image:%s]] seems to have a
''fake license'', license detected: {{tl|%s}}." % (self.imageName,
license_found)
- regexFakeLicense = r"\* ?\[\[:Image:%s\]\] seems to have a
''fake license'', license detected: \{\{tl\|%s\}\}\.$" %
(self.imageName, license_found)
+ rep_text_license_fake = u"\n*[[:Image:%s]] seems to have a
''fake license'', license detected: <nowiki>%s</nowiki>"
% (self.imageName, license_found)
+ regexFakeLicense = r"\* ?\[\[:Image:%s\]\] seems to have a
''fake license'', license detected: <nowiki>%s</nowiki>$"
% (self.imageName, license_found)
printWithTimeZone(u"%s seems to have a fake license: %s,
reporting..." % (self.imageName, license_found))
self.report_image(self.imageName, rep_text = rep_text_license_fake,
addings = False, regex = regexFakeLicense)
Show replies by date