Skip to content

Commit d49ad74

Browse files
committed
tag_dat.py: fix file ending regex
1 parent 67e44f1 commit d49ad74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tag_dat/tag_dat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def set_tags(args, file):
3030
if args.verbose:
3131
print(f'Reading file {file}')
3232

33-
title = re.sub('\..*$', '', file)
33+
title = re.sub('\.[a-zA-Z0-9]*$', '', file)
3434
m_file = mutagen.File(file)
3535

3636
if args.debug:

0 commit comments

Comments
 (0)