Improve logging, skip playlists

This commit is contained in:
Salt 2025-01-23 23:21:02 -06:00
parent f761fba376
commit 9e146c6c69

View File

@ -32,8 +32,11 @@ def odysee_get_releases(handle):
elif item["value_type"] == "stream":
# This is known to be a zip file
pass
elif item["value_type"] == "collection":
# Collections are playlists, and we don't care about the ones that aren't
continue
else:
print(f'Unknown value type, continuing: item["value_type"]')
print(f'Unknown value type, continuing: {item["value_type"]}')
releases[item["claim_id"]] = {
"name": item.get("name", "Unnamed Release"),
"title": item["value"].get("title", "Untitled Release"),