Skip to content

Commit

Permalink
Fix video_list not working
Browse files Browse the repository at this point in the history
  • Loading branch information
nitpum committed Jan 29, 2019
1 parent 1cdbeda commit ef6cc6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions MMM-EmbedYoutube.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* Magic Mirror
* Module: Embed Youtube
*
* v 1.3.2
* v 1.3.3
*
* By Nitipoom Unrrom (aka nitpum) https://nitpum.com
* MIT Licensed.
Expand Down Expand Up @@ -44,13 +44,13 @@ Module.register("MMM-EmbedYoutube", {
params += (this.config.controls)? "&controls=1":"&controls=0";
params += (this.config.disablekb)? "&disablekb=1":"";
params += (this.config.fs)? "":"&fs=0";
params += (videoList != "") ? videoList : "";
params += (videoList != "" && (typeof this.config.playlist === "undefined" || this.config.playlist == "")) ? videoList : "&playlist=" + this.config.video_id; // required playlist to loopable
params += (this.config.loop) ? "&loop=1" : "";
params += (this.config.modestbranding) ? "&modestbranding=1" : "";
params += (this.config.rel)? "&rel=1": "&rel=0";
params += (this.config.showinfo)? "&showinfo=1": "&showinfo=0";

var videoId = this.config.video_id +"?version=3&playlist=" + this.config.video_id;
var videoId = this.config.video_id +"?version=3";
if (typeof this.config.playlist !== "undefined" && this.config.playlist != "")
videoId = "playlist?list=" + this.config.playlist + "&";

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Embed Youtube Module for [MagicMirror](https://github.com/MichMich/MagicMirror)

v1.3.2
v1.3.3


## Using this module
Expand Down

0 comments on commit ef6cc6d

Please sign in to comment.