diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-12-20 22:51:23 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-12-20 22:51:23 -0300 |
commit | 7fe93f8785f8d1db8a6038c3b97133ff4d9fd1a3 (patch) | |
tree | 30b27f7c0e2de18f6833df865bde0e0c8927a10e | |
parent | 137ad9a0c155a5c826842833793910ff2de4bee1 (diff) | |
download | updates-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-x | comp.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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: |