aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorcodesparkle <adam.thalhammer@outlook.com>2015-01-30 20:10:12 +1100
committercodesparkle <adam.thalhammer@outlook.com>2015-01-30 20:10:12 +1100
commit1d2daaea6372f5119be8fc21637a275fe93a52ff (patch)
treef96f71bae09f77058f8f895b1097a6834f124ab5 /youtube_dl/extractor
parent52585fd6dcd5020f2800d133588d7232419dddc0 (diff)
Simplify list creation
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/cinchcast.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/youtube_dl/extractor/cinchcast.py b/youtube_dl/extractor/cinchcast.py
index 0c9a24bef..e23c515d9 100644
--- a/youtube_dl/extractor/cinchcast.py
+++ b/youtube_dl/extractor/cinchcast.py
@@ -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: