-
Notifications
You must be signed in to change notification settings - Fork 0
/
episode_schema.json
32 lines (32 loc) · 1.04 KB
/
episode_schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
for each event in events:
fetch and parse event url
for each recording in event.recordings
if rec.language == "eng"
append new episode:
{
"id": evt.guid,
"title": evt.title,
"episodeNumber": searchNumeric(evt.tags),
"releaseDate": evt.date,
"thumbnail": evt.poster_url,
"shortDescription": evt.subtitle || truncateTo200(evt.description),
"longDescription": truncateTo500(evt.description),
"content": {
"dateAdded": rec.updated_at,
"videos": [ {
"url": rec.recording_url,
"quality": "HD",
"videoType": "MP4"
} ],
"duration": rec.length,
"language": "en"
},
"credits": [
// for each person in evt.persons
{
"name": person,
"role": "actor"
}
]
}
stop processing recordings