Fix for action count on story load screen

This commit is contained in:
ebolam
2022-11-04 17:20:27 -04:00
parent 06a191f0e2
commit 52b6d26977

View File

@@ -8474,6 +8474,8 @@ def get_story_listing_data(item_full_path, item, valid_selection):
file_version=2
break
with open(item_full_path, 'rb') as f:
parse_event = ijson.parse(f)
if file_version == 1:
title = ".".join(item.split(".")[:-1])
else:
@@ -8482,6 +8484,8 @@ def get_story_listing_data(item_full_path, item, valid_selection):
title = value
break
with open(item_full_path, 'rb') as f:
parse_event = ijson.parse(f)
if file_version == 2:
for prefix, event, value in parse_event:
if prefix == 'actions.action_count':