Revision: 6144
Author: filnik
Date: 2008-12-12 14:27:52 +0000 (Fri, 12 Dec 2008)
Log Message:
-----------
Image -> File
Modified Paths:
--------------
trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py 2008-12-12 14:27:42 UTC (rev 6143)
+++ trunk/pywikipedia/wikipedia.py 2008-12-12 14:27:52 UTC (rev 6144)
@@ -6020,7 +6020,7 @@
else:
return False
- def getImagesFromAnHash(self, hash_found = None):
+ def getFilesFromAnHash(self, hash_found = None):
""" Function that uses APIs to give the images that has the same
hash. Useful
to find duplicates or nowcommons.
@@ -6043,7 +6043,7 @@
allimages = data['query']['allimages']
duplicates = list()
for imagedata in allimages:
- image = imagedata[u'descriptionurl'].split('/wiki/%s' %
image_namespace)[1]
+ image = imagedata[u'name']
duplicates.append(image)
return duplicates
Show replies by date