v1.3.3-beta/Fix styling, loading, time back sync
This commit is contained in:
+16
-16
@@ -11,26 +11,26 @@ export const PLAYER_STATUS = {
|
||||
};
|
||||
|
||||
export const PLAYER_SOURCE = {
|
||||
NETFLIX: 'https://www.netflix.',
|
||||
AMAZON: 'https://www.amazon.',
|
||||
HULU: 'https://www.hulu.',
|
||||
DISNEY: 'https://www.disneyplus.',
|
||||
YOUTUBE: 'https://www.youtube.',
|
||||
HBONOW: 'https://play.hbonow.',
|
||||
HBOMAX: 'https://play.hbomax.',
|
||||
LOCAL: 'http://localhost',
|
||||
NETFLIX: 'netflix.',
|
||||
AMAZON: 'amazon.',
|
||||
HULU: 'hulu.',
|
||||
DISNEY: 'disneyplus.',
|
||||
YOUTUBE: 'youtube.',
|
||||
HBONOW: 'hbonow.',
|
||||
HBOMAX: 'hbomax.',
|
||||
LOCAL: 'localhost',
|
||||
};
|
||||
|
||||
export const getPlayerSource = () => {
|
||||
const HREF = window.location.href;
|
||||
if (HREF.startsWith(PLAYER_SOURCE.NETFLIX)) return PLAYER_SOURCE.NETFLIX;
|
||||
if (HREF.startsWith(PLAYER_SOURCE.HULU)) return PLAYER_SOURCE.HULU;
|
||||
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.HBOMAX)) return PLAYER_SOURCE.HBOMAX;
|
||||
if (HREF.startsWith(PLAYER_SOURCE.LOCAL)) return PLAYER_SOURCE.LOCAL;
|
||||
if (HREF.includes(PLAYER_SOURCE.NETFLIX)) return PLAYER_SOURCE.NETFLIX;
|
||||
if (HREF.includes(PLAYER_SOURCE.HULU)) return PLAYER_SOURCE.HULU;
|
||||
if (HREF.includes(PLAYER_SOURCE.AMAZON)) return PLAYER_SOURCE.AMAZON;
|
||||
if (HREF.includes(PLAYER_SOURCE.DISNEY)) return PLAYER_SOURCE.DISNEY;
|
||||
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.LOCAL)) return PLAYER_SOURCE.LOCAL;
|
||||
};
|
||||
|
||||
export const LocalData = () => {
|
||||
|
||||
Reference in New Issue
Block a user