mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-31 14:58:05 +00:00
Merge pull request #305 from Alex-CD/main
Fix for exceeded call stack for yt_validate by @Alex-CD
This commit is contained in:
@@ -61,7 +61,7 @@ export function yt_validate(url: string): 'playlist' | 'video' | 'search' | fals
|
|||||||
else return 'search';
|
else return 'search';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!url_.match(playlist_pattern)) return yt_validate(url_.replace(/(\?|\&)list=[^&]+/, ''));
|
if (!url_.match(playlist_pattern)) return yt_validate(url_.replace(/(\?|\&)list=[^&]*/, ''));
|
||||||
else return 'playlist';
|
else return 'playlist';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user