first pass at collections

This commit is contained in:
retrozelda
2025-02-09 23:15:21 -05:00
parent 73efd89358
commit e1524ec207
3 changed files with 206 additions and 1 deletions

View File

@@ -86,7 +86,7 @@ class BeaconContent:
new_content.duration = content_block["duration"]
new_content.slug = content_block["slug"]
new_content.publishedDate = content_block["publishedAt"]
new_content.primaryCollection = content_block["primaryCollection"]["__ref"]
# new_content.primaryCollection = content_block["primaryCollection"]["__ref"] # sometimes crashes but we dont need it so it can remain commented out
new_content.m3u8_url = content_video_block["video"]["video"]
new_content.closedCaptions = content_video_block["video"]["closedCaptions"]