[youtube] Add filesystem signature cache
[youtube-dl] / youtube_dl / FileDownloader.py
index 7c5ac4bc2ecae6d3440266a98b2034ac5f56867a..1eb71a80e64d644f3d99a023ef259b89954ac93d 100644 (file)
@@ -39,6 +39,8 @@ class FileDownloader(object):
     test:              Download only first bytes to test the downloader.
     min_filesize:      Skip files smaller than this size
     max_filesize:      Skip files larger than this size
+    cachedir:          Location of the cache files in the filesystem.
+                       False to disable filesystem cache.
     """
 
     params = None
@@ -66,7 +68,7 @@ class FileDownloader(object):
     @staticmethod
     def format_seconds(seconds):
         (mins, secs) = divmod(seconds, 60)
-        (hours, eta_mins) = divmod(mins, 60)
+        (hours, mins) = divmod(mins, 60)
         if hours > 99:
             return '--:--:--'
         if hours == 0: