mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-25 14:00:21 +00:00
[2] catch convert error
This commit is contained in:
parent
5154eee394
commit
a4d0f150d8
2 changed files with 8 additions and 5 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
2.0.0-develop1
|
2.0.0-develop2
|
||||||
|
|
|
@ -244,10 +244,13 @@ class Convert:
|
||||||
if item_type == "plex":
|
if item_type == "plex":
|
||||||
try:
|
try:
|
||||||
for guid_tag in item.guids:
|
for guid_tag in item.guids:
|
||||||
|
try:
|
||||||
url_parsed = requests.utils.urlparse(guid_tag.id)
|
url_parsed = requests.utils.urlparse(guid_tag.id)
|
||||||
if url_parsed.scheme == "tvdb": tvdb_id.append(int(url_parsed.netloc))
|
if url_parsed.scheme == "tvdb": tvdb_id.append(int(url_parsed.netloc))
|
||||||
elif url_parsed.scheme == "imdb": imdb_id.append(url_parsed.netloc)
|
elif url_parsed.scheme == "imdb": imdb_id.append(url_parsed.netloc)
|
||||||
elif url_parsed.scheme == "tmdb": tmdb_id.append(int(url_parsed.netloc))
|
elif url_parsed.scheme == "tmdb": tmdb_id.append(int(url_parsed.netloc))
|
||||||
|
except ValueError:
|
||||||
|
pass
|
||||||
except requests.exceptions.ConnectionError:
|
except requests.exceptions.ConnectionError:
|
||||||
library.query(item.refresh)
|
library.query(item.refresh)
|
||||||
logger.stacktrace()
|
logger.stacktrace()
|
||||||
|
|
Loading…
Reference in a new issue