Skip to content

Commit

Permalink
chore: lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Duell10111 committed Jan 15, 2025
1 parent e4a71b4 commit 1b28052
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/parser/classes/MacroMarkersListView.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { YTNode } from '../helpers.js';
import { type RawNode } from '../index.js';
import NavigationEndpoint from "./NavigationEndpoint.js";
import NavigationEndpoint from './NavigationEndpoint.js';

export default class MacroMarkersListView extends YTNode {
static type = 'MacroMarkersListView';
Expand Down
2 changes: 1 addition & 1 deletion src/parser/classes/QrCode.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { YTNode } from '../helpers.js';
import { type RawNode } from '../index.js';
import Thumbnail from "./misc/Thumbnail.js";
import Thumbnail from './misc/Thumbnail.js';

export default class QrCode extends YTNode {
static type = 'QrCode';
Expand Down
2 changes: 0 additions & 2 deletions src/parser/yttv/Library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ export default class Library {
this.#actions = actions;
this.#page = Parser.parseResponse<IBrowseResponse>(response.data);

const page = this.#page;

const tvSurfaceContent = this.#page.contents_memo?.getType(TvSurfaceContent)?.first();

if (tvSurfaceContent) {
Expand Down
2 changes: 0 additions & 2 deletions src/parser/yttv/MyYoutubeFeed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ export default class MyYoutubeFeed {
constructor(response: ApiResponse, actions: Actions) {
this.#actions = actions;
this.#page = Parser.parseResponse<IBrowseResponse>(response.data);

const page = this.#page;

const navSection = this.#page.contents_memo?.getType(TvSecondaryNavSection).first();

Expand Down
2 changes: 0 additions & 2 deletions src/parser/yttv/Playlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ export default class Playlist {
constructor(response: ApiResponse, actions: Actions) {
this.#actions = actions;
this.#page = Parser.parseResponse<IBrowseResponse>(response.data);

const page = this.#page;

this.#continuation = null;

Expand Down
2 changes: 0 additions & 2 deletions src/parser/yttv/PlaylistsFeed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ export default class PlaylistsFeed {
this.#actions = actions;
this.#page = Parser.parseResponse<IBrowseResponse>(response.data);

const page = this.#page;

const grid = this.#page.contents_memo?.getType(Grid)?.first();
if (grid) {
this.contents = grid.contents;
Expand Down
2 changes: 0 additions & 2 deletions src/parser/yttv/SubscriptionsFeed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ export default class SubscriptionsFeed {
this.#actions = actions;
this.#page = Parser.parseResponse<IBrowseResponse>(response.data);

const page = this.#page;

const grid = this.#page.contents_memo?.getType(Tab)?.first()?.content?.as(TvSurfaceContent)?.content?.as(Grid);
if (grid) {
this.contents = grid.contents;
Expand Down
2 changes: 1 addition & 1 deletion src/parser/yttv/VideoInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default class VideoInfo extends MediaInfo {
constructor(data: [ApiResponse, ApiResponse?], actions: Actions, cpn: string) {
super(data, actions, cpn);

const [ info, next ] = this.page;
const next = this.page[1];

if (this.streaming_data) {
const default_audio_track = this.streaming_data.adaptive_formats.find((format) => format.audio_track?.audio_is_default);
Expand Down

0 comments on commit 1b28052

Please sign in to comment.