ucast/ucast/forms.py
2022-06-26 20:16:24 +02:00

26 lines
648 B
Python

from django import forms
class AddChannelForm(forms.Form):
channel_str = forms.CharField(label="Channel-ID / URL")
class DeleteVideoForm(forms.Form):
id = forms.IntegerField()
class EditChannelForm(forms.Form):
skip_shorts = forms.BooleanField(
label="Skip shorts (vertical videos < 1m)", required=False
)
skip_livestreams = forms.BooleanField(label="Skip livestreams", required=False)
class DownloadChannelForm(forms.Form):
n_videos = forms.IntegerField(
label="Number of videos (counting from most recent)", initial=50, min_value=1
)
class RequeueForm(forms.Form):
id = forms.UUIDField()