aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/ooyala.py
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2015-12-04 16:18:02 +0100
committerremitamine <remitamine@gmail.com>2015-12-04 16:18:02 +0100
commit53e06b25070580b8b0dab7dd54ddff82f3bd2583 (patch)
treeadbda5cd892cab8ffb77dc01043a3626b4f578aa /youtube_dl/extractor/ooyala.py
parentb80d4bebf307a18ea0e4991503f91ef601cb2091 (diff)
downloadyoutube-dl-53e06b25070580b8b0dab7dd54ddff82f3bd2583.tar.xz
[ooyala] fix duration scale
Diffstat (limited to 'youtube_dl/extractor/ooyala.py')
-rw-r--r--youtube_dl/extractor/ooyala.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/youtube_dl/extractor/ooyala.py b/youtube_dl/extractor/ooyala.py
index 3b692e903..35067e271 100644
--- a/youtube_dl/extractor/ooyala.py
+++ b/youtube_dl/extractor/ooyala.py
@@ -24,7 +24,7 @@ class OoyalaBaseIE(InfoExtractor):
'title': metadata['title'],
'description': metadata.get('description'),
'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 = []
@@ -78,7 +78,7 @@ class OoyalaIE(OoyalaBaseIE):
'ext': 'mp4',
'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.',
- 'duration': 853386,
+ 'duration': 853.386,
},
}, {
# Only available for ipad
@@ -87,7 +87,7 @@ class OoyalaIE(OoyalaBaseIE):
'id': 'x1b3lqZDq9y_7kMyC2Op5qo-p077tXD0',
'ext': 'mp4',
'title': 'Simulation Overview - Levels of Simulation',
- 'duration': 194948,
+ 'duration': 194.948,
},
},
{
@@ -99,7 +99,7 @@ class OoyalaIE(OoyalaBaseIE):
'id': 'FiOG81ZTrvckcchQxmalf4aQj590qTEx',
'ext': 'mp4',
'title': 'Divide Tool Path.mp4',
- 'duration': 204405,
+ 'duration': 204.405,
}
}
]