diff --git a/modules/util.py b/modules/util.py index 0b8be528..38c64cbd 100644 --- a/modules/util.py +++ b/modules/util.py @@ -77,7 +77,7 @@ collection_mode_options = { } def tab_new_lines(data): - return str(data).replace("\n", "\n|\t ") if "\n" in str(data) else str(data) + return str(data).replace("\n", "\n ") if "\n" in str(data) else str(data) def make_ordinal(n): return f"{n}{'th' if 11 <= (n % 100) <= 13 else ['th', 'st', 'nd', 'rd', 'th'][min(n % 10, 4)]}" diff --git a/plex_meta_manager.py b/plex_meta_manager.py index 5d8751cd..84df27d5 100644 --- a/plex_meta_manager.py +++ b/plex_meta_manager.py @@ -2,8 +2,6 @@ import argparse, logging, os, sys, time from datetime import datetime from logging.handlers import RotatingFileHandler -from plexapi.exceptions import NotFound -from plexapi.video import Show, Season try: import plexapi, schedule @@ -12,6 +10,8 @@ try: from modules.config import ConfigFile from modules.meta import MetadataFile from modules.util import Failed, NotScheduled + from plexapi.exceptions import NotFound + from plexapi.video import Show, Season except ModuleNotFoundError: print("Requirements Error: Requirements are not installed") sys.exit(0) diff --git a/requirements.txt b/requirements.txt index 30f159c7..1893dde8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ PlexAPI==4.9.1 tmdbapis==0.1.8 -arrapi==1.3.0 +arrapi==1.3.1 lxml==4.7.1 requests==2.27.1 ruamel.yaml==0.17.20