1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00

Allow HEAD method for ytdl

This commit is contained in:
Maksym Pavlenko
2017-10-20 23:32:18 -07:00
parent 9895ae88bc
commit dbba3f21be

View File

@@ -27,7 +27,7 @@ url_formats = {
}
@app.route('/download/<feed_id>/<video_id>', methods=['GET'])
@app.route('/download/<feed_id>/<video_id>', methods=['GET', 'HEAD'])
async def download(req, feed_id, video_id):
if not feed_id:
raise InvalidUsage('Invalid feed id')