Skip to content

Download#

Download Queue List#

GET /api/download/

Parameter:

  • filter: pending, ignore
  • channel: channel-id

Add list of videos to download queue:
POST /api/download/

{
    "data": [
        {"youtube_id": "NYj3DnI81AQ", "status": "pending"}
    ]
}
Parameter:

  • autostart: true

Delete download queue items by filter:
DELETE /api/download/?filter=ignore
DELETE /api/download/?filter=pending

Curl Example
# add video to download queue
curl -XPOST -v /api/download/ \
  -H "Authorization: Token xxxxxxxxxx" \
  -H 'Content-Type: application/json' \
  -d '{"data":[{"youtube_id": "<video-id>", "status":"pending"}]}'

Download Queue Item#

GET /api/download/<video_id>/
POST /api/download/<video_id>/

Ignore video in download queue:

{
    "status": "ignore"
}

Add to queue previously ignored video:

{
    "status": "pending"
}

Download existing video now:

{
    "status": "priority"
}

DELETE /api/download/<video_id>/
Forget or delete from download queue