chore: update Angular cache and TypeScript build info
This commit is contained in:
parent
80935ebd74
commit
3b4f3d52e0
2
.angular/cache/20.2.2/app/.tsbuildinfo
vendored
2
.angular/cache/20.2.2/app/.tsbuildinfo
vendored
File diff suppressed because one or more lines are too long
BIN
db/newtube.db
BIN
db/newtube.db
Binary file not shown.
@ -204,7 +204,8 @@ export class WatchShortComponent {
|
||||
case 'rumble':
|
||||
return (v as any).isShort === true;
|
||||
case 'odysee':
|
||||
return (v as any).isShort === true;
|
||||
// Odysee: use duration <= 60s as shorts indicator if native isShort unavailable
|
||||
return (v as any).isShort === true || ((v.duration ?? 0) <= 60);
|
||||
case 'peertube':
|
||||
return (v as any).isShort === true || (((v.duration ?? 0) <= 60) && ((v as any).isVertical === true));
|
||||
default:
|
||||
@ -215,8 +216,7 @@ export class WatchShortComponent {
|
||||
private isProviderUnsupportedForShorts(p: string | undefined | null): boolean {
|
||||
switch (p) {
|
||||
case 'rumble':
|
||||
case 'odysee':
|
||||
return true; // Only if provider exposes isShort; otherwise unsupported
|
||||
return true; // Rumble requires native isShort indicator
|
||||
case 'twitch':
|
||||
case 'youtube':
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user