From 3c2bb25b1af49dc7e8c034d02a3d16f998a8f34e Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Thu, 8 Apr 2021 13:18:33 +1200 Subject: [PATCH] Re-added rename_subs #1823 #768 --- core/plugins/subtitles.py | 1 + 1 file changed, 1 insertion(+) diff --git a/core/plugins/subtitles.py b/core/plugins/subtitles.py index 30fb0d2c..9c236aa1 100644 --- a/core/plugins/subtitles.py +++ b/core/plugins/subtitles.py @@ -92,6 +92,7 @@ def rename_subs(path): if '{new_sub}.{i}{ext}'.format(new_sub=new_sub, i=i, ext=ext) in renamed: continue new_sub = '{new_sub}.{i}'.format(new_sub=new_sub, i=i) + break new_sub = '{new_sub}{ext}'.format(new_sub=new_sub, ext=ext) # add extension now if os.path.isfile(new_sub): # Don't copy over existing - final check. logger.debug('Unable to rename sub file {old} as destination {new} already exists'.format(old=sub, new=new_sub))