A 4 năm trước cách đây
mục cha
commit
07d5b78c96
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      src/playserver.py

+ 3 - 2
src/playserver.py

@@ -56,7 +56,7 @@ class __PlayServer__(object):
         self.__play_progress__(__episode_id__)
 
     def __play_progress__(self, __episode_id__):
-        if not __episode_id__:
+        if not __episode_id__ or not (__episode_id__ in self._times):
             return
 
         current = self._times[__episode_id__]
@@ -68,7 +68,8 @@ class __PlayServer__(object):
 
     def __play_end__(self, __episode_id__):
         self._started = False
-        if not __episode_id__:
+        
+        if not __episode_id__ or not (__episode_id__ in self._times):
             return
 
         current = self._times[__episode_id__]