From 572cfad5fd1e1bb9c723657f3c3b29a44f926144 Mon Sep 17 00:00:00 2001
From: Matt <mcarlton00@gmail.com>
Date: Sat, 9 Apr 2022 22:04:17 -0400
Subject: [PATCH] Check path instead of name for missing episodes

---
 jellyfin_kodi/full_sync.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/jellyfin_kodi/full_sync.py b/jellyfin_kodi/full_sync.py
index f76fdfe3..9617f9e0 100644
--- a/jellyfin_kodi/full_sync.py
+++ b/jellyfin_kodi/full_sync.py
@@ -353,7 +353,7 @@ class FullSync(object):
 
                         for episodes in server.get_episode_by_show(show['Id']):
                             for episode in episodes['Items']:
-                                if episode.get('Name'):
+                                if episode.get('Path'):
                                     dialog.update(percent, message="%s/%s" % (message, episode['Name'][:10]))
                                     obj.episode(episode)
                     processed_ids.append(show['Id'])