Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions plextraktsync/commands/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,5 @@ def info(print=logger.info):
if has_plex_token():
plex = factory.plex_api
print(f"Plex Server version: {plex.version}, updated at: {plex.updated_at}")
print(
f"Enabled {len(plex.library_sections)} libraries in Plex Server: {plex.library_section_names}"
)
section_titles = [x.title for x in plex.library_sections.values()]
print(f"Enabled {len(plex.library_sections)} libraries in Plex Server: {section_titles}")
4 changes: 0 additions & 4 deletions plextraktsync/plex/PlexApi.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,6 @@ def library_sections(self) -> Dict[int, PlexLibrarySection]:
continue
yield section.key, PlexLibrarySection(section, plex=self)

@property
def library_section_names(self):
return [s.title for s in self.library_sections.values()]

@memoize
def system_device(self, device_id: int) -> SystemDevice:
return self.plex.systemDevice(device_id)
Expand Down
10 changes: 5 additions & 5 deletions plextraktsync/walker.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,19 +247,19 @@ def is_partial(self):

def print_plan(self, print=print):
if self.plan.movie_sections:
print(f"Sync Movie sections: {self.plan.movie_sections}")
print(f"Sync Movie sections: {[x.title for x in self.plan.movie_sections]}")

if self.plan.show_sections:
print(f"Sync Show sections: {self.plan.show_sections}")
print(f"Sync Show sections: {[x.title for x in self.plan.show_sections]}")

if self.plan.movies:
print(f"Sync Movies: {self.plan.movies}")
print(f"Sync Movies: {[x.title for x in self.plan.movies]}")

if self.plan.shows:
print(f"Sync Shows: {self.plan.shows}")
print(f"Sync Shows: {[x.title for x in self.plan.shows]}")

if self.plan.episodes:
print(f"Sync Episodes: {self.plan.episodes}")
print(f"Sync Episodes: {[x.title for x in self.plan.episodes]}")

def get_plex_movies(self) -> Generator[PlexLibraryItem, Any, None]:
"""
Expand Down