http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9782
Revision: 9782 Author: platonides Date: 2011-11-28 22:16:59 +0000 (Mon, 28 Nov 2011) Log Message: ----------- Update list of allowed (non-warned) extensions. As we have ogg, also add .ogv and .oga Plus .tif, .tiff, and that updates it to the current list at WMF sites.
Modified Paths: -------------- trunk/pywikipedia/upload.py
Modified: trunk/pywikipedia/upload.py =================================================================== --- trunk/pywikipedia/upload.py 2011-11-28 19:14:13 UTC (rev 9781) +++ trunk/pywikipedia/upload.py 2011-11-28 22:16:59 UTC (rev 9782) @@ -201,7 +201,8 @@ # FIXME: these 2 belong somewhere else, presumably in family forbidden = '/' # to be extended allowed_formats = (u'gif', u'jpg', u'jpeg', u'mid', u'midi', - u'ogg', u'png', u'svg', u'xcf', u'djvu') + u'ogg', u'png', u'svg', u'xcf', u'djvu', + u'ogv', u'oga', u'tif', u'tiff') # ask until it's valid while not ok: ok = True