Skip to content

Commit

Permalink
refactor: Refactoring code
Browse files Browse the repository at this point in the history
  • Loading branch information
pixkk committed Aug 23, 2024
1 parent 9ed505f commit 471889e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion NUXT/components/CompactRenderers/compactVideoRenderer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default {
// console.warn(this.video)
this.video.thumbnailOverlays.forEach((thumbnail) => {
if (thumbnail.thumbnailOverlayTimeStatusRenderer) {
console.warn(thumbnail.thumbnailOverlayTimeStatusRenderer.text.runs[0].text)
// console.warn(thumbnail.thumbnailOverlayTimeStatusRenderer.text.runs[0].text)
text = thumbnail.thumbnailOverlayTimeStatusRenderer.text.runs[0].text;
}
});
Expand Down
2 changes: 1 addition & 1 deletion NUXT/components/Player/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ export default {
this.aud.addEventListener("loadeddata", this.loadedAudioEvent);
this.hls = this.video.hls;console.warn(this.hls);
this.hls = this.video.hls;
if (this.hls) {
this.hlsStream = new Hls();
this.hlsStream.loadSource(this.hls);
Expand Down
2 changes: 1 addition & 1 deletion NUXT/components/gridRenderers/gridVideoRenderer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default {
// console.warn(this.video)
this.video.thumbnailOverlays.forEach((thumbnail) => {
if (thumbnail.thumbnailOverlayTimeStatusRenderer) {
console.warn(thumbnail.thumbnailOverlayTimeStatusRenderer.text.runs[0].text)
// console.warn(thumbnail.thumbnailOverlayTimeStatusRenderer.text.runs[0].text)
text = thumbnail.thumbnailOverlayTimeStatusRenderer.text.runs[0].text;
}
});
Expand Down
2 changes: 1 addition & 1 deletion NUXT/components/gridRenderers/videoWithContextRenderer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default {
// console.warn(this.video)
this.video.thumbnailOverlays.forEach((thumbnail) => {
if (thumbnail.thumbnailOverlayTimeStatusRenderer) {
console.warn(thumbnail.thumbnailOverlayTimeStatusRenderer.text.runs[0].text)
// console.warn(thumbnail.thumbnailOverlayTimeStatusRenderer.text.runs[0].text)
text = thumbnail.thumbnailOverlayTimeStatusRenderer.text.runs[0].text;
}
});
Expand Down
4 changes: 2 additions & 2 deletions NUXT/plugins/innertube.js
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ class Innertube {
// ?.results;
let resolutions = responseInfo.streamingData;
let hls = responseInfo.streamingData.hlsManifestUrl;
console.warn(hls)
// console.warn(hls)
const columnUI =
responseNext.contents.singleColumnWatchNextResults.results.results;
const vidMetadata = columnUI.contents.find(
Expand Down Expand Up @@ -766,7 +766,7 @@ class Innertube {
} catch (e) {}
// Deciphering urls
resolutions = resolutions.formats ? resolutions.formats.concat(resolutions.adaptiveFormats) : resolutions.adaptiveFormats;
console.warn(resolutions);
// console.warn(resolutions);
resolutions.forEach((source) => {
if (source.isLive) {
isLive = true;
Expand Down

0 comments on commit 471889e

Please sign in to comment.