This commit is contained in:
Izuco 2022-03-17 20:45:34 +01:00
parent 5386800473
commit 3271548987
No known key found for this signature in database
GPG key ID: E9CBE9E4EF3A1BFA
2 changed files with 6 additions and 6 deletions

View file

@ -1452,11 +1452,11 @@ export default class Crunchy implements ServiceClass {
for (const lang of langsData.languages) {
if (!Object.prototype.hasOwnProperty.call(ret, item.season_number))
ret[item.season_number] = {};
if (item.title.includes(`(${lang.name} Dub)`)) {
if (item.title.includes(`(${lang.name} Dub)`) || item.title.includes(`(${lang.name})`)) {
ret[item.season_number][lang.code] = item;
} else if (item.is_subbed && !item.is_dubbed && lang.code == 'jpn') {
ret[item.season_number][lang.code] = item;
} else if (item.is_dubbed && lang.code === 'eng' && !langsData.languages.some(a => item.title.includes(`(${a.name} Dub)`))) { // Dubbed with no more infos will be treated as eng dubs
} else if (item.is_dubbed && lang.code === 'eng' && !langsData.languages.some(a => item.title.includes(`(${a.name})`) || item.title.includes(`(${a.name} Dub)`))) { // Dubbed with no more infos will be treated as eng dubs
ret[item.season_number][lang.code] = item;
}
}

View file

@ -1,4 +1,4 @@
import { app, BrowserWindow, dialog, } from 'electron';
import { app, BrowserWindow, dialog, screen } from 'electron';
import path from 'path/posix';
import fs from 'fs';
import dotenv from 'dotenv';
@ -86,9 +86,9 @@ const createWindow = async () => {
(await import('../../../modules/module.cfg-loader')).ensureConfig();
// Create the browser window.
mainWindow = new BrowserWindow({
height: 600,
width: 800,
title: 'AniDL GUI BETA',
width: screen.getPrimaryDisplay().bounds.width,
height: screen.getPrimaryDisplay().bounds.height,
title: `AniDL GUI BETA ${json.version}`,
webPreferences: {
nodeIntegration: false,
preload: path.join(__dirname, 'preload.js')