Fixes Issue #2 #4

Merged
dafo5502 merged 59 commits from developer into master 2021-10-25 14:41:37 +02:00
Showing only changes of commit abde9982b2 - Show all commits

View File

@ -67,9 +67,9 @@ class Mediasite:
with open(demux_file, 'w') as f:
for slide in data['slides']:
myslide = { 'url': os.path.join(slides_path, self._download(slides_path, slide['url'], session)),
'duration': slide['duration'] }
'duration': slide['duration'] / 1000}
f.write('file \'{}\'\n'.format(myslide['url']))
f.write('duration {}\n'.format(slide['duration']))
f.write('duration {}\n'.format(slide['duration'] / 1000))
mypackage['slides'].append(myslide)
# to accomodate for an ffmpeg quirk that needs the last slide twice