feat(song): add rawVideo property

This commit is contained in:
Androz2091 2020-03-05 17:02:11 +01:00
parent 5a7d6808d6
commit 09fa110790
2 changed files with 74 additions and 0 deletions

View file

@ -565,6 +565,75 @@
</div>
<div class="section-members">
<h4 class="name" id="rawVideo"><span class="type-signature"></span>rawVideo<span class="type-signature"> :Video</span></h4>
<div class="description">
<p>Raw video object from Simple Youtube API</p>
</div>
<dl class="details">
</dl>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type"><code>Video</code></span>
</li>
</ul>
</div>

View file

@ -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}