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.
9 lines
315 B
Python
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')
|