better-ani-scraped 1.2.6 → 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scrapers/animesama.js +2 -1
package/package.json
CHANGED
package/scrapers/animesama.js
CHANGED
|
@@ -126,6 +126,7 @@ export async function getSeasons(animeUrl, language = "vostfr") {
|
|
|
126
126
|
|
|
127
127
|
|
|
128
128
|
export async function getEpisodeTitles(animeUrl) {
|
|
129
|
+
console.log('Executable path:', puppeteer.executablePath());
|
|
129
130
|
let browser;
|
|
130
131
|
try {
|
|
131
132
|
browser = await puppeteer.launch({
|
|
@@ -170,7 +171,7 @@ export async function getEmbed(animeUrl, hostPriority = ["vidmoly"]) {
|
|
|
170
171
|
? animeUrl + scriptTag
|
|
171
172
|
: animeUrl + "/" + scriptTag;
|
|
172
173
|
|
|
173
|
-
const episodesJs = await axios
|
|
174
|
+
const episodesJs = await axios
|
|
174
175
|
.get(scriptUrl, { headers: getHeaders(animeUrl) })
|
|
175
176
|
.then((r) => r.data);
|
|
176
177
|
|