push
This commit is contained in:
+3
-3
@@ -816,12 +816,13 @@
|
||||
}
|
||||
|
||||
playButton.addEventListener('click', () => {
|
||||
if (state.episode == null) {
|
||||
if (type === 'tv' && state.episode == null) {
|
||||
if (state.episodes.length) playEpisode(state.episodes[0].episode_number);
|
||||
return;
|
||||
}
|
||||
if (state.loadedKey === keyFor() && state.streams.length) {
|
||||
openPlayer();
|
||||
video.play().catch(() => {});
|
||||
return;
|
||||
}
|
||||
openPlayer();
|
||||
@@ -844,8 +845,7 @@
|
||||
renderHero(details);
|
||||
|
||||
if (type !== 'tv') {
|
||||
openPlayer();
|
||||
loadStreams();
|
||||
setPlayLabel();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user