mirror of
				https://code.hackerspace.pl/q3k/youtube-dl
				synced 2025-03-16 11:43:02 +00:00 
			
		
		
		
	Simplify list creation
This commit is contained in:
		
							parent
							
								
									52585fd6dc
								
							
						
					
					
						commit
						1d2daaea63
					
				| @ -28,12 +28,7 @@ class CinchcastIE(InfoExtractor): | |||||||
|             item, './{http://developer.longtailvideo.com/trac/}date') |             item, './{http://developer.longtailvideo.com/trac/}date') | ||||||
|         upload_date = unified_strdate(date_str, day_first=False) |         upload_date = unified_strdate(date_str, day_first=False) | ||||||
|         # duration is present but wrong |         # duration is present but wrong | ||||||
|         formats = [] |         formats = [{'format_id': 'main', 'url': item.find('./{http://search.yahoo.com/mrss/}content').attrib['url']}] | ||||||
|         formats.append({ |  | ||||||
|             'format_id': 'main', |  | ||||||
|             'url': item.find( |  | ||||||
|                 './{http://search.yahoo.com/mrss/}content').attrib['url'], |  | ||||||
|         }) |  | ||||||
|         backup_url = xpath_text( |         backup_url = xpath_text( | ||||||
|             item, './{http://developer.longtailvideo.com/trac/}backupContent') |             item, './{http://developer.longtailvideo.com/trac/}backupContent') | ||||||
|         if backup_url: |         if backup_url: | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 codesparkle
						codesparkle