Fix bootstrap server show section progress

This commit is contained in:
JonnyWong16 2021-05-30 18:02:29 -07:00
parent 6e92be6a7a
commit d48e1fe875
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -272,6 +272,8 @@ def create_section(server, section, opts):
processed_media = 0
expected_media_count = section.pop("expected_media_count", 0)
expected_media_type = (section["type"],)
if section["type"] == "show":
expected_media_type = ("show", "season", "episode")
if section["type"] == "artist":
expected_media_type = ("artist", "album", "track")
expected_media_type = tuple(SEARCHTYPES[t] for t in expected_media_type)