Fix invalid m variable
plextraktsync/walker.py:115:57: F821 undefined name 'm'
MODIFY
plextraktsync/walker.py
plextraktsync/walker.py
@@ -112,7 +112,7 @@ def find_by_id(self, movie_sections, show_sections):
elif mediatype == "movie":
movies.extend(items)
else:
- raise RuntimeError(f"Unsupported type: {m.type}")
+ raise RuntimeError(f"Unsupported type: {mediatype}")
return [movies, shows, episodes]

MODIFY
setup.cfg
setup.cfg
@@ -45,3 +45,8 @@ console_scripts =
# https://pypi.org/project/setuptools-declarative-requirements/
# https://github.com/pypa/setuptools/issues/1951#issuecomment-718094135
install_requires = requirements.txt
+
+[flake8]
+ignore = E501
+#exclude = .git,__pycache__,docs/source/conf.py,old,build,dist
+#max-complexity = 10

Fix invalid m variable

plextraktsync/walker.py:115:57: F821 undefined name 'm'