Fix ambiguous variable name
plextraktsync/commands/unmatched.py:42:13: E741 ambiguous variable name 'l'
plextraktsync/trakt_list_util.py:48:9: E741 ambiguous variable name 'l'
plextraktsync/trakt_list_util.py:84:13: E741 ambiguous variable name 'l'
plextraktsync/trakt_list_util.py:88:13: E741 ambiguous variable name 'l'
MODIFY
plextraktsync/commands/unmatched.py
plextraktsync/commands/unmatched.py
@@ -39,7 +39,7 @@ def unmatched(no_progress_bar: bool, local: bool):
print(f"Title: {p.title}")
print(f"Year: {p.year}")
print(f"Updated At: {p.updatedAt}")
- for l in p.locations:
- print(f"Location: {l}")
+ for location in p.locations:
+ print(f"Location: {location}")
print("")

MODIFY
plextraktsync/trakt_list_util.py
plextraktsync/trakt_list_util.py
@@ -45,9 +45,9 @@ def __init__(self, username, listname):
@staticmethod
def from_trakt_list(listname, trakt_list):
- l = TraktList(None, listname)
- l.trakt_items = dict(zip([(elem.media_type, elem.trakt) for elem in trakt_list], count(1)))
- return l
+ tl = TraktList(None, listname)
+ tl.trakt_items = dict(zip([(elem.media_type, elem.trakt) for elem in trakt_list], count(1)))
+ return tl
def addPlexItem(self, trakt_item, plex_item):
rank = self.trakt_items.get((trakt_item.media_type, trakt_item.trakt))
@@ -81,9 +81,9 @@ def addList(self, username, listname, trakt_list=None):
logger.warning("Failed to get list {} by user {}".format(listname, username))
def addPlexItemToLists(self, m):
- for l in self.lists:
- l.addPlexItem(m.trakt, m.plex.item)
+ for tl in self.lists:
+ tl.addPlexItem(m.trakt, m.plex.item)
def updatePlexLists(self, plex: PlexApi):
- for l in self.lists:
- l.updatePlexList(plex)
+ for tl in self.lists:
+ tl.updatePlexList(plex)

Fix ambiguous variable name

plextraktsync/commands/unmatched.py:42:13: E741 ambiguous variable name 'l'
plextraktsync/trakt_list_util.py:48:9: E741 ambiguous variable name 'l'
plextraktsync/trakt_list_util.py:84:13: E741 ambiguous variable name 'l'
plextraktsync/trakt_list_util.py:88:13: E741 ambiguous variable name 'l'