mirror of
https://github.com/goodtube4u/goodtube.git
synced 2025-11-22 10:16:11 +00:00
fix manifest url
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user