projects
/
smooth-dl.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c5d261
)
smooth-dl.py: support using a local path for the Manifest file
author
Antonio Ospite <ao2@ao2.it>
Fri, 15 Jan 2016 19:15:40 +0000
(20:15 +0100)
committer
Antonio Ospite <ao2@ao2.it>
Fri, 15 Jan 2016 19:15:40 +0000
(20:15 +0100)
smooth-dl.py
patch
|
blob
|
history
diff --git
a/smooth-dl.py
b/smooth-dl.py
index
44ef722
..
39785a4
100755
(executable)
--- a/
smooth-dl.py
+++ b/
smooth-dl.py
@@
-118,11
+118,11
@@
def get_manifest(url, dest_dir):
if not manifest_url.lower().endswith(('/manifest', '.ismc', '.csm')):
manifest_url += '/Manifest'
- if manifest_url.startswith('http://'):
+ if os.path.exists(url):
+ local_manifest_path = url
+ else:
local_manifest_path = os.path.join(dest_dir, 'Manifest')
download_file(manifest_url, local_manifest_path, "w")
- else:
- local_manifest_path = url
manifest = etree.parse(local_manifest_path)