summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-12-20 22:51:23 -0300
committerJesusaves <cpntb1@ymail.com>2020-12-20 22:51:23 -0300
commit7fe93f8785f8d1db8a6038c3b97133ff4d9fd1a3 (patch)
tree30b27f7c0e2de18f6833df865bde0e0c8927a10e
parent137ad9a0c155a5c826842833793910ff2de4bee1 (diff)
downloadupdates-7fe93f8785f8d1db8a6038c3b97133ff4d9fd1a3.tar.gz
updates-7fe93f8785f8d1db8a6038c3b97133ff4d9fd1a3.tar.bz2
updates-7fe93f8785f8d1db8a6038c3b97133ff4d9fd1a3.tar.xz
updates-7fe93f8785f8d1db8a6038c3b97133ff4d9fd1a3.zip
Add support for mp3 and ogg files. They must not overlap as extension is stripped.
-rwxr-xr-xcomp.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/comp.py b/comp.py
index 756961d..c095a49 100755
--- a/comp.py
+++ b/comp.py
@@ -47,6 +47,8 @@ for path, subdir, files in os.walk("raw/"):
EXT="webp"
elif EXT in ["xcf", "psd"]:
pass
+ elif EXT in ["mp3", "ogg"]:
+ subprocess.call("cp %s %s/%s" % (fn, PATH, NAME), shell=True)
else:
subprocess.call("cp %s %s/%s.%s" % (fn, PATH, NAME, EXT), shell=True)
except: