[scraper] fix us country name

This commit is contained in:
TheBeastLT
2021-07-25 12:00:00 +02:00
parent d7d552ac07
commit bfdec616eb
2 changed files with 2 additions and 1 deletions

View File

@@ -167,7 +167,7 @@ function filterVideos(files) {
}
const videos = files.filter(file => isVideo(file.path));
const maxSize = Math.max(...videos.map(video => video.size));
const minSampleRatio = videos.length <= 3 ? 5 : 10;
const minSampleRatio = videos.length <= 3 ? 3 : 10;
const minAnimeExtraRatio = 5;
const minRedundantRatio = videos.length <= 3 ? 30 : Number.MAX_VALUE;
const isSample = video => video.path.match(/sample|bonus/i) && maxSize / parseInt(video.size) > minSampleRatio;

View File

@@ -338,6 +338,7 @@ function decomposeEpisodeTitleFiles(torrent, files, metadata) {
function getTimeZoneOffset(country) {
switch (country) {
case 'United States':
case 'USA':
return '-08:00';
default: