Added stream ignore option.

This commit is contained in:
DebaucheryLibrarian 2023-06-18 02:12:13 +02:00
parent 2f4ac4e427
commit 87a29baf8b
5 changed files with 17 additions and 3 deletions

View File

@ -1,6 +1,7 @@
<template> <template>
<div <div
:class="{ active }" :class="{ active }"
:title="title"
class="icon" class="icon"
v-html="svg" v-html="svg"
/> />

View File

@ -167,7 +167,13 @@
v-if="release.studio" v-if="release.studio"
class="row-tidbit" class="row-tidbit"
> >
<span class="row-label">Studio</span> <span class="row-label">Studio
<Icon
v-if="release.studio.showcased === false"
icon="eye-blocked"
title="This studio does not appear on main pages"
/>
</span>
<RouterLink <RouterLink
:to="`/studio/${release.studio.slug}`" :to="`/studio/${release.studio.slug}`"
@ -471,13 +477,14 @@ export default {
} }
.row-label { .row-label {
display: block; display: flex;
align-items: center;
margin: 0 0 .5rem 0; margin: 0 0 .5rem 0;
color: var(--shadow); color: var(--shadow);
font-weight: bold; font-weight: bold;
.icon { .icon {
margin: 0 .5rem 0 0; margin: 0 .5rem;
fill: var(--shadow); fill: var(--shadow);
} }
} }

View File

@ -569,6 +569,7 @@ const releaseFragment = `
name name
slug slug
url url
showcased
} }
movies: moviesScenesBySceneId { movies: moviesScenesBySceneId {
movie { movie {

View File

@ -356,6 +356,7 @@ module.exports = {
lazyQuality: 90, lazyQuality: 90,
trailerQuality: [480, 540, 360, 720, 960, 1080, 320, 1440, 1600, 1920, 2160, 270, 240, 180], trailerQuality: [480, 540, 360, 720, 960, 1080, 320, 1440, 1600, 1920, 2160, 270, 240, 180],
limit: 25, // max number of photos per release limit: 25, // max number of photos per release
fetchStreams: true,
streamConcurrency: 2, // max number of video streams (m3u8 etc.) to fetch and process at once streamConcurrency: 2, // max number of video streams (m3u8 etc.) to fetch and process at once
}, },
titleSlugLength: 50, titleSlugLength: 50,

View File

@ -645,6 +645,10 @@ async function fetchSource(source, baseMedia) {
logger.silly(`Fetching media from ${source.src}`); logger.silly(`Fetching media from ${source.src}`);
logger.debug(`Memory usage before media fetch: ${process.memoryUsage.rss() / 1000000} MB (${source.src})`); logger.debug(`Memory usage before media fetch: ${process.memoryUsage.rss() / 1000000} MB (${source.src})`);
if (source.stream && !config.media.fetchStreams) {
throw new Error(`Stream fetching disabled, ignoring ${source.stream}`);
}
async function attempt(attempts = 1) { async function attempt(attempts = 1) {
const hasher = new blake2.Hash('blake2b', { digestLength: 24 }); const hasher = new blake2.Hash('blake2b', { digestLength: 24 });
let hasherReady = true; let hasherReady = true;