{
"serialy" : {
// old format
},
"links": {
"key": link_object
}
}
/links/new
{
"url": user_supplied_url,
"time_added": now,
}
When added, FoxBox extracts info and puts the result into the /links/extracted
list.
If the url already exists in /links/extracted
, the result is undefined. The operation should be idempotent.
/links/extracted
{
"url": user_supplied_url,
"time_added": some_time,
"_result": {
"type": "success",
"info_dict": {
// information in youtube-dl format
"_type": undefined|"playlist"|...,
...
}
}
}
{
"url": user_supplied_url,
"link_added": some_time,
"_result": {
"type": "error",
"message": "...",
}
}
/links/extracted/<serial_id>/_result/info_dict.json
/links/extracted/<serial_id>/_result/info_dict/entries/<n>.json
{
"_type": "playlist",
"entries": [info_object, ...]
}
_foxbox_download_status
is undefined
{
"_type": undefined | "video",
"id": "...",
"extractor", "MyHitSerial"|"...",
"title": "...",
"thumbnail": "...",
}
{
"_type": undefined | "video",
"id": "...",
"extractor", "MyHitSerial"|"...",
"title": "...",
"thumbnail": "...",
"_foxbox_download_status": {
"type": "IN_PROGRESS",
"downloaded_part": 0.441,
"downloaded_bytes": 24875
},
}
{
"_type": undefined | "video",
"id": "...",
"extractor", "MyHitSerial"|"...",
"title": "...",
"thumbnail": "...",
"_foxbox_download_status": {
"type": "FAILED",
"message": "..."
},
}
{
"_type": undefined | "video",
"id": "...",
"extractor", "MyHitSerial"|"...",
"title": "...",
"thumbnail": "...",
"_foxbox_download_status": {
"type": "SUCCESS"
},
}
/filesystem
{
"type": "DIRECTORY",
"name": "aaafefafeea",
"children": {filename: file, ...},
"request": undefined | "DELETE"
}
{
"type": "FILE",
"name": "aadaef",
"size": 897788,
"request": undefined | "DELETE"
}