Closed eadmaster closed 8 years ago
Two things:
bestaudio
instead of m4a
.@route_api('listen')
def listen():
args = dict(request.args)
args.setdefault('format', 'bestaudio')
return redirect(url_for('.play', **args))
I've chosen mp4
because probably it is more compatible with older audio players that may lack opus support.
I've chosen mp4 because probably it is more compatible with older audio players that may lack opus support.
If a player only supports m4a
, you should specify the format
.
Allrighty, i just have to add &format=m4a
to my urls to get the audio track only...
get_result was also changed a bit...