Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const data = fs.readFileSync('D:/Users/andre/Desktop/PinkBat/PinkDownloads.txt', 'UTF-8');
- const lines = data.split(/\r?\n/);
- var yesorno = 0;
- //link start!
- lines.forEach((line) => {
- if (output == line) {
- yesorno = 1
- }
- });
- if (yesorno == 0) {
- console.log(line);
- await downloadEpisode(playlist['uri'], tmpOutput, false)
- if (muxSubs && subtitles && subtitles.length) {
- info('Muxing...')
- await mux(subtitles, tmpOutput, output, debug)
- } else {
- info('Skipping mux...')
- }
- info(`Successfully downloaded "${output}"`)
- } else {
- await downloadEpisode(playlist['uri'], output)
- }
- return
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement