Skip to content

Commit a99aecf

Browse files
committed
fixato Fireplace Vibes
1 parent 88ec019 commit a99aecf

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

overrides.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
"url": "https://www.bloomberg.com/media-manifest/streams/phoenix-us.m3u8"
3030
},
3131
"IT2200001FW": {
32-
"type": "iframe",
33-
"url": "https://www.livereacting.com/tools/hls-player-embed?autoplay=1&url={URL}"
32+
"license": "clearkey"
3433
}
3534
}
3635
}

sources/samsungtvplus.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default async function fetchChannels(channels) {
2323
for (const channel of channels) {
2424
await new Promise(r => setTimeout(r, 100));
2525
log("adding", { source: "Samsung TV Plus", channel: channel.name, padding: spacerPadding });
26-
if (!overrides["samsungtvplus"][channel.id] || (overrides["samsungtvplus"][channel.id] && overrides["samsungtvplus"][channel.id].url.includes("{URL}"))) {
26+
if (!overrides["samsungtvplus"][channel.id] || (overrides["samsungtvplus"][channel.id] && !overrides["samsungtvplus"][channel.id].url)) {
2727
if (!blacklist.includes(channel.id)) {
2828
if (!channel.license_url) {
2929
const url = await fetch(`https://jmp2.uk/stvp-${channel.id}`, { redirect: "manual" }).then(response => response.headers.get("Location"));
@@ -42,18 +42,22 @@ export default async function fetchChannels(channels) {
4242
});
4343
log("added", { source: "Samsung TV Plus", channel: channel.name, padding: spacerPadding });
4444
} else {
45-
newChannelsList.push({
45+
let channelValue = {
4646
lcn: channel.chno,
4747
logo: "https://tvpdotcomdynamiclogopeu.samsungcloud.tv/resize?url=" + channel.logo + "&h=250",
4848
name: channel.name,
49-
type: overrides["samsungtvplus"][channel.id].type,
50-
url: overrides["samsungtvplus"][channel.id].url.replaceAll("{URL}", encodeURIComponent(url)),
49+
type: "hls",
50+
url: url,
5151
epg: {
5252
source: "samsungtvplus",
5353
id: channel.id
5454
}
55-
});
56-
log("added", { source: "Samsung TV Plus", channel: channel.name, padding: spacerPadding, reason: "Prefisso" });
55+
};
56+
if (overrides["samsungtvplus"][channel.id].type) channelValue.type = overrides["samsungtvplus"][channel.id].type;
57+
if (overrides["samsungtvplus"][channel.id].url) channelValue.url = overrides["samsungtvplus"][channel.id].url;
58+
if (overrides["samsungtvplus"][channel.id].license) channelValue.license = overrides["samsungtvplus"][channel.id].license;
59+
newChannelsList.push(channelValue);
60+
log("added", { source: "Samsung TV Plus", channel: channel.name, padding: spacerPadding, reason: "con proprietà aggiuntive" });
5761
};
5862
} else {
5963
log("not-added", { source: "Samsung TV Plus", channel: channel.name, padding: spacerPadding, reason: "CORS - Pluto TV" });

0 commit comments

Comments
 (0)