forked from DebaucheryLibrarian/traxxx
Added stream ignore option.
This commit is contained in:
parent
2f4ac4e427
commit
87a29baf8b
|
@ -1,6 +1,7 @@
|
|||
<template>
|
||||
<div
|
||||
:class="{ active }"
|
||||
:title="title"
|
||||
class="icon"
|
||||
v-html="svg"
|
||||
/>
|
||||
|
|
|
@ -167,7 +167,13 @@
|
|||
v-if="release.studio"
|
||||
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
|
||||
:to="`/studio/${release.studio.slug}`"
|
||||
|
@ -471,13 +477,14 @@ export default {
|
|||
}
|
||||
|
||||
.row-label {
|
||||
display: block;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 0 0 .5rem 0;
|
||||
color: var(--shadow);
|
||||
font-weight: bold;
|
||||
|
||||
.icon {
|
||||
margin: 0 .5rem 0 0;
|
||||
margin: 0 .5rem;
|
||||
fill: var(--shadow);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -569,6 +569,7 @@ const releaseFragment = `
|
|||
name
|
||||
slug
|
||||
url
|
||||
showcased
|
||||
}
|
||||
movies: moviesScenesBySceneId {
|
||||
movie {
|
||||
|
|
|
@ -356,6 +356,7 @@ module.exports = {
|
|||
lazyQuality: 90,
|
||||
trailerQuality: [480, 540, 360, 720, 960, 1080, 320, 1440, 1600, 1920, 2160, 270, 240, 180],
|
||||
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
|
||||
},
|
||||
titleSlugLength: 50,
|
||||
|
|
|
@ -645,6 +645,10 @@ async function fetchSource(source, baseMedia) {
|
|||
logger.silly(`Fetching media from ${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) {
|
||||
const hasher = new blake2.Hash('blake2b', { digestLength: 24 });
|
||||
let hasherReady = true;
|
||||
|
|
Loading…
Reference in New Issue