Merge pull request #451 from yzqzss/patch-2

Quote `title` to get correct file description
pull/466/head
nemobis 12 months ago committed by GitHub
commit 8167987052
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1519,7 +1519,7 @@ def generateImageDump(config={}, other={}, images=[], start='', session=None):
title = u'Image:%s' % (filename)
try:
if config['xmlrevisions'] and config['api'] and config['api'].endswith("api.php"):
r = session.get(config['api'] + u"?action=query&export&exportnowrap&titles=%s" % title)
r = session.get(config['api'] + u"?action=query&export&exportnowrap&titles=%s" % urllib.parse.quote(title))
xmlfiledesc = r.text
else:
xmlfiledesc = getXMLFileDesc(

Loading…
Cancel
Save