Renamed stream exclude option.
This commit is contained in:
@@ -418,9 +418,9 @@ module.exports = {
|
||||
attempts: 2,
|
||||
fetchStreams: true,
|
||||
streamConcurrency: 2, // max number of video streams (m3u8 etc.) to fetch and process at once
|
||||
streamExcludeHostnames: [], // resource hogs
|
||||
flushOrphaned: true,
|
||||
flushWindow: 1000,
|
||||
excludeStreamHostnames: [], // resource hogs
|
||||
},
|
||||
titleSlugLength: 50,
|
||||
};
|
||||
|
||||
@@ -674,7 +674,7 @@ streamQueue.define('fetchStreamSource', async ({ source, tempFileTarget, hashStr
|
||||
|
||||
const { hostname } = new URL(source.stream);
|
||||
|
||||
if (config.media.excludeStreamHostnames.includes(hostname)) {
|
||||
if (config.media.streamExcludeHostnames.includes(hostname)) {
|
||||
throw new Error(`Stream source hostname ${hostname} is excluded by config`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user