Hotfix for bug that prevented large twitch videos from downloading

This commit is contained in:
Tzahi12345
2020-05-10 05:20:53 -04:00
parent 8bf3680b6f
commit c6553d99c6

View File

@@ -1892,7 +1892,7 @@ app.post('/api/tomp4', optionalJwt, async function(req, res) {
const is_playlist = url.includes('playlist');
let result_obj = null;
if (is_playlist || options.customQualityConfiguration || options.customArgs || options.selectedHeight)
if (is_playlist || options.customQualityConfiguration || options.customArgs || options.selectedHeight || url.includes('twitch'))
result_obj = await downloadFileByURL_exec(url, 'video', options, req.query.sessionID);
else
result_obj = await downloadFileByURL_normal(url, 'video', options, req.query.sessionID);