mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 23:29:29 +00:00
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:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user