File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -109,13 +109,11 @@ def alert_callback(data):
109109 if 'mediaState' not in entry and entry ['type' ] in expected_media_type :
110110 # state=5 means record processed, applicable only when metadata source was set
111111 if entry ['state' ] == 5 :
112- bar .update ()
113- # cnt = 1
114- # # Workaround for old Plex versions which not reports individual episodes' progress
115- # if entry['type'] == SEARCHTYPES['show']:
116- # show = server.library.sectionByID(str(entry['sectionID'])).get(entry['title'])
117- # cnt = show.leafCount
118- # bar.update(cnt)
112+ cnt = 1
113+ if entry ['type' ] == SEARCHTYPES ['show' ]:
114+ show = server .library .sectionByID (str (entry ['sectionID' ])).get (entry ['title' ])
115+ cnt = show .leafCount
116+ bar .update (cnt )
119117 # state=1 means record processed, when no metadata source was set
120118 elif entry ['state' ] == 1 and entry ['type' ] == SEARCHTYPES ['photo' ]:
121119 bar .update ()
You can’t perform that action at this time.
0 commit comments