From d54046be0166ee6dd352f1f5f6a05a22b872f0d8 Mon Sep 17 00:00:00 2001 From: Intel1 <25161862+Intel11@users.noreply.github.com> Date: Mon, 21 May 2018 12:49:04 -0500 Subject: [PATCH] Update trakt_tools.py --- plugin.video.alfa/core/trakt_tools.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin.video.alfa/core/trakt_tools.py b/plugin.video.alfa/core/trakt_tools.py index 914de6dc..e07c5971 100644 --- a/plugin.video.alfa/core/trakt_tools.py +++ b/plugin.video.alfa/core/trakt_tools.py @@ -203,13 +203,17 @@ def trakt_check(itemlist): id_result = '' # check = u'\u221a' check = 'v' - get_sync_from_file() + synced = False try: for item in itemlist: info = item.infoLabels if info != '' and info['mediatype'] in ['movie', 'episode'] and item.channel != 'videolibrary': + if not synced: + get_sync_from_file() + synced = True + mediatype = 'movies' id_type = 'tmdb'