Browse Source

Sanitize names possibly derived from X-DNZB-EpisodeName (#1806)

tags/3.2.1RC1
jxyzn 4 years ago
committed by Safihre
parent
commit
e851813cef
  1. 2
      sabnzbd/sorting.py

2
sabnzbd/sorting.py

@ -35,6 +35,7 @@ from sabnzbd.filesystem import (
get_unique_filename,
get_ext,
renamer,
sanitize_and_trim_path,
sanitize_foldername,
clip_path,
)
@ -492,6 +493,7 @@ class SeriesSorter:
newpath = os.path.join(current_path, newname)
# Replace %ext with extension
newpath = newpath.replace("%ext", self.ext)
newpath = sanitize_and_trim_path(newpath)
try:
logging.debug("Rename: %s to %s", filepath, newpath)
renamer(filepath, newpath)

Loading…
Cancel
Save