Download of Videos is now possible. Minor styling changes.
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
from flask_wtf import FlaskForm
|
||||
from wtforms import URLField, SubmitField
|
||||
from wtforms.validators import URL, DataRequired
|
||||
from wtforms import URLField, SelectField, SubmitField
|
||||
from wtforms.validators import URL, DataRequired, AnyOf
|
||||
|
||||
|
||||
class DownloadForm(FlaskForm):
|
||||
url = URLField('Video, Channel or Playlist', validators=[DataRequired(), URL()], render_kw={'placeholder': 'YouTube Link'})
|
||||
ext = SelectField('Type', choices=[('mp3', 'Audio'), ('mp4', 'Video')], validators=[AnyOf(('mp3', 'mp4'))])
|
||||
submit = SubmitField('Go')
|
||||
|
||||
Reference in New Issue
Block a user