Fixed compat with iTunes

This commit is contained in:
Agate 2020-08-11 13:07:39 +02:00
parent c70135c9e3
commit c96fd5d539
6 changed files with 95 additions and 35 deletions

View file

@ -830,7 +830,10 @@ def rss_serialize_item(upload):
{
# we enforce MP3, since it's the only format supported everywhere
"url": federation_utils.full_url(
upload.get_listen_url(to="mp3", download=False)
reverse(
"api:v1:stream-detail", kwargs={"uuid": str(upload.track.uuid)}
)
+ ".mp3"
),
"length": upload.size or 0,
"type": "audio/mpeg",