Fixes Issue #2 #4
@ -64,7 +64,7 @@ class Mediasite:
|
||||
demux_file = os.path.join(slides_path, 'demux.txt')
|
||||
with open(demux_file, 'w') as f:
|
||||
for slide in data['slides']:
|
||||
myslide = { 'url': os.join.path(slides_path, self._download(slides_path, slide['url'], session)),
|
||||
myslide = { 'url': os.path.join(slides_path, self._download(slides_path, slide['url'], session)),
|
||||
'duration': slide['duration'] }
|
||||
f.write('file \'{}\'\n'.format(myslide['url']))
|
||||
f.write('duration {}\n'.format(slide['duration']))
|
||||
@ -73,7 +73,6 @@ class Mediasite:
|
||||
# to accomodate for an ffmpeg quirk that needs the last slide twice
|
||||
f.write('file \'{}\'\n'.format(mypackage['slides'][-1]['url']))
|
||||
mypackage['demux_file'] = demux_file
|
||||
|
||||
return mypackage
|
||||
|
||||
def _download(self, base, remotefile, session):
|
||||
|
Loading…
x
Reference in New Issue
Block a user