Mount youtube videos properly

This commit is contained in:
Ben Adrian Sarmiento
2024-06-28 22:40:39 +02:00
parent c781a5fc7c
commit 6038380d38
5 changed files with 14 additions and 7 deletions

View File

@@ -117,7 +117,7 @@ func ServeDownloadsListForInfuse(torMgr *torrent.TorrentManager) ([]byte, error)
if !ok {
continue
}
buf.WriteString(dav.File(download.Filename, download.Filesize, download.Generated))
buf.WriteString(dav.File(filename, download.Filesize, download.Generated))
}
buf.WriteString("</d:multistatus>")

View File

@@ -128,7 +128,7 @@ func ServeDownloadsList(torMgr *torrent.TorrentManager) ([]byte, error) {
if !ok {
continue
}
buf.WriteString(dav.File(download.Filename, download.Filesize, download.Generated))
buf.WriteString(dav.File(filename, download.Filesize, download.Generated))
}
buf.WriteString("</d:multistatus>")
return buf.Bytes(), nil