v1.3.3-beta/HBO support

This commit is contained in:
Ayushya Amitabh
2020-06-05 00:42:47 -04:00
parent be3c74d37d
commit 7170568dbe
7 changed files with 56 additions and 7 deletions
+2
View File
@@ -17,6 +17,7 @@ export const PLAYER_SOURCE = {
DISNEY: 'https://www.disneyplus.',
YOUTUBE: 'https://www.youtube.',
HBONOW: 'https://play.hbonow.',
HBOMAX: 'https://play.hbomax.',
LOCAL: 'http://localhost',
};
@@ -28,6 +29,7 @@ export const getPlayerSource = () => {
if (HREF.startsWith(PLAYER_SOURCE.DISNEY)) return PLAYER_SOURCE.DISNEY;
if (HREF.startsWith(PLAYER_SOURCE.YOUTUBE)) return PLAYER_SOURCE.YOUTUBE;
if (HREF.startsWith(PLAYER_SOURCE.HBONOW)) return PLAYER_SOURCE.HBONOW;
if (HREF.startsWith(PLAYER_SOURCE.HBOMAX)) return PLAYER_SOURCE.HBOMAX;
if (HREF.startsWith(PLAYER_SOURCE.LOCAL)) return PLAYER_SOURCE.LOCAL;
};