Rename m to pm for ambiguity
@@ -19,13 +19,13 @@ def inspect(input):
if input.isnumeric():
input = int(input)
- m = plex.fetch_item(input)
- print(f"Inspecting: {m}")
+ pm = plex.fetch_item(input)
+ print(f"Inspecting: {pm}")
- url = plex.media_url(m)
+ url = plex.media_url(pm)
print(f"URL: {url}")
- media = m.item
+ media = pm.item
print(f"Media.Guid: '{media.guid}'")
print(f"Media.Guids: {media.guids}")
@@ -37,13 +37,13 @@ def inspect(input):
print(f"Video: '{video.codec}'")
print("Guids:")
- for guid in m.guids:
+ for guid in pm.guids:
print(f" Guid: {guid}, Id: {guid.id}, Provider: {guid.provider}")
- print(f"Metadata: {m.to_json()}")
+ print(f"Metadata: {pm.to_json()}")
try:
- tm = trakt.find_by_media(m)
+ tm = trakt.find_by_media(pm)
print(f"Trakt match: {tm}")
except Exception as e:
print(f"Error: {e}")
