dbr / tvnamer

Automatic TV episode file renamer, uses data from thetvdb.com via tvdb_api
https://pypi.python.org/pypi/tvnamer/
The Unlicense
909 stars 115 forks source link

Text "Before custom output replacements" shows File Name after replacements #126

Closed jdunn0 closed 3 years ago

jdunn0 commented 8 years ago

I have tvnamer v2.3 installed in Gentoo and have noticed that when custom output replacements are used, when the text "Before custom output replacements" is shown, the file name with the replacements are displayed when they shouldn't be. I took a quick look at the main.py file and found the problem. Here is a diff that fixes the problem:

--- main.py     2016-01-13 16:30:30.408319883 -0800
+++ main.py     2015-11-17 19:34:14.000000000 -0800
@@ -207,7 +207,7 @@

             if len(Config['output_filename_replacements']) > 0:
                 # Show filename without replacements
-                p("Before custom output replacements: %s" % (episode.generateFilename(preview_orig_filename = True)))
+                p("Before custom output replacements: %s" % (episode.generateFilename(preview_orig_filename = False)))

             p("New filename: %s" % newName)