Remove patch for dashjs on fallback

This commit is contained in:
WardPearce
2024-10-01 13:49:20 +13:00
parent 76a372bd98
commit 835359601e
@@ -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' }));
}