Remove patch for dashjs on fallback
This commit is contained in:
@@ -68,8 +68,6 @@ export async function patchYoutubeJs(videoId: string): Promise<VideoPlay> {
|
||||
tokens = poTokenCache;
|
||||
}
|
||||
|
||||
console.log(tokens);
|
||||
|
||||
const youtube = await Innertube.create({
|
||||
visitor_data: tokens.visitor_data,
|
||||
po_token: tokens.po_token,
|
||||
@@ -94,10 +92,6 @@ export async function patchYoutubeJs(videoId: string): Promise<VideoPlay> {
|
||||
|
||||
if (!video.basic_info.is_live) {
|
||||
let manifest = await video.toDash();
|
||||
|
||||
// Hack to fix video not displaying.
|
||||
// Thanks to absidue & Andrews54757
|
||||
manifest = manifest.replaceAll('<EssentialProperty', '<SupplementalProperty');
|
||||
dashUri = URL.createObjectURL(new Blob([manifest], { type: 'application/dash+xml;charset=utf8' }));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user