Skip to content

Commit

Permalink
Show Related Videos from the same channel the video is from.
Browse files Browse the repository at this point in the history
  • Loading branch information
ethib137 committed May 4, 2021
1 parent 26855e7 commit ad055c7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const SET_TIME_INTERVAL = 1000;
const SHOW_RELATED_VIDEOS_FROM_SAME_CHANNEL = 0;

const isEditMode = document.body.classList.contains('has-edit-mode-menu');

Expand Down Expand Up @@ -226,6 +227,7 @@ const youtubeProvider = {
playlist: configuration.loop
? parameters.videoId
: undefined,
rel: SHOW_RELATED_VIDEOS_FROM_SAME_CHANNEL,
start: !!initTime ? initTime : !parameters.start ? 0 : parameters.start,
},
videoId: parameters.videoId,
Expand Down

0 comments on commit ad055c7

Please sign in to comment.