diff options
author | codesparkle <adam.thalhammer@outlook.com> | 2015-01-30 20:10:12 +1100 |
---|---|---|
committer | codesparkle <adam.thalhammer@outlook.com> | 2015-01-30 20:10:12 +1100 |
commit | 1d2daaea6372f5119be8fc21637a275fe93a52ff (patch) | |
tree | f96f71bae09f77058f8f895b1097a6834f124ab5 /youtube_dl/extractor | |
parent | 52585fd6dcd5020f2800d133588d7232419dddc0 (diff) |
Simplify list creation
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/cinchcast.py | 7 |
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: |