mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Fix LBRY playback.
This commit is contained in:
parent
ce3b7aebc6
commit
c84d6d333d
1 changed files with 2 additions and 8 deletions
|
@ -273,7 +273,7 @@ export default {
|
|||
|
||||
const lbry = this.getPreferenceBoolean("disableLBRY", false)
|
||||
? null
|
||||
: this.video.videoStreams.filter(stream => stream.quality === "LBRY")[0];
|
||||
: this.video.videoStreams.filter(stream => stream.quality.indexOf("LBRY") !== -1)[0];
|
||||
|
||||
var uri;
|
||||
var mime;
|
||||
|
@ -310,13 +310,7 @@ export default {
|
|||
url.pathname = proxyPath + url.pathname;
|
||||
uri = url.toString();
|
||||
}
|
||||
const contentType = await fetch(uri, {
|
||||
method: "HEAD",
|
||||
}).then(response => {
|
||||
uri = response.url;
|
||||
return response.headers.get("Content-Type");
|
||||
});
|
||||
mime = contentType;
|
||||
mime = lbry.mimeType;
|
||||
} else if (this.video.hls) {
|
||||
uri = this.video.hls;
|
||||
mime = "application/x-mpegURL";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue