v1.2.0-beta/full hulu support and improved netflix

This commit is contained in:
Ayushya Amitabh
2020-05-20 19:50:09 -04:00
parent 2f082d24b5
commit c5dc4d756f
6 changed files with 42 additions and 11 deletions
+2
View File
@@ -17,6 +17,7 @@ export const PLAYER_SOURCE = {
HULU: 'https://www.hulu.',
DISNEY: 'https://www.disneyplus.',
YOUTUBE: 'https://www.youtube.',
HBONOW: 'https://play.hbonow.',
LOCAL: 'http://localhost',
};
@@ -27,6 +28,7 @@ export const getPlayerSource = () => {
if (HREF.startsWith(PLAYER_SOURCE.AMAZON)) return PLAYER_SOURCE.AMAZON;
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.LOCAL)) return PLAYER_SOURCE.LOCAL;
};