mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-01-11 20:10:25 +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
|
||||
const addonStreams: Stream[] = [];
|
||||
const pluginStreams: Stream[] = [];
|
||||
const providerNames: string[] = [];
|
||||
let totalOriginalCount = 0;
|
||||
|
||||
filteredEntries.forEach(([addonId, { addonName, streams: providerStreams }]) => {
|
||||
|
|
@ -1326,18 +1325,12 @@ export const StreamsScreen = () => {
|
|||
if (isInstalledAddon) {
|
||||
// For ADDONS: Keep all streams in original order, NO filtering or sorting
|
||||
addonStreams.push(...providerStreams);
|
||||
if (!providerNames.includes(addonName)) {
|
||||
providerNames.push(addonName);
|
||||
}
|
||||
} else {
|
||||
// For PLUGINS: Apply quality filtering and sorting
|
||||
const filteredStreams = filterStreamsByQuality(providerStreams);
|
||||
|
||||
if (filteredStreams.length > 0) {
|
||||
pluginStreams.push(...filteredStreams);
|
||||
if (!providerNames.includes(addonName)) {
|
||||
providerNames.push(addonName);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
@ -1347,7 +1340,7 @@ export const StreamsScreen = () => {
|
|||
|
||||
if (isEmptyDueToQualityFilter) {
|
||||
return [{
|
||||
title: providerNames.join(', '),
|
||||
title: 'Available Streams',
|
||||
addonId: 'grouped-all',
|
||||
data: [{ isEmptyPlaceholder: true } as any],
|
||||
isEmptyDueToQualityFilter: true
|
||||
|
|
@ -1426,7 +1419,7 @@ export const StreamsScreen = () => {
|
|||
}
|
||||
|
||||
return [{
|
||||
title: providerNames.join(', '),
|
||||
title: 'Available Streams',
|
||||
addonId: 'grouped-all',
|
||||
data: combinedStreams,
|
||||
isEmptyDueToQualityFilter: false
|
||||
|
|
|
|||
Loading…
Reference in a new issue