Unit3Dup 0.8.12__py3-none-any.whl → 0.8.14__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- common/settings.py +1 -1
- common/trackers/itt.py +0 -1
- common/trackers/trackers.py +2 -0
- common/utility.py +1 -0
- unit3dup/__main__.py +1 -1
- unit3dup/media.py +7 -1
- unit3dup/media_manager/ContentManager.py +4 -0
- {unit3dup-0.8.12.dist-info → unit3dup-0.8.14.dist-info}/METADATA +1 -1
- {unit3dup-0.8.12.dist-info → unit3dup-0.8.14.dist-info}/RECORD +13 -13
- {unit3dup-0.8.12.dist-info → unit3dup-0.8.14.dist-info}/WHEEL +1 -1
- {unit3dup-0.8.12.dist-info → unit3dup-0.8.14.dist-info}/entry_points.txt +0 -0
- {unit3dup-0.8.12.dist-info → unit3dup-0.8.14.dist-info}/licenses/LICENSE +0 -0
- {unit3dup-0.8.12.dist-info → unit3dup-0.8.14.dist-info}/top_level.txt +0 -0
common/settings.py
CHANGED
|
@@ -13,7 +13,7 @@ from common.utility import ManageTitles
|
|
|
13
13
|
from common import trackers
|
|
14
14
|
|
|
15
15
|
config_file = "Unit3Dbot.json"
|
|
16
|
-
version = "0.8.
|
|
16
|
+
version = "0.8.14"
|
|
17
17
|
|
|
18
18
|
if os.name == "nt":
|
|
19
19
|
PW_TORRENT_ARCHIVE_PATH: Path = Path(os.getenv("LOCALAPPDATA", ".")) / "Unit3Dup_config" / "pw_torrent_archive"
|
common/trackers/itt.py
CHANGED
common/trackers/trackers.py
CHANGED
|
@@ -30,6 +30,8 @@ class TRACKData:
|
|
|
30
30
|
def filter_type(self, file_name: str) -> int:
|
|
31
31
|
|
|
32
32
|
file_name = ManageTitles.clean(file_name)
|
|
33
|
+
# >Clean the releaser sign
|
|
34
|
+
file_name = file_name.replace("-", " ")
|
|
33
35
|
word_list = file_name.lower().strip().split(" ")
|
|
34
36
|
|
|
35
37
|
# Caso 1: Cerca un TYPE_ID nel nome del file
|
common/utility.py
CHANGED
unit3dup/__main__.py
CHANGED
|
@@ -119,7 +119,7 @@ def main():
|
|
|
119
119
|
|
|
120
120
|
# Watcher
|
|
121
121
|
if cli.args.watcher:
|
|
122
|
-
bot = Bot(path=
|
|
122
|
+
bot = Bot(path='', cli=cli.args, mode="auto", trackers_name_list=tracker_name_list,
|
|
123
123
|
torrent_archive_path=tracker_archive)
|
|
124
124
|
|
|
125
125
|
bot.watcher(duration=config.user_preferences.WATCHER_INTERVAL, watcher_path=config.user_preferences.WATCHER_PATH,
|
unit3dup/media.py
CHANGED
|
@@ -14,7 +14,7 @@ class Media:
|
|
|
14
14
|
self.folder: str = folder
|
|
15
15
|
self.subfolder: str = subfolder
|
|
16
16
|
self.title: str = os.path.basename(os.path.join(self.folder, self.subfolder))
|
|
17
|
-
self.
|
|
17
|
+
self._not_title_lang = False
|
|
18
18
|
|
|
19
19
|
# // Media
|
|
20
20
|
self._crew_list: list[str] | None = None
|
|
@@ -53,6 +53,10 @@ class Media:
|
|
|
53
53
|
self._igdb_id: int | None = None
|
|
54
54
|
self._generate_title: str | None = None
|
|
55
55
|
|
|
56
|
+
@property
|
|
57
|
+
def no_title_lang(self) -> bool:
|
|
58
|
+
return self._not_title_lang
|
|
59
|
+
|
|
56
60
|
@property
|
|
57
61
|
def title_sanitized(self)-> str:
|
|
58
62
|
if not self._title_sanitized:
|
|
@@ -279,6 +283,8 @@ class Media:
|
|
|
279
283
|
if converted_code := ManageTitles.convert_iso(code):
|
|
280
284
|
self._audio_languages = converted_code
|
|
281
285
|
return self._audio_languages
|
|
286
|
+
# no language found in title
|
|
287
|
+
self._not_title_lang = True
|
|
282
288
|
# get from the audio track
|
|
283
289
|
self._audio_languages = self.languages
|
|
284
290
|
return self._audio_languages
|
|
@@ -51,6 +51,10 @@ class ContentManager:
|
|
|
51
51
|
content = self.get_data(media=media)
|
|
52
52
|
if content:
|
|
53
53
|
contents.append(content)
|
|
54
|
+
|
|
55
|
+
# Add language to the title from the media file when it's absent
|
|
56
|
+
if not media._not_title_lang:
|
|
57
|
+
media.display_name = " ".join([media.display_name] + media.audio_languages)
|
|
54
58
|
return contents
|
|
55
59
|
|
|
56
60
|
def get_data(self, media: Media) -> Media | bool:
|
|
@@ -8,10 +8,10 @@ common/extractor.py,sha256=WKZwt2kQfKO2VJ1rtwE_j6Zl84zICnowZq_Ql16wmRc,4564
|
|
|
8
8
|
common/frames.py,sha256=p_jsaXII5tZTVt5ymu-w1hk2c_UMeOn3PZeuVR-wXWY,7973
|
|
9
9
|
common/mediainfo.py,sha256=U2r1jJejBsV8GP3iPk4O8_NkHO5RQ9Kkh2bKwVNUBmg,6229
|
|
10
10
|
common/mediainfo_string.py,sha256=8vuWlF2bqWRKpDbn81bV2fPA7hbl7RwOnxN2i4E3zNE,3958
|
|
11
|
-
common/settings.py,sha256=
|
|
11
|
+
common/settings.py,sha256=9UCaHT1ZC0c3U0vwOxxpNNkNpyMo93nXmopXdEkn3hg,32782
|
|
12
12
|
common/title.py,sha256=nFainfUBTYW9ML4Y-CB9ZFD_Es-OZXcAMPUo6D09u3k,3793
|
|
13
13
|
common/torrent_clients.py,sha256=NOIpYtLG_bA19HwcH9ahGFmGNtRkoMO6nAjma-JzDfs,12040
|
|
14
|
-
common/utility.py,sha256=
|
|
14
|
+
common/utility.py,sha256=r5MuFrafAzSJbe7DLx8uMKSG1qQi8k6oA43Y_qJhH7A,8647
|
|
15
15
|
common/external_services/__init__.py,sha256=rU7HPEcZ7WQFD8eqDzuye2xHPBjxXPwPqpt7IT08mkM,178
|
|
16
16
|
common/external_services/imageHost.py,sha256=BpdtGZUtZHl4QJwFKyJs_BI6z4gHI4wu_Beu-fnfkDw,9588
|
|
17
17
|
common/external_services/imdb.py,sha256=AIo8CO-SfP_uNocDeNY08hpvCAnuotoI7hYUytDiMQA,579
|
|
@@ -68,23 +68,23 @@ common/external_services/trailers/api.py,sha256=BT_qArt1bEEGOntFYRcqEvZYH7aPE77u
|
|
|
68
68
|
common/external_services/trailers/response.py,sha256=WX_wiG-ukEVLora5tmnMTv-aW6GzbSVgQMchVgGn_l0,774
|
|
69
69
|
common/trackers/__init__.py,sha256=-vPkc4fbIG_0Jt0yS3aeYGAwYbYgpmP0i8i6LRJmrOk,164
|
|
70
70
|
common/trackers/data.py,sha256=V3gxTvLJeXnFSDreEewg0Teulu-tPkcQ8Plrm6AVQww,873
|
|
71
|
-
common/trackers/itt.py,sha256=
|
|
71
|
+
common/trackers/itt.py,sha256=cB0D5ZpMbGgEOAKloET9dS_fAFclhzwPPwRFt-LStX0,4019
|
|
72
72
|
common/trackers/sis.py,sha256=AahQH-FxAqS19vgEFylOJzeY0_SHr27_Tibs7lraSdI,3480
|
|
73
|
-
common/trackers/trackers.py,sha256=
|
|
73
|
+
common/trackers/trackers.py,sha256=sts5l_x27V2Op1Y6Au5FoQujspSkWMPWyEYMfcmVYLA,1467
|
|
74
74
|
unit3dup/__init__.py,sha256=seXz3lHgdrUBiOnhC6Je47npS66UZ0c62VFuoH3z5Mk,78
|
|
75
|
-
unit3dup/__main__.py,sha256=
|
|
75
|
+
unit3dup/__main__.py,sha256=UIQ0s9deamfOSS7-O65ojeuN9Cx6zpPGD5H1HXlfrMM,9256
|
|
76
76
|
unit3dup/automode.py,sha256=HIJrE8qEHp7DZQbppNtB_8jHY3Q94d6frp7BXnZuEac,4387
|
|
77
77
|
unit3dup/bot.py,sha256=TM8Htnq-udJDnN-7TwaPP6CiwWX0wb_Nud9p8ej8GRo,9250
|
|
78
78
|
unit3dup/duplicate.py,sha256=Ji1Y9vVLmhFQ5rgkUU-s7uXl-jC8akAa8OiQOfjFa9g,10428
|
|
79
79
|
unit3dup/exceptions.py,sha256=DhlcbbZEuvEYk5VSZTnle8oRg5I8Pq6Y6fxXTdOOOfo,4078
|
|
80
|
-
unit3dup/media.py,sha256=
|
|
80
|
+
unit3dup/media.py,sha256=5suH2XeekB80zNoIAM8PERZBO746JDlpcIvHz-4jY9E,13888
|
|
81
81
|
unit3dup/pvtDocu.py,sha256=ZLMaal2fn6ZcFPLtET0LTmYEPjhJmLitEjkICHrm9CQ,4594
|
|
82
82
|
unit3dup/pvtTorrent.py,sha256=cItlsCpcUJL23iXQHy0YzrrvV3JSl54UlBgm8_UROAs,2559
|
|
83
83
|
unit3dup/pvtTracker.py,sha256=U4xMmhiqMNZaIOgEi3pnP-3H75e7Gagndh8GDFEP7Cs,18647
|
|
84
84
|
unit3dup/pvtVideo.py,sha256=w_T6wEeGrsHkuR3KObJc4mNpJgg9hhHh_9LoxFlaqjM,3900
|
|
85
85
|
unit3dup/torrent.py,sha256=JEcrVG8dlYASBvL51GldU1ouKlfieKccKX2KZ_4UKBY,19883
|
|
86
86
|
unit3dup/upload.py,sha256=gjB8u2oP2FPXZ8t9SMIzkUEr52hKRy_zSR8OWJlW2xc,6075
|
|
87
|
-
unit3dup/media_manager/ContentManager.py,sha256=
|
|
87
|
+
unit3dup/media_manager/ContentManager.py,sha256=68k8sqJgL1a2ir_rpQhkB1ntePp01IpblJYcQCdev2Y,7358
|
|
88
88
|
unit3dup/media_manager/DocuManager.py,sha256=oFt7jlxj-gIUty9PADBQV5a24bsv3yhjKhwI6niOhf4,3116
|
|
89
89
|
unit3dup/media_manager/GameManager.py,sha256=9EmPeNrirOwaVOj-vkLr29Xo7daIA4ssqrrt0WyMl30,4090
|
|
90
90
|
unit3dup/media_manager/MediaInfoManager.py,sha256=0NO9dgD7seJM67B3DRnwvRIdoy7bfquBUox-PnHInK8,1081
|
|
@@ -95,11 +95,11 @@ unit3dup/media_manager/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
|
|
|
95
95
|
unit3dup/media_manager/common.py,sha256=hG2zOw7ocQfZyI1dhusbehxswpIrZK7T2aAbCNwULqA,10138
|
|
96
96
|
unit3dup/web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
97
97
|
unit3dup/web/main.py,sha256=BzjKDgAjKZMnoQwx7nDDbs_64kCrFO1VYpbHmsGiFVc,1267
|
|
98
|
-
unit3dup-0.8.
|
|
98
|
+
unit3dup-0.8.14.dist-info/licenses/LICENSE,sha256=GNAZDLhU0xz8QPbIyHAOYlVnQYDvKWk2N9fZJMhqaG8,1090
|
|
99
99
|
view/__init__.py,sha256=XIzb6rl58HmYPnksD73cYMFF88dn6FHa3u7bOHFbChk,81
|
|
100
100
|
view/custom_console.py,sha256=OITmkEoQH9N_uE5ElPaSdc8XvaLzE9wcwTbOHtcMvrI,5629
|
|
101
|
-
unit3dup-0.8.
|
|
102
|
-
unit3dup-0.8.
|
|
103
|
-
unit3dup-0.8.
|
|
104
|
-
unit3dup-0.8.
|
|
105
|
-
unit3dup-0.8.
|
|
101
|
+
unit3dup-0.8.14.dist-info/METADATA,sha256=Zqj0fjP9zuTWL1BDAJy6dxRciIYke0m3GP7z2lcArRg,4864
|
|
102
|
+
unit3dup-0.8.14.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
103
|
+
unit3dup-0.8.14.dist-info/entry_points.txt,sha256=fxXSyI6-r6jy9_v-C5ZHm03q1aC3tE9EvCQZxC1NQnI,52
|
|
104
|
+
unit3dup-0.8.14.dist-info/top_level.txt,sha256=19NVMnQNkJxBUKebRNaYCRs56A5CO4U1L67GMQCPiLU,21
|
|
105
|
+
unit3dup-0.8.14.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|