-
-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor!: Deprecate
account#getAnalytics
, account#getTimeWatched
…
… and `account#getAnalytics` Due to recent changes by YouTube, these actions can no longer be executed using web based OAuth tokens nor cookies.
- Loading branch information
Showing
10 changed files
with
54 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
import { Parser } from '../index.js'; | ||
import AccountItem from './AccountItem.js'; | ||
import AccountItemSectionHeader from './AccountItemSectionHeader.js'; | ||
import { YTNode, observe, type ObservedArray } from '../helpers.js'; | ||
import { YTNode, type ObservedArray } from '../helpers.js'; | ||
import type { RawNode } from '../index.js'; | ||
import CompactLink from './CompactLink.js'; | ||
|
||
export default class AccountItemSection extends YTNode { | ||
static type = 'AccountItemSection'; | ||
|
||
contents: ObservedArray<AccountItem>; | ||
header: AccountItemSectionHeader | null; | ||
public contents: ObservedArray<AccountItem | CompactLink>; | ||
public header: AccountItemSectionHeader | null; | ||
|
||
constructor(data: RawNode) { | ||
super(); | ||
this.contents = observe<AccountItem>(data.contents.map((ac: RawNode) => new AccountItem(ac.accountItem))); | ||
this.contents = Parser.parseArray(data.contents, [ AccountItem, CompactLink ]); | ||
this.header = Parser.parseItem(data.header, AccountItemSectionHeader); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Parser } from '../../index.js'; | ||
import { YTNode } from '../../helpers.js'; | ||
import type { RawNode } from '../../index.js'; | ||
import MultiPageMenu from '../menus/MultiPageMenu.js'; | ||
|
||
export default class GetMultiPageMenuAction extends YTNode { | ||
static type = 'GetMultiPageMenuAction'; | ||
|
||
public menu: MultiPageMenu | null; | ||
|
||
constructor(data: RawNode) { | ||
super(); | ||
this.menu = Parser.parseItem(data.menu, MultiPageMenu); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters