def hash_thesubdb(video_path):
 readsize = (64 * 1024)
 if (os.path.getsize(video_path) < readsize):
  return
 with open(video_path, 'rb') as f:
  data = f.read(readsize)
  f.seek((- readsize), os.SEEK_END)
  data += f.read(readsize)
 return hashlib.md5(data).hexdigest()

def hash_thesubdb ( video_path ) : readsize = ( 64 * 1024 ) if ( os . path . getsize ( video_path ) < readsize ) : return with open ( video_path , 'rb' ) as f : data = f . read ( readsize ) f . seek ( ( - readsize ) , os . SEEK_END ) data += f . read ( readsize ) return hashlib . md5 ( data ) . hexdigest ( )
compute a hash using thesubdbs algorithm .