Fixes Issue #2 #4
@ -58,10 +58,10 @@ class Mediasite:
|
|||||||
mypackage['sources'].append(mysource)
|
mypackage['sources'].append(mysource)
|
||||||
|
|
||||||
if 'slides' in data:
|
if 'slides' in data:
|
||||||
slides_path = os.join.path(base, 'slides')
|
slides_path = os.path.join(base, 'slides')
|
||||||
os.mkdir(slides_path)
|
os.mkdir(slides_path)
|
||||||
mypackage['slides'] = []
|
mypackage['slides'] = []
|
||||||
demux_file = os.join.path(slides_path, 'demux.txt')
|
demux_file = os.path.join(slides_path, 'demux.txt')
|
||||||
with open(demux_file, 'w') as f:
|
with open(demux_file, 'w') as f:
|
||||||
for slide in data['slides']:
|
for slide in data['slides']:
|
||||||
myslide = { 'url': os.join.path(slides_path, self._download(slides_path, slide['url'], session)),
|
myslide = { 'url': os.join.path(slides_path, self._download(slides_path, slide['url'], session)),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user