diff --git a/Writerside/topics/Importing-existing-media.md b/Writerside/topics/Importing-existing-media.md index b1e8b33..78a0e56 100644 --- a/Writerside/topics/Importing-existing-media.md +++ b/Writerside/topics/Importing-existing-media.md @@ -13,7 +13,7 @@ Here is an example, using these rules: / └── data/ ├── tv/ - │ ├── Rick and Morty # WILL be imorted + │ ├── Rick and Morty # WILL be imported │ ├── Stranger Things (2016) # WILL be imported │ │ │ ├── Breaking Bad (2008) [tmdbid-1396] # WILL NOT be imported diff --git a/media_manager/torrent/utils.py b/media_manager/torrent/utils.py index 73238a1..d14bb70 100644 --- a/media_manager/torrent/utils.py +++ b/media_manager/torrent/utils.py @@ -194,7 +194,7 @@ def detect_unknown_media(path: Path) -> list[Path]: log.debug(f"Using Directory {path}") unknown_tv_shows = [] for media_dir in show_dirs: - # check if directory is one created by MediaManager (contins [tmdbd/tvdbid-0000) or if it is a library + # check if directory is one created by MediaManager (contains [tmdbd/tvdbid-0000) or if it is a library if ( re.search(r"\[(?:tmdbid|tvdbid)-\d+]", media_dir.name, re.IGNORECASE) or media_dir.absolute() diff --git a/media_manager/tv/router.py b/media_manager/tv/router.py index bd2cbc7..707132a 100644 --- a/media_manager/tv/router.py +++ b/media_manager/tv/router.py @@ -135,7 +135,7 @@ def get_all_importable_shows( ) def import_detected_show(tv_service: tv_service_dep, tv_show: show_dep, directory: str): """ - get a list of unknown shows that were detected in the tv directory and are importable + Import a detected show from the specified directory into the library. """ source_directory = Path(directory) if source_directory not in detect_unknown_media( diff --git a/media_manager/tv/service.py b/media_manager/tv/service.py index b2deb79..4fb5d7f 100644 --- a/media_manager/tv/service.py +++ b/media_manager/tv/service.py @@ -676,7 +676,7 @@ class TvService: season=season, video_files=video_files, subtitle_files=subtitle_files, - file_path_suffix=season_file.file_path, + file_path_suffix=season_file.file_path_suffix, ) if season_import_success: log.info( diff --git a/web/src/routes/dashboard/tv/+page.svelte b/web/src/routes/dashboard/tv/+page.svelte index 04222a9..8c1b8e8 100644 --- a/web/src/routes/dashboard/tv/+page.svelte +++ b/web/src/routes/dashboard/tv/+page.svelte @@ -44,7 +44,7 @@