Convert numeric value to integer
Plex API behaves weird otherwise, appends the value to plex server url
without separator, which makes it connect to some odd tcp port.
@@ -16,6 +16,9 @@ def inspect(input):
server = PlexServer(url, token)
plex = PlexApi(server)
+ if input.isnumeric():
+ input = int(input)
+
m = plex.fetch_item(input)
movie = m.item
