If the file is already downloaded include the size in the progress hook

pull/8/head
Jaime Marquínez Ferrándiz 2013-09-22 23:39:30 +02:00
rodzic 4ae720042c
commit dd5d2eb03c
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -398,6 +398,7 @@ class FileDownloader(object):
self._hook_progress({
'filename': filename,
'status': 'finished',
'total_bytes': os.path.getsize(encodeFilename(filename)),
})
return True