mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-03-22 18:47:44 +00:00
better error handling for slower addons
This commit is contained in:
parent
5458dfbdd8
commit
c7198f919d
1 changed files with 5 additions and 1 deletions
|
|
@ -246,7 +246,11 @@ export async function getMetaDetails(
|
|||
preferredAddonId?: string
|
||||
): Promise<MetaDetails | null> {
|
||||
try {
|
||||
if (!(await ctx.isValidContentId(type, id))) {
|
||||
// isValidContentId gate removed — addonCanServeId() handles per-addon ID prefix
|
||||
// filtering correctly. The gate caused false negatives when type was non-standard
|
||||
// or prefixes weren't indexed yet, silently returning null before any addon was tried.
|
||||
const lowerId = (id || '').toLowerCase();
|
||||
if (!id || lowerId === 'null' || lowerId === 'undefined' || lowerId === 'moviebox' || lowerId === 'torbox') {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue