Joystream Stats 5cf93feb2f 34.CC-1: Update README | 2 жил өмнө | |
---|---|---|
.. | ||
README.md | 2 жил өмнө | |
categories.ts | 3 жил өмнө | |
list | 3 жил өмнө | |
package.json | 3 жил өмнө | |
types.ts | 3 жил өмнө | |
videos.json | 3 жил өмнө |
This script generates a week schedule to configure featured categories on orion (atlas#1659. To switch the categories it needs to be run daily.
yarn
to install dependencies..env
to set orionHeader
.Commands
get
: show current category videos // TODO FIXset
: display mutation requestsupdate
: updates videos.json from list
(generate with find DirectoryWithCategoryVideosCuts > list
schedule
: regenerates scheduleyarn run categories COMMAND
The list of video files is saved in list
with this schema: ./News _ Politics 12/11-6571.mp4
To update it, download and enter the directory maintained by the Curation lead and run find > list
and move the file list
into the directory if the script.
Now run yarn categories update
to regenerate videos.json
.
yarn categories schedule
saves the schedule for the coming week to schedule.json
.
With yarn categories set
the videos of the day are loaded from schedule.json
and transmitted to orion.
Use yarn categories get
to check currently set categories.
.env
needs to hold the Authorization header shared by the atlas team (see Setup).
To change the server, edit orionUrl
in categories.ts.
The location of video cuts is hardcoded in getOrionVideo()
.
A default of 7 days is used for the schedule (edit generateSchedule()
).