mirror of
https://github.com/tubearchivist/tubearchivist.git
synced 2024-12-27 20:20:13 +00:00
fix channel overwrite playlist refresh missing task
This commit is contained in:
parent
9e796019d2
commit
42f1679502
@ -6,7 +6,7 @@ from common.src.urlparser import Parser
|
||||
from common.views_base import AdminWriteOnly, ApiBaseView
|
||||
from download.src.subscriptions import ChannelSubscription
|
||||
from rest_framework.response import Response
|
||||
from task.tasks import subscribe_to
|
||||
from task.tasks import index_channel_playlists, subscribe_to
|
||||
|
||||
|
||||
class ChannelApiListView(ApiBaseView):
|
||||
@ -97,6 +97,9 @@ class ChannelApiView(ApiBaseView):
|
||||
|
||||
try:
|
||||
json_data = channel_overwrites(channel_id, overwrites)
|
||||
if overwrites.get("index_playlists"):
|
||||
index_channel_playlists.delay(channel_id)
|
||||
|
||||
except ValueError as err:
|
||||
return Response({"error": str(err)}, status=400)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user