getsize fix in imdb.searchbuhash

This commit is contained in:
Ruud
2011-05-28 20:50:40 +02:00
parent 09fed4ca63
commit e0b3c27957
+1 -1
View File
@@ -550,5 +550,5 @@ def mediaGetInfo(hash, size):
def searchByHashingFile(filename):
"""Searches for the specified file using the OpenSubtitle hashing method
"""
return mediaGetInfo(opensubtitleHashFile(filename), os.path.size(filename))
return mediaGetInfo(opensubtitleHashFile(filename), os.path.getsize(filename))