Skip to content

Commit aee40e3

Browse files
committed
Its wasn't actually a workaround.
1 parent faedc27 commit aee40e3

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

tools/plex-bootstraptest.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)