Files
yt-mls/forms/download.py
Maximilian Wagner ddf249cfe0 Alpha status reached.
Downloads get run in their own threads which are queued. Downloads of single files as well as zips of playlists are possible. Interaction with db has shown no problems.
2023-08-02 17:44:37 +02:00

9 lines
315 B
Python

from flask_wtf import FlaskForm
from wtforms import URLField, SubmitField
from wtforms.validators import URL, DataRequired
class DownloadForm(FlaskForm):
url = URLField('Video, Channel or Playlist', validators=[DataRequired(), URL()], render_kw={'placeholder': 'YouTube Link'})
submit = SubmitField('Go')