|
|
@ -53,7 +53,6 @@ class PostData:
|
|
|
|
"change_view": self._change_view,
|
|
|
|
"change_view": self._change_view,
|
|
|
|
"change_grid": self._change_grid,
|
|
|
|
"change_grid": self._change_grid,
|
|
|
|
"rescan_pending": self._rescan_pending,
|
|
|
|
"rescan_pending": self._rescan_pending,
|
|
|
|
"ignore": self._ignore,
|
|
|
|
|
|
|
|
"dl_pending": self._dl_pending,
|
|
|
|
"dl_pending": self._dl_pending,
|
|
|
|
"queue": self._queue_handler,
|
|
|
|
"queue": self._queue_handler,
|
|
|
|
"unsubscribe": self._unsubscribe,
|
|
|
|
"unsubscribe": self._unsubscribe,
|
|
|
@ -112,15 +111,6 @@ class PostData:
|
|
|
|
update_subscribed.delay()
|
|
|
|
update_subscribed.delay()
|
|
|
|
return {"success": True}
|
|
|
|
return {"success": True}
|
|
|
|
|
|
|
|
|
|
|
|
def _ignore(self):
|
|
|
|
|
|
|
|
"""ignore from download queue"""
|
|
|
|
|
|
|
|
video_id = self.exec_val
|
|
|
|
|
|
|
|
print(f"{video_id}: ignore video from download queue")
|
|
|
|
|
|
|
|
PendingInteract(video_id=video_id, status="ignore").update_status()
|
|
|
|
|
|
|
|
# also clear from redis queue
|
|
|
|
|
|
|
|
RedisQueue(queue_name="dl_queue").clear_item(video_id)
|
|
|
|
|
|
|
|
return {"success": True}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
@staticmethod
|
|
|
|
def _dl_pending():
|
|
|
|
def _dl_pending():
|
|
|
|
"""start the download queue"""
|
|
|
|
"""start the download queue"""
|
|
|
|