ydl_opts = {
'format': 'm4a/bestaudio/best',
'outtmpl': tmp_file.name,
+ 'logger': app.logger,
}
with YoutubeDL(ydl_opts) as ydl:
ydl.download([yt_url])
<label for="file">Upload a song from my device</label><br/>
</div>
<div class="upload-form">
- <input type="radio" id="yt" name="upload-type" value="yt" onchange="selectUploadMethod()" hidden/>
- <label for="yt" hidden>Import a song from YouTube</label>
- <small>(Looking for the YouTube importer? Unfortunately it's currently broken - hopefully it will be back soon!)</small>
+ <input type="radio" id="yt" name="upload-type" value="yt" onchange="selectUploadMethod()"/>
+ <label for="yt">Import a song from YouTube</label>
</div>
<div class="upload-form" id="audio-file">
<label for="song-file">{% if song %}Replace {% endif %}Audio File</label><br>