From 09fa110790d94021099e663b47a4870c81585344 Mon Sep 17 00:00:00 2001 From: Androz2091 Date: Thu, 5 Mar 2020 17:02:11 +0100 Subject: [PATCH] feat(song): add rawVideo property --- docs/Song.html | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++ src/Song.js | 5 ++++ 2 files changed, 74 insertions(+) diff --git a/docs/Song.html b/docs/Song.html index a886aee..8ee826e 100644 --- a/docs/Song.html +++ b/docs/Song.html @@ -565,6 +565,75 @@ + + + + +
+

rawVideo :Video

+ + + + +
+

Raw video object from Simple Youtube API

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
Type:
+ + + + + +
diff --git a/src/Song.js b/src/Song.js index 84dd212..0bfb5c5 100644 --- a/src/Song.js +++ b/src/Song.js @@ -17,6 +17,11 @@ class Song { * @type {Number} */ this.duration = ((video.duration.hours*3600)+(video.duration.minutes*60)+(video.duration.seconds)) * 100; + /** + * Raw video object from Simple Youtube API + * @type {Video} + */ + this.rawVideo = video; /** * Raw informations about the song. * @type {Object}