Change embed selector

This commit is contained in:
lonelil
2024-01-31 23:39:44 +08:00
committed by GitHub
parent fc052a9f08
commit cb44f663ca

View File

@@ -41,7 +41,7 @@ const universalScraper = async (ctx: MovieScrapeContext | ShowScrapeContext) =>
baseUrl: nepuBase, baseUrl: nepuBase,
}); });
const videoPage$ = load(videoPage); const videoPage$ = load(videoPage);
const embedId = videoPage$('a.btn-service').attr('data-embed'); const embedId = videoPage$('a[data-embed]').attr('data-embed');
if (!embedId) throw new NotFoundError('No embed found.'); if (!embedId) throw new NotFoundError('No embed found.');