|
6 | 6 | # you can find the original script here: https://github.com/Drazzilb08/userScripts/blob/master/python-scripts/renamer.py |
7 | 7 | # =================================================================================================== |
8 | 8 |
|
9 | | -script_version = "6.3.2" |
| 9 | +script_version = "6.3.3" |
10 | 10 |
|
11 | 11 | from fuzzywuzzy import fuzz |
12 | 12 | from fuzzywuzzy import process |
@@ -377,7 +377,7 @@ def rename_file(matched_media, destination_dir, dry_run, action_type, print_only |
377 | 377 | discord_messages.extend(discord_message) |
378 | 378 | if not asset_folders: |
379 | 379 | for i in discord_messages: |
380 | | - discord_messages = [i.split('.')[0] for i in discord_messages] |
| 380 | + discord_messages = [os.path.splitext(i)[0] for i in discord_messages] |
381 | 381 | return messages, discord_messages |
382 | 382 |
|
383 | 383 |
|
@@ -587,13 +587,14 @@ def process_instance(instance_type, instance_name, url, api, final_output, asset |
587 | 587 | collections += library.collections() |
588 | 588 | except BadRequest: |
589 | 589 | logger.error(f"Error: {library_name} does not exist in {instance_name}") |
590 | | - collection_names = [collection.title for collection in collections if collection.smart != True] |
| 590 | + # collection_names = [collection.title for collection in collections if collection.smart != True] |
| 591 | + collection_names = [collection.title for collection in collections] |
591 | 592 | logger.debug(json.dumps(collection_names, indent=4)) |
592 | 593 | else: |
593 | 594 | message = f"Error: No library names specified for {instance_name}" |
594 | 595 | final_output.append(message) |
595 | 596 | return final_output, None |
596 | | - # get friendly name of plex server |
| 597 | + # get freindlyname of plex server |
597 | 598 | server_name = app.friendlyName |
598 | 599 | data = [ |
599 | 600 | [f"Plex Server: {server_name}"], |
|
0 commit comments