simplify playlist reindex, use update

This commit is contained in:
Simon
2024-05-11 22:34:44 +02:00
parent 4a38636ef3
commit 97b6d7d606

View File

@@ -380,14 +380,11 @@ class Reindex(ReindexBase):
):
return
subscribed = playlist.json_data["playlist_subscribed"]
playlist.build_json(scrape=True)
if not playlist.json_data:
is_active = playlist.update_playlist()
if not is_active:
playlist.deactivate()
return
playlist.json_data["playlist_subscribed"] = subscribed
playlist.upload_to_es()
self.processed["playlists"] += 1
return