forked from rDrama/rDrama
fix old mp3 songs being displayed as youtube links
parent
9c3976a622
commit
3e0a4fe015
|
@ -400,7 +400,7 @@
|
|||
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||
<label class="btn btn-secondary format d-inline-block m-0 mb-3">
|
||||
<div id="filename-show2"><i class="fas fa-file"></i>
|
||||
{% if v.song and v.song|length == 17 %}
|
||||
{% if v.song and v.song|length in (1,2,3,4,5,17) %}
|
||||
{{v.song}}.mp3
|
||||
{% else %}
|
||||
Use an MP3 file (Max size is 8MB)
|
||||
|
@ -413,7 +413,7 @@
|
|||
<form action="/settings/song_change" method="post">
|
||||
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||
|
||||
<input class="form-control" style="display:inline;max-width:75%;font-size: min(3.5vw,16px)!important" autocomplete="off" type="text" name="song" class="form-control" value="{% if v.song and v.song|length != 17 %}https://youtu.be/{{v.song}}{% endif %}" placeholder='Enter a YouTube video link here'>
|
||||
<input class="form-control" style="display:inline;max-width:75%;font-size: min(3.5vw,16px)!important" autocomplete="off" type="text" name="song" class="form-control" value="{% if v.song and v.song|length not in (1,2,3,4,5,17) %}https://youtu.be/{{v.song}}{% endif %}" placeholder='Enter a YouTube video link here'>
|
||||
|
||||
<input class="btn btn-primary" style="font-size: min(3.5vw,16px)!important" autocomplete="off" class="btn btn-primary ml-auto" type="submit" onclick="disable(this)" value="Submit">
|
||||
</form>
|
||||
|
|
Loading…
Reference in New Issue