include guids update

pull/402/head
meisnate12 3 years ago
parent 8516ac10db
commit 0ed61cec79

@ -209,7 +209,7 @@ class Convert:
try:
if item_type == "plex":
try:
for guid_tag in library.get_guids(item):
for guid_tag in item.guids:
url_parsed = requests.utils.urlparse(guid_tag.id)
if url_parsed.scheme == "tvdb": tvdb_id.append(int(url_parsed.netloc))
elif url_parsed.scheme == "imdb": imdb_id.append(url_parsed.netloc)

@ -279,7 +279,7 @@ class Plex(Library):
def get_all(self):
logger.info(f"Loading All {self.type}s from Library: {self.name}")
key = f"/library/sections/{self.Plex.key}/all?type={utils.searchType(self.Plex.TYPE)}"
key = f"/library/sections/{self.Plex.key}/all?includeGuids=1&type={utils.searchType(self.Plex.TYPE)}"
container_start = 0
container_size = plexapi.X_PLEX_CONTAINER_SIZE
results = []
@ -317,11 +317,6 @@ class Plex(Library):
def collection_order_query(self, collection, data):
collection.sortUpdate(sort=data)
@retry(stop_max_attempt_number=6, wait_fixed=10000, retry_on_exception=util.retry_if_not_plex)
def get_guids(self, item):
self.reload(item)
return item.guids
@retry(stop_max_attempt_number=6, wait_fixed=10000, retry_on_exception=util.retry_if_not_plex)
def reload(self, item):
try:

@ -1,4 +1,4 @@
PlexAPI==4.7.1
PlexAPI==4.7.2
tmdbv3api==1.7.6
arrapi==1.1.3
lxml==4.6.3

Loading…
Cancel
Save