Browse Source

🐛 Fix not downloading last episode

master
KaKi87 1 month ago
parent
commit
56d285bf6d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      webtoons-dl.js

+ 1
- 1
webtoons-dl.js View File

@@ -8,7 +8,7 @@ const comicEpisodeCount = parseInt(comicRes.match(/data-episode-no="([0-9]+)"/)[

try { await Deno.mkdir('./' + comicTitle); } catch(_){}

for(let comicEpisodeNumber = 1; comicEpisodeNumber < comicEpisodeCount; comicEpisodeNumber++){
for(let comicEpisodeNumber = 1; comicEpisodeNumber <= comicEpisodeCount; comicEpisodeNumber++){
console.log(`Downloading episode ${comicEpisodeNumber}/${comicEpisodeCount}`);

const episodeReq = await fetch(`https://www.webtoons.com/en/*/*/*/viewer?title_no=${comicId}&episode_no=${comicEpisodeNumber}`);


Loading…
Cancel
Save