Allow title override in media_from_traktlist
MODIFY
plextraktsync/walker.py
plextraktsync/walker.py
@@ -346,8 +346,8 @@ def progressbar(self, iterable: Iterable, **kwargs):
else:
yield from iterable
- def media_from_traktlist(self, items: Iterable) -> Generator[Media, Any, None]:
- it = self.progressbar(items, desc="Processing Trakt watchlist")
+ def media_from_traktlist(self, items: Iterable, title="Trakt watchlist") -> Generator[Media, Any, None]:
+ it = self.progressbar(items, desc=f"Processing {title}")
for media in it:
tm = TraktItem(media, trakt=self.trakt)
m = self.mf.resolve_trakt(tm)

Allow title override in media_from_traktlist