]> git.bitcoin.ninja Git - youtube-dl/commitdiff
Simplify list creation
authorcodesparkle <adam.thalhammer@outlook.com>
Fri, 30 Jan 2015 09:10:12 +0000 (20:10 +1100)
committercodesparkle <adam.thalhammer@outlook.com>
Fri, 30 Jan 2015 09:10:12 +0000 (20:10 +1100)
youtube_dl/extractor/cinchcast.py

index 0c9a24befddcc1ce4b69f35b2d0b245723a60484..e23c515d9cfc5ac262d3ae075d1168b54803e27d 100644 (file)
@@ -28,12 +28,7 @@ class CinchcastIE(InfoExtractor):
             item, './{http://developer.longtailvideo.com/trac/}date')
         upload_date = unified_strdate(date_str, day_first=False)
         # duration is present but wrong
-        formats = []
-        formats.append({
-            'format_id': 'main',
-            'url': item.find(
-                './{http://search.yahoo.com/mrss/}content').attrib['url'],
-        })
+        formats = [{'format_id': 'main', 'url': item.find('./{http://search.yahoo.com/mrss/}content').attrib['url']}]
         backup_url = xpath_text(
             item, './{http://developer.longtailvideo.com/trac/}backupContent')
         if backup_url: