fix manifest url

This commit is contained in:
Quy P. TRAN
2024-07-16 17:27:01 +07:00
parent f5b9ce935a
commit 90473fede0
2 changed files with 8 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1,7 +1,7 @@
// ==UserScript==
// @name GoodTube
// @namespace http://tampermonkey.net/
// @version 4.530
// @version 4.531
// @description Loads Youtube videos from different sources. Also removes ads, shorts, etc.
// @author GoodTube
// @match https://*.youtube.com/*
@@ -1995,6 +1995,11 @@
manifestType = 'application/dash+xml';
}
// check if the manifestUrl starts with a slash, if so, add the api url
if (manifestUrl && manifestUrl[0] === '/') {
manifestUrl = goodTube_api_url + manifestUrl;
}
// Add the HLS or DASH source
goodTube_videojs_player.src({
src: manifestUrl,