mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-26 06:20:23 +00:00
[23] sanitize filenames
This commit is contained in:
parent
bb878df032
commit
7f9f963cba
2 changed files with 4 additions and 3 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.17.3-develop22
|
||||
1.17.3-develop23
|
||||
|
|
|
@ -1123,9 +1123,10 @@ class Plex(Library):
|
|||
path_test = path_test.replace("\\", "/")
|
||||
folder_name = os.path.basename(os.path.dirname(path_test) if isinstance(starting, Movie) else path_test)
|
||||
elif isinstance(item, (Collection, Playlist)):
|
||||
folder_name, _ = util.validate_filename(item.title)
|
||||
folder_name = item.title
|
||||
else:
|
||||
folder_name, _ = util.validate_filename(item)
|
||||
folder_name = item
|
||||
folder_name, _ = util.validate_filename(folder_name)
|
||||
|
||||
if not self.asset_folders:
|
||||
file_name = folder_name if file_name == "poster" else f"{folder_name}_{file_name}"
|
||||
|
|
Loading…
Reference in a new issue