Update all YT claims with new metadata
Created by: tzarebczan
This will serve as the ytsyc issue to implement the below and an epic to track types/sdk required changes. When the sdk tickets are filed, I'll update it.
-
Setup a process to perform claim updates, preferably in batch mode (https://github.com/lbryio/lbry/issues/1821). If easy update mode is available (https://github.com/lbryio/lbry/issues/1423), use it, if not, read from existing claim data. This also includes grabbing the sdblob for each claim in order to populate some of the new file related fields.
-
From the sdblob, grab the filename and file size to populate name/size in https://github.com/lbryio/types/issues/9.
-
Grab video length from the YouTube api to populate length in https://github.com/lbryio/types/issues/9
-
Grab published date from YouTube api to populate releaseTime in https://github.com/lbryio/types/issues/13
-
Grab category/tags from YouTube api to populate in https://github.com/lbryio/types/issues/15 or https://github.com/lbryio/types/issues/16
-
Grab language from YouTube api and populate language on claim metadata
-
Research other relevant youtube API data that may require new types/sdk entries.