mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-18 20:12:12 +00:00
* dev(NavigationEndpoint): add `/player` endpoint * dev: add AudioOnlyPlayability, BrowserMediaSession and MusicDownloadStateBadge * dev: allow endpoints to be overridden * dev: minor parser changes * dev(TrackInfo): add `<info>#getTab(title?)` * dev: allow `Music#getInfo()` to accept list items * dev: revert a few changes, I probably overcomplicated this. * dev: add tests * dev: add `TrackInfo#getUpNext()`, `TrackInfo#getRelated()` and `TrackInfo#getLyrics()` * docs: update API ref * fix(docs): formatting inconsistencies
16 lines
385 B
TypeScript
16 lines
385 B
TypeScript
import { YTNode } from '../helpers';
|
|
|
|
class MusicDownloadStateBadge extends YTNode {
|
|
static type = 'MusicDownloadStateBadge';
|
|
|
|
playlist_id: string;
|
|
supported_download_states: string[];
|
|
|
|
constructor(data: any) {
|
|
super();
|
|
this.playlist_id = data.playlistId;
|
|
this.supported_download_states = data.supportedDownloadStates;
|
|
}
|
|
}
|
|
|
|
export default MusicDownloadStateBadge; |