cursorpro commited on
Commit
714bc4f
·
verified ·
1 Parent(s): e4e5770

Upload 43 files

Browse files
src/lib/helpers/youtubePlayerHandling.ts CHANGED
@@ -85,7 +85,7 @@ export const youtubePlayerParsing = async ({
85
  if (
86
  videoData.streamingData.formats[index]
87
  .signatureCipher !==
88
- undefined
89
  ) {
90
  delete videoData.streamingData.formats[index]
91
  .signatureCipher;
@@ -95,7 +95,7 @@ export const youtubePlayerParsing = async ({
95
  "alr=yes",
96
  )
97
  ) {
98
- videoData.streamingData.formats[index].url.replace(
99
  "alr=yes",
100
  "alr=no",
101
  );
@@ -116,7 +116,7 @@ export const youtubePlayerParsing = async ({
116
  if (
117
  videoData.streamingData.adaptiveFormats[index]
118
  .signatureCipher !==
119
- undefined
120
  ) {
121
  delete videoData.streamingData.adaptiveFormats[index]
122
  .signatureCipher;
@@ -125,7 +125,7 @@ export const youtubePlayerParsing = async ({
125
  videoData.streamingData.adaptiveFormats[index].url
126
  .includes("alr=yes")
127
  ) {
128
- videoData.streamingData.adaptiveFormats[index].url
129
  .replace("alr=yes", "alr=no");
130
  } else {
131
  videoData.streamingData.adaptiveFormats[index].url +=
 
85
  if (
86
  videoData.streamingData.formats[index]
87
  .signatureCipher !==
88
+ undefined
89
  ) {
90
  delete videoData.streamingData.formats[index]
91
  .signatureCipher;
 
95
  "alr=yes",
96
  )
97
  ) {
98
+ videoData.streamingData.formats[index].url = videoData.streamingData.formats[index].url.replace(
99
  "alr=yes",
100
  "alr=no",
101
  );
 
116
  if (
117
  videoData.streamingData.adaptiveFormats[index]
118
  .signatureCipher !==
119
+ undefined
120
  ) {
121
  delete videoData.streamingData.adaptiveFormats[index]
122
  .signatureCipher;
 
125
  videoData.streamingData.adaptiveFormats[index].url
126
  .includes("alr=yes")
127
  ) {
128
+ videoData.streamingData.adaptiveFormats[index].url = videoData.streamingData.adaptiveFormats[index].url
129
  .replace("alr=yes", "alr=no");
130
  } else {
131
  videoData.streamingData.adaptiveFormats[index].url +=