[ooyala] fix duration scale
authorremitamine <remitamine@gmail.com>
Fri, 4 Dec 2015 15:18:02 +0000 (16:18 +0100)
committerremitamine <remitamine@gmail.com>
Fri, 4 Dec 2015 15:18:02 +0000 (16:18 +0100)
youtube_dl/extractor/byutv.py
youtube_dl/extractor/generic.py
youtube_dl/extractor/groupon.py
youtube_dl/extractor/howcast.py
youtube_dl/extractor/ooyala.py
youtube_dl/extractor/teachingchannel.py
youtube_dl/extractor/vice.py

index ce25816f001ead01bfa1c60789c643dfc34279ba..dda98059e9041c651de5a211fccb2c106b11bb75 100644 (file)
@@ -17,7 +17,7 @@ class BYUtvIE(InfoExtractor):
             'description': 'md5:e07269172baff037f8e8bf9956bc9747',
             'title': 'Season 5 Episode 5',
             'thumbnail': 're:^https?://.*\.jpg$',
-            'duration': 1486486,
+            'duration': 1486.486,
         },
         'params': {
             'skip_download': True,
index b60684f981644c6eb232a0b62ef5a775ae353000..e3bdff2d85bc164eded0ab7a67a643a43fbdf4ac 100644 (file)
@@ -339,7 +339,7 @@ class GenericIE(InfoExtractor):
                 'id': 'BwY2RxaTrTkslxOfcan0UCf0YqyvWysJ',
                 'ext': 'mp4',
                 'title': '2cc213299525360.mov',  # that's what we get
-                'duration': 238231,
+                'duration': 238.231,
             },
             'add_ie': ['Ooyala'],
         },
@@ -351,7 +351,7 @@ class GenericIE(InfoExtractor):
                 'ext': 'mp4',
                 'title': '"Steve Jobs: Man in the Machine" trailer',
                 'description': 'The first trailer for the Alex Gibney documentary "Steve Jobs: Man in the Machine."',
-                'duration': 135427,
+                'duration': 135.427,
             },
             'params': {
                 'skip_download': True,
@@ -964,7 +964,7 @@ class GenericIE(InfoExtractor):
                 'ext': 'mp4',
                 'description': 'VIDEO: INDEX/MATCH versus VLOOKUP.',
                 'title': 'This is what separates the Excel masters from the wannabes',
-                'duration': 191933,
+                'duration': 191.933,
             },
             'params': {
                 # m3u8 downloads
index 22ff7182f127e3ce228c81f56ad06aca905ce2e4..63c05b6a6f96dfa4437f15cd77524ab3d89e1018 100644 (file)
@@ -19,7 +19,7 @@ class GrouponIE(InfoExtractor):
                 'ext': 'mp4',
                 'title': 'Bikram Yoga Huntington Beach | Orange County',
                 'description': 'md5:d41d8cd98f00b204e9800998ecf8427e',
-                'duration': 44961,
+                'duration': 44.961,
             },
         }],
         'params': {
index 165b9f39e8c19bc19f185a9e82bcdba554a6f8ff..e8f51e545bfd2b89a251e1a4fbbeefe80aa371f9 100644 (file)
@@ -16,7 +16,7 @@ class HowcastIE(InfoExtractor):
             'description': 'md5:dbe792e5f6f1489027027bf2eba188a3',
             'timestamp': 1276081287,
             'upload_date': '20100609',
-            'duration': 56823,
+            'duration': 56.823,
         },
         'params': {
             # m3u8 download
index 3b692e9036a4faa522c8da799aec3abe6ea1bf1c..35067e2712ad89fe107b0f87a94ce29724f9614c 100644 (file)
@@ -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,
             }
         }
     ]
index 36a6fc679c64aa6d240c7fceb2a541387a40c140..e0477382ceabea0769bd0575ceb1f350ce8c0911 100644 (file)
@@ -16,7 +16,7 @@ class TeachingChannelIE(InfoExtractor):
             'ext': 'mp4',
             'title': 'A History of Teaming',
             'description': 'md5:2a9033db8da81f2edffa4c99888140b3',
-            'duration': 422255,
+            'duration': 422.255,
         },
         'params': {
             # m3u8 download
index 7df87c31ce2e707fc0d82c2525a56e49cb179756..3db6286e48c1402ff210d8f4cc666dac1a918a86 100644 (file)
@@ -15,7 +15,7 @@ class ViceIE(InfoExtractor):
                 'id': '43cW1mYzpia9IlestBjVpd23Yu3afAfp',
                 'ext': 'mp4',
                 'title': 'VICE_COWBOYCAPITALISTS_PART01_v1_VICE_WM_1080p.mov',
-                'duration': 725983,
+                'duration': 725.983,
             },
             'params': {
                 # Requires ffmpeg (m3u8 manifest)