]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
add --no-post-overwrites to README.md; + minor style fixes
authorFilippo Valsorda <filippo.valsorda@gmail.com>
Wed, 26 Dec 2012 19:39:33 +0000 (20:39 +0100)
committerFilippo Valsorda <filippo.valsorda@gmail.com>
Wed, 26 Dec 2012 19:39:33 +0000 (20:39 +0100)
README.md
youtube_dl/InfoExtractors.py

index 9dffd99ab124986260b3ecee912f8b3632f6ac26..407b279704331ab291f4fe8698d9aec3d1d1c7f8 100644 (file)
--- a/README.md
+++ b/README.md
@@ -112,6 +112,8 @@ which means you can modify it, redistribute it or use it however you like.
                              specific bitrate like 128K (default 5)
     -k, --keep-video         keeps the video file on disk after the post-
                              processing; the video is erased by default
+    --no-post-overwrites     do not overwrite post-processed files; the post-
+                             processed files are overwritten by default
 
 # CONFIGURATION
 
index 697c031c5119176874558aef23eadb163e45fcdd..2103480802c5bb0e6d9d0cfaba0f97256b3c812f 100755 (executable)
@@ -2127,7 +2127,7 @@ class FacebookIE(InfoExtractor):
         video_description = video_info.get('description', 'No description available.')
 
         url_map = video_info['video_urls']
-        if len(list(url_map.keys())) > 0:
+        if url_map:
             # Decide which formats to download
             req_format = self._downloader.params.get('format', None)
             format_limit = self._downloader.params.get('format_limit', None)
@@ -2987,7 +2987,7 @@ class MixcloudIE(InfoExtractor):
                 if file_url is not None:
                     break # got it!
         else:
-            if req_format not in list(formats.keys()):
+            if req_format not in formats:
                 self._downloader.trouble(u'ERROR: format is not available')
                 return