Added URL to properties in music object (#280)

* Added URL endpoints to licensed music object

* Added URL info to properties in music object

* Added URL to properties in music object

* Added URL support for the Video Music properties with typings

* Added URL to music properties in YoutubeVideo

* Fixed Typings

* Added footnote to music property
This commit is contained in:
AtariTom
2022-04-08 11:20:06 -04:00
committed by GitHub
parent c40b432ee3
commit ff0129d9db
2 changed files with 17 additions and 4 deletions

View File

@@ -1,14 +1,24 @@
import { YouTubeChannel } from './Channel';
import { YouTubeThumbnail } from './Thumbnail';
/**
* Licensed music in the video
*
* The property names change depending on your region's language.
*/
interface VideoMusic {
song?: string;
artist?: string;
song?: string | MusicEntry;
artist?: string | MusicEntry;
album?: string;
writers?: string;
license?: string;
}
interface MusicEntry {
text?: string;
url?: string;
}
interface VideoOptions {
/**
* YouTube Video ID
@@ -80,6 +90,8 @@ interface VideoOptions {
discretionAdvised?: boolean;
/**
* Gives info about music content in that video.
*
* The property names of VideoMusic change depending on your region's language.
*/
music?: VideoMusic[];
/**