no limit on stream types for following
This commit is contained in:
parent
0214c80544
commit
26b1c901c8
2 changed files with 8 additions and 3 deletions
|
@ -159,6 +159,12 @@ function ClaimTilesDiscover(props: Props) {
|
||||||
new Set(mutedUris.concat(blockedUris).map((uri) => splitBySeparator(uri)[1]))
|
new Set(mutedUris.concat(blockedUris).map((uri) => splitBySeparator(uri)[1]))
|
||||||
);
|
);
|
||||||
const liveUris = [];
|
const liveUris = [];
|
||||||
|
let streamTypesParam;
|
||||||
|
if (streamTypes) {
|
||||||
|
streamTypesParam = streamTypes;
|
||||||
|
} else if (SIMPLE_SITE && !hasNoSource && streamTypes !== null) {
|
||||||
|
streamTypesParam = [CS.FILE_VIDEO, CS.FILE_AUDIO];
|
||||||
|
}
|
||||||
|
|
||||||
const [prevUris, setPrevUris] = React.useState([]);
|
const [prevUris, setPrevUris] = React.useState([]);
|
||||||
|
|
||||||
|
@ -192,8 +198,7 @@ function ClaimTilesDiscover(props: Props) {
|
||||||
channel_ids: channelIds || [],
|
channel_ids: channelIds || [],
|
||||||
not_channel_ids: mutedAndBlockedChannelIds,
|
not_channel_ids: mutedAndBlockedChannelIds,
|
||||||
order_by: orderBy || ['trending_group', 'trending_mixed'],
|
order_by: orderBy || ['trending_group', 'trending_mixed'],
|
||||||
stream_types:
|
stream_types: streamTypesParam,
|
||||||
streamTypes === null ? undefined : SIMPLE_SITE && !hasNoSource ? [CS.FILE_VIDEO, CS.FILE_AUDIO] : undefined,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if (ENABLE_NO_SOURCE_CLAIMS && hasNoSource) {
|
if (ENABLE_NO_SOURCE_CLAIMS && hasNoSource) {
|
||||||
|
|
|
@ -286,7 +286,7 @@ export function GetLinksData(
|
||||||
? `>${Math.floor(moment().subtract(9, 'months').startOf('week').unix())}`
|
? `>${Math.floor(moment().subtract(9, 'months').startOf('week').unix())}`
|
||||||
: `>${Math.floor(moment().subtract(1, 'year').startOf('week').unix())}`,
|
: `>${Math.floor(moment().subtract(1, 'year').startOf('week').unix())}`,
|
||||||
pageSize: getPageSize(subscribedChannels.length > 3 ? (subscribedChannels.length > 6 ? 16 : 8) : 4),
|
pageSize: getPageSize(subscribedChannels.length > 3 ? (subscribedChannels.length > 6 ? 16 : 8) : 4),
|
||||||
streamTypes: CS.FILE_TYPES,
|
streamTypes: null,
|
||||||
channelIds: subscribedChannels.map((subscription: Subscription) => {
|
channelIds: subscribedChannels.map((subscription: Subscription) => {
|
||||||
const { channelClaimId } = parseURI(subscription.uri);
|
const { channelClaimId } = parseURI(subscription.uri);
|
||||||
return channelClaimId;
|
return channelClaimId;
|
||||||
|
|
Loading…
Add table
Reference in a new issue