Skip to content

Commit

Permalink
Merge pull request #38 from GregoryGost/develop
Browse files Browse the repository at this point in the history
Develop to Main v3.1.3
  • Loading branch information
GregoryGost authored Oct 4, 2024
2 parents 1e44571 + ef17d0c commit fd963ec
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
10 changes: 10 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gregory-gost/transmission-torrentdone",
"version": "3.1.2",
"version": "3.1.3",
"description": "Torrent done script for transmission-daemon service",
"license": "GPL-3",
"keywords": [
Expand Down
3 changes: 3 additions & 0 deletions src/class/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { fileURLToPath, pathToFileURL } from 'node:url';
import { dirname, normalize, join } from 'node:path';
import { existsSync } from 'node:fs';
import { cpus } from 'node:os';
import nconf from 'nconf';

/**
Expand Down Expand Up @@ -130,6 +131,8 @@ class Config {
private _maxWhileCount = 10;

constructor(root_path?: string) {
process.env.UV_THREADPOOL_SIZE = cpus().length.toString();
//
this._rootPath = root_path ?? Config.getRootDir(this.maxWhileCount);
this.init();
this._trLogin = this.getParam('login');
Expand Down
2 changes: 1 addition & 1 deletion src/class/torrentdone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class Torrentdone {
private readonly regexFilm_Base: RegExp = /[.(_\-\s](19|20)[0-9]{2}[.)_\-\s]/i;
private readonly regexNameSeason: RegExp = /(.+)\.?([sS]([0-9]{2}))/i;
private readonly regexNameYear: RegExp = /^(.+)\s{0,1}([.(_\-\s]((19|20)[0-9]{2})[.)_\-\s]).+$/i;
private readonly regexThreeD = /[.(_\-\s](3D)[.(_\-\s]?/i;
private readonly regexThreeD: RegExp = /[.(_\-\s](3D)[.(_\-\s]?/i;
// Releaser Lostfilm
private readonly regexSerial_Lostfilm: RegExp = /(s\d{2}e\d{2}).+(lostfilm)/i;
private readonly regexFilm_Lostfilm: RegExp = /^(.+).+(1080|720).+(lostfilm).+$/i;
Expand Down

0 comments on commit fd963ec

Please sign in to comment.