Skip to content

Commit a6b5b53

Browse files
committed
feat: show library name for plex
1 parent 131dc3b commit a6b5b53

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mov_cli_jellyplex/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
}
1818
}
1919

20-
__version__ = "1.1.2"
20+
__version__ = "1.1.3"

mov_cli_jellyplex/plex/scraper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ def search(self, query: str, limit: Optional[int]) -> Generator[PlexMetadata, An
6060
else:
6161
videos = plex_server.search(query, limit=limit)
6262

63-
for _, video in enumerate(videos):
63+
for id, video in enumerate(videos):
6464
if video.TYPE in ["movie", "show"]:
6565
yield PlexMetadata(
66-
id = _,
67-
title = video.title,
66+
id = id,
67+
title = video.title + f" ({video.librarySectionTitle})",
6868
type = MetadataType.SINGLE if "movie" == video.TYPE else MetadataType.MULTI,
6969
image_url = video.posterUrl,
7070
year = video.year,

0 commit comments

Comments
 (0)