v1.5.0/peacock support

This commit is contained in:
2020-07-20 23:17:26 -04:00
parent ef18d37209
commit 133d9b26a8
6 changed files with 169 additions and 2 deletions
+2
View File
@@ -36,6 +36,7 @@ export const PLAYER_SOURCE = {
YOUTUBE: 'youtube.',
HBONOW: 'hbonow.',
HBOMAX: 'hbomax.',
PEACOCK: 'peacocktv.',
LOCAL: 'localhost',
};
@@ -48,6 +49,7 @@ export const getPlayerSource = () => {
if (HREF.includes(PLAYER_SOURCE.YOUTUBE)) return PLAYER_SOURCE.YOUTUBE;
if (HREF.includes(PLAYER_SOURCE.HBONOW)) return PLAYER_SOURCE.HBONOW;
if (HREF.includes(PLAYER_SOURCE.HBOMAX)) return PLAYER_SOURCE.HBOMAX;
if (HREF.includes(PLAYER_SOURCE.PEACOCK)) return PLAYER_SOURCE.PEACOCK;
if (HREF.includes(PLAYER_SOURCE.LOCAL)) return PLAYER_SOURCE.LOCAL;
};