v1.2.0-beta/full hulu support and improved netflix
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user