|
|
|
@ -1380,7 +1380,7 @@ def getImageNamesAPI(config={}, session=None):
|
|
|
|
|
url = curateImageURL(config=config, url=url)
|
|
|
|
|
# encoding to ascii is needed to work around this horrible bug:
|
|
|
|
|
# http://bugs.python.org/issue8136
|
|
|
|
|
if 'api' in config and ('.wikia.' in config['api'] or '.fandom.com' in config['api']):
|
|
|
|
|
if 'api' in config and ('.wikia.' in config['api'] or '.fandom.com' in config['api'] or '.gamepedia.com' in config['api']):
|
|
|
|
|
#to avoid latest?cb=20120816112532 in filenames
|
|
|
|
|
filename = unicode(urllib.unquote((re.sub('_', ' ', url.split('/')[-3])).encode('ascii', 'ignore')), 'utf-8')
|
|
|
|
|
else:
|
|
|
|
|