Change embed selector

This commit is contained in:
lonelil 2024-01-31 23:39:44 +08:00 committed by GitHub
parent fc052a9f08
commit cb44f663ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,7 +41,7 @@ const universalScraper = async (ctx: MovieScrapeContext | ShowScrapeContext) =>
baseUrl: nepuBase,
});
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.');