mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-17 02:31:28 +03:00
Minor code cleanup
This commit is contained in:
@@ -244,7 +244,7 @@ async function getVideosForSub(sub, user_uid = null) {
|
|||||||
if (err.stderr.includes('This video is unavailable') || err.stderr.includes('Private video')) {
|
if (err.stderr.includes('This video is unavailable') || err.stderr.includes('Private video')) {
|
||||||
logger.info('An error was encountered with at least one video, backup method will be used.')
|
logger.info('An error was encountered with at least one video, backup method will be used.')
|
||||||
try {
|
try {
|
||||||
const outputs = err.stdout.split(/\r\n|\r|\n/); // .map(jsonStr => JSON.parse(jsonStr));
|
const outputs = err.stdout.split(/\r\n|\r|\n/);
|
||||||
const files_to_download = await handleOutputJSON(outputs, sub, user_uid);
|
const files_to_download = await handleOutputJSON(outputs, sub, user_uid);
|
||||||
resolve(files_to_download);
|
resolve(files_to_download);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user