streameth-platform icon indicating copy to clipboard operation
streameth-platform copied to clipboard

[TASK] Create a script that will populate DB entries with their assetid for older items

Open Mario-SO opened this issue 6 months ago • 0 comments

Description

As found in this issue (#853) there is a problem with older entries in the database when we were not saving the assetId returned from livepeer, this caused older videos like ones from Zuzalu to not be playable.

The idea is to populate the database entries that have no assetId by creating a one-of script that based on other fields, could return the assetId so that we can simplify the logic applied when fetching videoUrl for playback.

Related User Story

Objectives

  • [ ] Create a script that gets assetId based on other fields.
  • [ ] Make sure we are repopulating the correct entries.

Acceptance Criteria

  • [ ] This should only populate the affected entries
  • [ ] This is a one-time script, hopefully this will fix any future issues with playback

Additional Information

This is a result of the discussion when reviewing #854 + #853

Mario-SO avatar Aug 12 '24 13:08 Mario-SO