Unit3Dup 0.8.13__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 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.13"
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"
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=cli.args.watcher, cli=cli.args, mode="auto", trackers_name_list=tracker_name_list,
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._is_tv: bool = False
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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Unit3Dup
3
- Version: 0.8.13
3
+ Version: 0.8.14
4
4
  Summary: An uploader for the Unit3D torrent tracker
5
5
  Author: Parzival
6
6
  License-Expression: MIT
@@ -8,7 +8,7 @@ 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=Y18iSTmFJg-OPSD5Z7wicGJpiWJ_l5p4R6siyE3DLl0,32782
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
14
  common/utility.py,sha256=r5MuFrafAzSJbe7DLx8uMKSG1qQi8k6oA43Y_qJhH7A,8647
@@ -72,19 +72,19 @@ common/trackers/itt.py,sha256=cB0D5ZpMbGgEOAKloET9dS_fAFclhzwPPwRFt-LStX0,4019
72
72
  common/trackers/sis.py,sha256=AahQH-FxAqS19vgEFylOJzeY0_SHr27_Tibs7lraSdI,3480
73
73
  common/trackers/trackers.py,sha256=sts5l_x27V2Op1Y6Au5FoQujspSkWMPWyEYMfcmVYLA,1467
74
74
  unit3dup/__init__.py,sha256=seXz3lHgdrUBiOnhC6Je47npS66UZ0c62VFuoH3z5Mk,78
75
- unit3dup/__main__.py,sha256=CDazL8WFGv_Y6y875s3Ej-0QK5MPytbTJm_vsPHWB-A,9270
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=9WxBBE9051W8mKbClCABPw3ngSfdCFgzXynz2uUa5Ao,13710
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=ReZ1Fg3d2QXHVKnCv6VvYXcAcaDyejA4YDvruqf41qQ,7142
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.13.dist-info/licenses/LICENSE,sha256=GNAZDLhU0xz8QPbIyHAOYlVnQYDvKWk2N9fZJMhqaG8,1090
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.13.dist-info/METADATA,sha256=m33LV7uVhDsgmFLX62hagVe35rDjIFuJQgxQHqeTANQ,4864
102
- unit3dup-0.8.13.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
103
- unit3dup-0.8.13.dist-info/entry_points.txt,sha256=fxXSyI6-r6jy9_v-C5ZHm03q1aC3tE9EvCQZxC1NQnI,52
104
- unit3dup-0.8.13.dist-info/top_level.txt,sha256=19NVMnQNkJxBUKebRNaYCRs56A5CO4U1L67GMQCPiLU,21
105
- unit3dup-0.8.13.dist-info/RECORD,,
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,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.8.0)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5