mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-02-17 19:19:16 +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 + '/'
|
subdir = subdir + '/'
|
||||||
text = subdir + text
|
text = subdir + text
|
||||||
else:
|
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
|
name = line
|
||||||
text = ''
|
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)
|
outpath = os.path.join(path, name)
|
||||||
|
|
||||||
with open(outpath, 'w') as fo:
|
with open(outpath, 'w') as fo:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user