v1.7.11/add paramount and imdb tb

This commit is contained in:
2021-04-28 13:56:36 -04:00
parent b5dec1aefb
commit 4b438e65fe
26 changed files with 75 additions and 25 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "watch-party-admin",
"version": "1.7.10",
"version": "1.7.11",
"private": true,
"devDependencies": {
"@ant-design/icons": "^4.2.2",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "watch-party-crx",
"version": "1.7.10",
"version": "1.7.11",
"private": true,
"dependencies": {},
"scripts": {
+1 -1
View File
@@ -26,7 +26,7 @@ try {
console.info("CHROME ENV");
}
const APP_VERSION = "1.7.10";
const APP_VERSION = "1.7.11";
const firebaseConfig = {
apiKey: "AIzaSyCJLuYpzXLDRmu2ttzFuSGmYcpFxqToWFU",
+6 -2
View File
@@ -1,7 +1,7 @@
{
"name": "Watch Party",
"short_name": "WP",
"version": "1.7.10",
"version": "1.7.11",
"description": "Watch streamed content together.",
"background": {
"page": "background.html"
@@ -47,6 +47,8 @@
"https://*.airtelxstream.in/*",
"https://*.vimeo.com/*",
"https://*.dailymotion.com/*",
"https://*.imdb.com/tv/*",
"https://*.paramountplus.com/*",
"https://api.giphy.com/*",
"https://*.voxeet.com/*"
],
@@ -89,7 +91,9 @@
"https://*.hotstar.com/*",
"https://*.airtelxstream.in/*",
"https://*.vimeo.com/*",
"https://*.dailymotion.com/*"
"https://*.dailymotion.com/*",
"https://*.imdb.com/tv/*",
"https://*.paramountplus.com/*"
],
"run_at": "document_idle",
"js": ["/static/js/content.js"],
+4
View File
@@ -43,6 +43,8 @@ export const PLAYER_SOURCE = {
AIRTEL: "airtelxstream.",
VIMEO: "vimeo.",
DAILYMOTION: "dailymotion.",
IMDB: "imdb.",
PARAMOUNTPLUS: "paramountplus.",
LOCAL: "localhost",
};
@@ -52,6 +54,7 @@ export const getPlayerSource = () => {
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.PRIMEVIDEO)) return PLAYER_SOURCE.AMAZON;
if (HREF.includes(PLAYER_SOURCE.IMDB)) 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;
@@ -71,6 +74,7 @@ export const getPlayerSource = () => {
if (HREF.includes(PLAYER_SOURCE.VIMEO)) return PLAYER_SOURCE.VIMEO;
if (HREF.includes(PLAYER_SOURCE.DAILYMOTION))
return PLAYER_SOURCE.DAILYMOTION;
if (HREF.includes(PLAYER_SOURCE.PARAMOUNTPLUS)) return PLAYER_SOURCE.PARAMOUNTPLUS;
if (HREF.includes(PLAYER_SOURCE.LOCAL)) return PLAYER_SOURCE.LOCAL;
};
+1 -1
View File
@@ -32,7 +32,7 @@ import {
} from "./Api";
import Tutorial from "./Tutorial";
const APP_VERSION = "1.7.10";
const APP_VERSION = "1.7.11";
const darkTheme = createMuiTheme({
palette: {
+16 -16
View File
@@ -1036,8 +1036,8 @@ export default class Chat extends Component {
title={
onCall
? usingVideo
? "Stop Video"
: "Start Video"
? "Video is On"
: "Video is Off"
: "Join Video Call"
}
>
@@ -1047,9 +1047,9 @@ export default class Chat extends Component {
? () => this.handleVideo()
: () => this.handlePhoneCall(true)
}
color={usingVideo ? "primary" : "secondary"}
color={((onCall && usingVideo) || !onCall) ? "secondary" : "primary"}
>
{usingVideo ? <VideocamOffRounded /> : <VideocamRounded />}
{((onCall && usingVideo) || !onCall)? <VideocamRounded /> : <VideocamOffRounded />}
</IconButton>
</Tooltip>
)}
@@ -1071,18 +1071,7 @@ export default class Chat extends Component {
</Tooltip>
)}
{!gif && !newMessage && onCall && !muted ? (
<Tooltip title="Mute Mic" placement="top">
<IconButton
className="icon-button"
disabled={callActionPending}
onClick={this.handleMute}
color="primary"
>
<MicOff />
</IconButton>
</Tooltip>
) : !gif && !newMessage && onCall && muted ? (
<Tooltip title="Unmute Mic" placement="top">
<Tooltip title="Mic is On" placement="top">
<IconButton
className="icon-button"
disabled={callActionPending}
@@ -1092,6 +1081,17 @@ export default class Chat extends Component {
<MicOn />
</IconButton>
</Tooltip>
) : !gif && !newMessage && onCall && muted ? (
<Tooltip title="Mic is Off" placement="top">
<IconButton
className="icon-button"
disabled={callActionPending}
onClick={this.handleMute}
color="primary"
>
<MicOff />
</IconButton>
</Tooltip>
) : null}
<TextField
color="secondary"
+2
View File
@@ -136,6 +136,7 @@ export default class VideoListener {
case PLAYER_SOURCE.AIRTEL:
case PLAYER_SOURCE.VIMEO:
case PLAYER_SOURCE.DAILYMOTION:
case PLAYER_SOURCE.PARAMOUNTPLUS:
this.video.element.currentTime = serverPlayer.time;
await this.timeout(500);
break;
@@ -569,6 +570,7 @@ export default class VideoListener {
case PLAYER_SOURCE.AIRTEL:
case PLAYER_SOURCE.VIMEO:
case PLAYER_SOURCE.DAILYMOTION:
case PLAYER_SOURCE.PARAMOUNTPLUS:
setInterval(() => {
var newVideoElement = document.querySelector(vS);
if (
+11
View File
@@ -365,6 +365,17 @@ body.visible.hbo
body.visible.hbo > div.default > div:nth-child(2) > div > div > div > div {
width: 100%;
}
/* IMDB FIXES */
body.visible.imdb-tv {
max-width: var(--body-width) !important;
}
body.visible.imdb-tv .freedive-video-container .freedive-video-modal.modal__open {
max-width: var(--body-width);
}
/* PARAMOUNT FIXES */
body.visible.paramountplus header {
max-width: var(--body-width);
}
#party-loading {
position: absolute;
+6
View File
@@ -57,6 +57,9 @@ switch (getPlayerSource()) {
document.body.classList.add("hulu");
break;
case PLAYER_SOURCE.AMAZON:
if (window.location.href.includes(PLAYER_SOURCE.IMDB)) {
document.body.classList.add("imdb-tv");
}
document.body.classList.add("amazon-prime");
break;
case PLAYER_SOURCE.DISNEY:
@@ -152,6 +155,9 @@ switch (getPlayerSource()) {
document.body.classList.add("dailymotion");
document.querySelector("html").style.fontSize = "10px";
break;
case PLAYER_SOURCE.PARAMOUNTPLUS:
document.body.classList.add("paramountplus");
break;
case PLAYER_SOURCE.LOCAL:
document.body.classList.add("local");
break;
Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "watch-party-api",
"version": "1.7.10",
"version": "1.7.11",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "watch-party-api",
"version": "1.7.10",
"version": "1.7.11",
"description": "Cloud Functions for Watch Party",
"scripts": {
"lint": "eslint .",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "watch-party",
"version": "1.7.10",
"version": "1.7.11",
"description": "Watch Party",
"scripts": {
"start": "firebase emulators:start",
+7
View File
@@ -252,6 +252,13 @@ COPIED, EDITED, OR REPRODUCED WITHOUT PERMISSION.
Dailymotion logo is a trademark and intellectual property of
Dailymotion.
</p>
<p data-font="sans" class="body">
IMDB TV logo is a trademark and intellectual property of
IMDb.com, Inc.
</p>
<p data-font="sans" class="body">
Paramount + logo is a trademark and intellectual property of ViacomCBS.
</p>
<p data-font="sans" class="body">
Google Chrome logo is a trademark and intellectual property of
Google, Inc.
+2
View File
@@ -244,6 +244,8 @@ COPIED, EDITED, OR REPRODUCED WITHOUT PERMISSION.
<div id="airtel" class="support-card"></div>
<div id="vimeo" class="support-card"></div>
<div id="dailymotion" class="support-card"></div>
<div id="imdb" class="support-card"></div>
<div id="paramount" class="support-card"></div>
</div>
<div id="features" class="features bubble left">
<div class="text-section">
Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

+6
View File
@@ -69,3 +69,9 @@ COPIED, EDITED, OR REPRODUCED WITHOUT PERMISSION.
.card-grid .support-card#airtel {
background-image: url('/media/logos/AirtelWhite.webp');
}
.card-grid .support-card#imdb {
background-image: url('/media/logos/ImdbTvWhite.webp');
}
.card-grid .support-card#paramount {
background-image: url('/media/logos/ParamountPlusWhite.webp');
}
+6
View File
@@ -74,3 +74,9 @@ AMITABH, AND MAY NOT BE COPIED, EDITED, OR REPRODUCED WITHOUT PERMISSION.
.card-grid .support-card#dailymotion {
background-image: url('/media/logos/Dailymotion.webp');
}
.card-grid .support-card#imdb {
background-image: url('/media/logos/ImdbTvColor.webp');
}
.card-grid .support-card#paramount {
background-image: url('/media/logos/ParamountPlusColor.webp');
}
+2
View File
@@ -303,6 +303,8 @@ COPIED, EDITED, OR REPRODUCED WITHOUT PERMISSION.
id="dailymotion"
class="support-card"
></a>
<a href="https://www.imdb.com/tv/" id="imdb" class="support-card"></a>
<a href="https://www.paramountplus.com" id="paramount" class="support-card"></a>
</div>
<div id="tips" class="text-section">
<div class="info">