aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/InfoExtractors.py
diff options
context:
space:
mode:
authorFilippo Valsorda <filippo.valsorda@gmail.com>2012-12-26 20:39:33 +0100
committerFilippo Valsorda <filippo.valsorda@gmail.com>2012-12-26 20:39:33 +0100
commit99b0a1292b6ceccca576c8555e03bc13fb8e4bdd (patch)
treea81c59d493c803dcfe14cd6b51de52cfc6fd3f80 /youtube_dl/InfoExtractors.py
parentdc23886a77f282ed767146a5d70ac645a98a667b (diff)
add --no-post-overwrites to README.md; + minor style fixes
Diffstat (limited to 'youtube_dl/InfoExtractors.py')
-rwxr-xr-xyoutube_dl/InfoExtractors.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py
index 697c031c5..210348080 100755
--- a/youtube_dl/InfoExtractors.py
+++ b/youtube_dl/InfoExtractors.py
@@ -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