412 fix `vid_type` with downloads (single and bulk) (#413)
* update TA_VERSION v0.3.2 * Update `single_download` task to request proper `vid_type`. * Modify `single_download` to match bulk download. * pr 413: undo TA_VERSION update --------- Co-authored-by: simon <simobilleter@gmail.com>
This commit is contained in:
parent
0fcd6c086b
commit
4936f2fdf2
|
@ -111,9 +111,10 @@ def download_pending():
|
|||
def download_single(pending_video):
|
||||
"""start download single video now"""
|
||||
queue = RedisQueue(queue_name="dl_queue")
|
||||
|
||||
to_add = {
|
||||
"youtube_id": pending_video["youtube_id"],
|
||||
"vid_type": pending_video["vid_type"],
|
||||
"vid_type": pending_video.get("vid_type", VideoTypeEnum.VIDEOS.value),
|
||||
}
|
||||
queue.add_priority(json.dumps(to_add))
|
||||
print(f"Added to queue with priority: {to_add}")
|
||||
|
|
Loading…
Reference in New Issue