mirror of
				https://github.com/ytdl-org/youtube-dl.git
				synced 2025-10-29 09:26:20 -07:00 
			
		
		
		
	[ooyala] fix duration scale
This commit is contained in:
		| @@ -17,7 +17,7 @@ class BYUtvIE(InfoExtractor): | |||||||
|             'description': 'md5:e07269172baff037f8e8bf9956bc9747', |             'description': 'md5:e07269172baff037f8e8bf9956bc9747', | ||||||
|             'title': 'Season 5 Episode 5', |             'title': 'Season 5 Episode 5', | ||||||
|             'thumbnail': 're:^https?://.*\.jpg$', |             'thumbnail': 're:^https?://.*\.jpg$', | ||||||
|             'duration': 1486486, |             'duration': 1486.486, | ||||||
|         }, |         }, | ||||||
|         'params': { |         'params': { | ||||||
|             'skip_download': True, |             'skip_download': True, | ||||||
|   | |||||||
| @@ -339,7 +339,7 @@ class GenericIE(InfoExtractor): | |||||||
|                 'id': 'BwY2RxaTrTkslxOfcan0UCf0YqyvWysJ', |                 'id': 'BwY2RxaTrTkslxOfcan0UCf0YqyvWysJ', | ||||||
|                 'ext': 'mp4', |                 'ext': 'mp4', | ||||||
|                 'title': '2cc213299525360.mov',  # that's what we get |                 'title': '2cc213299525360.mov',  # that's what we get | ||||||
|                 'duration': 238231, |                 'duration': 238.231, | ||||||
|             }, |             }, | ||||||
|             'add_ie': ['Ooyala'], |             'add_ie': ['Ooyala'], | ||||||
|         }, |         }, | ||||||
| @@ -351,7 +351,7 @@ class GenericIE(InfoExtractor): | |||||||
|                 'ext': 'mp4', |                 'ext': 'mp4', | ||||||
|                 'title': '"Steve Jobs: Man in the Machine" trailer', |                 'title': '"Steve Jobs: Man in the Machine" trailer', | ||||||
|                 'description': 'The first trailer for the Alex Gibney documentary "Steve Jobs: Man in the Machine."', |                 'description': 'The first trailer for the Alex Gibney documentary "Steve Jobs: Man in the Machine."', | ||||||
|                 'duration': 135427, |                 'duration': 135.427, | ||||||
|             }, |             }, | ||||||
|             'params': { |             'params': { | ||||||
|                 'skip_download': True, |                 'skip_download': True, | ||||||
| @@ -964,7 +964,7 @@ class GenericIE(InfoExtractor): | |||||||
|                 'ext': 'mp4', |                 'ext': 'mp4', | ||||||
|                 'description': 'VIDEO: INDEX/MATCH versus VLOOKUP.', |                 'description': 'VIDEO: INDEX/MATCH versus VLOOKUP.', | ||||||
|                 'title': 'This is what separates the Excel masters from the wannabes', |                 'title': 'This is what separates the Excel masters from the wannabes', | ||||||
|                 'duration': 191933, |                 'duration': 191.933, | ||||||
|             }, |             }, | ||||||
|             'params': { |             'params': { | ||||||
|                 # m3u8 downloads |                 # m3u8 downloads | ||||||
|   | |||||||
| @@ -19,7 +19,7 @@ class GrouponIE(InfoExtractor): | |||||||
|                 'ext': 'mp4', |                 'ext': 'mp4', | ||||||
|                 'title': 'Bikram Yoga Huntington Beach | Orange County', |                 'title': 'Bikram Yoga Huntington Beach | Orange County', | ||||||
|                 'description': 'md5:d41d8cd98f00b204e9800998ecf8427e', |                 'description': 'md5:d41d8cd98f00b204e9800998ecf8427e', | ||||||
|                 'duration': 44961, |                 'duration': 44.961, | ||||||
|             }, |             }, | ||||||
|         }], |         }], | ||||||
|         'params': { |         'params': { | ||||||
|   | |||||||
| @@ -16,7 +16,7 @@ class HowcastIE(InfoExtractor): | |||||||
|             'description': 'md5:dbe792e5f6f1489027027bf2eba188a3', |             'description': 'md5:dbe792e5f6f1489027027bf2eba188a3', | ||||||
|             'timestamp': 1276081287, |             'timestamp': 1276081287, | ||||||
|             'upload_date': '20100609', |             'upload_date': '20100609', | ||||||
|             'duration': 56823, |             'duration': 56.823, | ||||||
|         }, |         }, | ||||||
|         'params': { |         'params': { | ||||||
|             # m3u8 download |             # m3u8 download | ||||||
|   | |||||||
| @@ -24,7 +24,7 @@ class OoyalaBaseIE(InfoExtractor): | |||||||
|             'title': metadata['title'], |             'title': metadata['title'], | ||||||
|             'description': metadata.get('description'), |             'description': metadata.get('description'), | ||||||
|             'thumbnail': metadata.get('thumbnail_image') or metadata.get('promo_image'), |             'thumbnail': metadata.get('thumbnail_image') or metadata.get('promo_image'), | ||||||
|             'duration': int_or_none(metadata.get('duration')), |             'duration': float_or_none(metadata.get('duration'), 1000), | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         formats = [] |         formats = [] | ||||||
| @@ -78,7 +78,7 @@ class OoyalaIE(OoyalaBaseIE): | |||||||
|                 'ext': 'mp4', |                 'ext': 'mp4', | ||||||
|                 'title': 'Explaining Data Recovery from Hard Drives and SSDs', |                 'title': 'Explaining Data Recovery from Hard Drives and SSDs', | ||||||
|                 'description': 'How badly damaged does a drive have to be to defeat Russell and his crew? Apparently, smashed to bits.', |                 'description': 'How badly damaged does a drive have to be to defeat Russell and his crew? Apparently, smashed to bits.', | ||||||
|                 'duration': 853386, |                 'duration': 853.386, | ||||||
|             }, |             }, | ||||||
|         }, { |         }, { | ||||||
|             # Only available for ipad |             # Only available for ipad | ||||||
| @@ -87,7 +87,7 @@ class OoyalaIE(OoyalaBaseIE): | |||||||
|                 'id': 'x1b3lqZDq9y_7kMyC2Op5qo-p077tXD0', |                 'id': 'x1b3lqZDq9y_7kMyC2Op5qo-p077tXD0', | ||||||
|                 'ext': 'mp4', |                 'ext': 'mp4', | ||||||
|                 'title': 'Simulation Overview - Levels of Simulation', |                 'title': 'Simulation Overview - Levels of Simulation', | ||||||
|                 'duration': 194948, |                 'duration': 194.948, | ||||||
|             }, |             }, | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
| @@ -99,7 +99,7 @@ class OoyalaIE(OoyalaBaseIE): | |||||||
|                 'id': 'FiOG81ZTrvckcchQxmalf4aQj590qTEx', |                 'id': 'FiOG81ZTrvckcchQxmalf4aQj590qTEx', | ||||||
|                 'ext': 'mp4', |                 'ext': 'mp4', | ||||||
|                 'title': 'Divide Tool Path.mp4', |                 'title': 'Divide Tool Path.mp4', | ||||||
|                 'duration': 204405, |                 'duration': 204.405, | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|     ] |     ] | ||||||
|   | |||||||
| @@ -16,7 +16,7 @@ class TeachingChannelIE(InfoExtractor): | |||||||
|             'ext': 'mp4', |             'ext': 'mp4', | ||||||
|             'title': 'A History of Teaming', |             'title': 'A History of Teaming', | ||||||
|             'description': 'md5:2a9033db8da81f2edffa4c99888140b3', |             'description': 'md5:2a9033db8da81f2edffa4c99888140b3', | ||||||
|             'duration': 422255, |             'duration': 422.255, | ||||||
|         }, |         }, | ||||||
|         'params': { |         'params': { | ||||||
|             # m3u8 download |             # m3u8 download | ||||||
|   | |||||||
| @@ -15,7 +15,7 @@ class ViceIE(InfoExtractor): | |||||||
|                 'id': '43cW1mYzpia9IlestBjVpd23Yu3afAfp', |                 'id': '43cW1mYzpia9IlestBjVpd23Yu3afAfp', | ||||||
|                 'ext': 'mp4', |                 'ext': 'mp4', | ||||||
|                 'title': 'VICE_COWBOYCAPITALISTS_PART01_v1_VICE_WM_1080p.mov', |                 'title': 'VICE_COWBOYCAPITALISTS_PART01_v1_VICE_WM_1080p.mov', | ||||||
|                 'duration': 725983, |                 'duration': 725.983, | ||||||
|             }, |             }, | ||||||
|             'params': { |             'params': { | ||||||
|                 # Requires ffmpeg (m3u8 manifest) |                 # Requires ffmpeg (m3u8 manifest) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user