mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-15 07:57:09 +03:00
Improve chapter generation performance by reusing elements
Also ensure large segments don't break chapter bar
This commit is contained in:
@@ -808,7 +808,7 @@ async function sponsorsLookup(id: string, keepOldSubmissions = true) {
|
||||
}
|
||||
|
||||
// Add existing chapters if we can
|
||||
if (utils.chaptersEnabled()) {
|
||||
if (Config.config.renderAsChapters) {
|
||||
GenericUtils.wait(() => getExistingChapters(sponsorVideoID, video.duration),
|
||||
5000, 100, (c) => c?.length > 0).then((chapters) => {
|
||||
if (chapters?.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user