mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-01 05:04:33 +00:00
Streamscreen UI changes
This commit is contained in:
parent
c710a173f2
commit
5a6d5a66b0
1 changed files with 2 additions and 9 deletions
|
|
@ -1314,7 +1314,6 @@ export const StreamsScreen = () => {
|
||||||
// Separate addon and plugin streams - only apply quality filtering/sorting to plugins
|
// Separate addon and plugin streams - only apply quality filtering/sorting to plugins
|
||||||
const addonStreams: Stream[] = [];
|
const addonStreams: Stream[] = [];
|
||||||
const pluginStreams: Stream[] = [];
|
const pluginStreams: Stream[] = [];
|
||||||
const providerNames: string[] = [];
|
|
||||||
let totalOriginalCount = 0;
|
let totalOriginalCount = 0;
|
||||||
|
|
||||||
filteredEntries.forEach(([addonId, { addonName, streams: providerStreams }]) => {
|
filteredEntries.forEach(([addonId, { addonName, streams: providerStreams }]) => {
|
||||||
|
|
@ -1326,18 +1325,12 @@ export const StreamsScreen = () => {
|
||||||
if (isInstalledAddon) {
|
if (isInstalledAddon) {
|
||||||
// For ADDONS: Keep all streams in original order, NO filtering or sorting
|
// For ADDONS: Keep all streams in original order, NO filtering or sorting
|
||||||
addonStreams.push(...providerStreams);
|
addonStreams.push(...providerStreams);
|
||||||
if (!providerNames.includes(addonName)) {
|
|
||||||
providerNames.push(addonName);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
// For PLUGINS: Apply quality filtering and sorting
|
// For PLUGINS: Apply quality filtering and sorting
|
||||||
const filteredStreams = filterStreamsByQuality(providerStreams);
|
const filteredStreams = filterStreamsByQuality(providerStreams);
|
||||||
|
|
||||||
if (filteredStreams.length > 0) {
|
if (filteredStreams.length > 0) {
|
||||||
pluginStreams.push(...filteredStreams);
|
pluginStreams.push(...filteredStreams);
|
||||||
if (!providerNames.includes(addonName)) {
|
|
||||||
providerNames.push(addonName);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -1347,7 +1340,7 @@ export const StreamsScreen = () => {
|
||||||
|
|
||||||
if (isEmptyDueToQualityFilter) {
|
if (isEmptyDueToQualityFilter) {
|
||||||
return [{
|
return [{
|
||||||
title: providerNames.join(', '),
|
title: 'Available Streams',
|
||||||
addonId: 'grouped-all',
|
addonId: 'grouped-all',
|
||||||
data: [{ isEmptyPlaceholder: true } as any],
|
data: [{ isEmptyPlaceholder: true } as any],
|
||||||
isEmptyDueToQualityFilter: true
|
isEmptyDueToQualityFilter: true
|
||||||
|
|
@ -1426,7 +1419,7 @@ export const StreamsScreen = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
return [{
|
return [{
|
||||||
title: providerNames.join(', '),
|
title: 'Available Streams',
|
||||||
addonId: 'grouped-all',
|
addonId: 'grouped-all',
|
||||||
data: combinedStreams,
|
data: combinedStreams,
|
||||||
isEmptyDueToQualityFilter: false
|
isEmptyDueToQualityFilter: false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue