projects
/
smooth-dl.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplify get_manifest() signature
[smooth-dl.git]
/
smooth-dl.py
diff --git
a/smooth-dl.py
b/smooth-dl.py
index
16ee966
..
91b4ec2
100755
(executable)
--- a/
smooth-dl.py
+++ b/
smooth-dl.py
@@
-92,8
+92,7
@@
def write_wav_header(out_file, fmt, codec_private_data, data_len):
out_file.write(struct.pack('<L', data_len))
out_file.write(struct.pack('<L', data_len))
-def get_manifest(base_url, dest_dir=tempfile.gettempdir(),
- manifest_file='Manifest'):
+def get_manifest(base_url, dest_dir=tempfile.gettempdir()):
"""Returns the manifest and the new URL if this is changed"""
if os.path.exists(dest_dir) == False:
"""Returns the manifest and the new URL if this is changed"""
if os.path.exists(dest_dir) == False:
@@
-108,7
+107,7
@@
def get_manifest(base_url, dest_dir=tempfile.gettempdir(),
response = urllib2.urlopen(manifest_url)
data = response.read()
response = urllib2.urlopen(manifest_url)
data = response.read()
- manifest_path = os.path.join(dest_dir,
manifest_file
)
+ manifest_path = os.path.join(dest_dir,
'Manifest'
)
f = open(manifest_path, "w")
f.write(data)
f.close()
f = open(manifest_path, "w")
f.write(data)
f.close()