mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-24 06:50:20 +01:00
txtp_dumper: ignore pre-created txtp
This commit is contained in:
parent
e76ccb6ab7
commit
4e79416764
@ -107,9 +107,18 @@ class App(object):
|
||||
subdir = subdir + '/'
|
||||
text = subdir + text
|
||||
else:
|
||||
# should be a mini-txtp, but if name isn't "file.ext.txtp" and just "file.txtp",
|
||||
# probably means proper txtp exists and should't be created (when generating from !tags.m3u)
|
||||
name = line
|
||||
text = ''
|
||||
|
||||
basename = os.path.basename(name)
|
||||
subname, _ = os.path.splitext(basename)
|
||||
_, subext = os.path.splitext(subname)
|
||||
if not subext:
|
||||
print("ignored pre-txtp: %s" % (basename))
|
||||
continue
|
||||
|
||||
outpath = os.path.join(path, name)
|
||||
|
||||
with open(outpath, 'w') as fo:
|
||||
|
Loading…
Reference in New Issue
Block a user