mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-25 21:20:15 +00:00
implement index channel playlist from form
This commit is contained in:
parent
91a9477bba
commit
875c601f4e
@ -34,7 +34,7 @@ from home.src.index.playlist import YoutubePlaylist
|
|||||||
from home.src.ta.config import AppConfig, ScheduleBuilder
|
from home.src.ta.config import AppConfig, ScheduleBuilder
|
||||||
from home.src.ta.helper import UrlListParser
|
from home.src.ta.helper import UrlListParser
|
||||||
from home.src.ta.ta_redis import RedisArchivist
|
from home.src.ta.ta_redis import RedisArchivist
|
||||||
from home.tasks import extrac_dl, subscribe_to
|
from home.tasks import extrac_dl, index_channel_playlists, subscribe_to
|
||||||
from rest_framework.authtoken.models import Token
|
from rest_framework.authtoken.models import Token
|
||||||
|
|
||||||
|
|
||||||
@ -444,6 +444,8 @@ class ChannelIdView(ArchivistResultsView):
|
|||||||
overwrites = channel_overwrite_form.cleaned_data
|
overwrites = channel_overwrite_form.cleaned_data
|
||||||
print(f"{channel_id}: set overwrites {overwrites}")
|
print(f"{channel_id}: set overwrites {overwrites}")
|
||||||
channel_overwrites(channel_id, overwrites=overwrites)
|
channel_overwrites(channel_id, overwrites=overwrites)
|
||||||
|
if overwrites.get("index_playlists") == "1":
|
||||||
|
index_channel_playlists.delay(channel_id)
|
||||||
|
|
||||||
sleep(1)
|
sleep(1)
|
||||||
return redirect("channel_id", channel_id, permanent=True)
|
return redirect("channel_id", channel_id, permanent=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user