Unit3Dup 0.8.19__py3-none-any.whl → 0.8.20__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/external_services/imageHost.py +20 -0
- common/settings.py +8 -2
- common/utility.py +4 -1
- {unit3dup-0.8.19.dist-info → unit3dup-0.8.20.dist-info}/METADATA +24 -2
- {unit3dup-0.8.19.dist-info → unit3dup-0.8.20.dist-info}/RECORD +9 -9
- {unit3dup-0.8.19.dist-info → unit3dup-0.8.20.dist-info}/WHEEL +0 -0
- {unit3dup-0.8.19.dist-info → unit3dup-0.8.20.dist-info}/entry_points.txt +0 -0
- {unit3dup-0.8.19.dist-info → unit3dup-0.8.20.dist-info}/licenses/LICENSE +0 -0
- {unit3dup-0.8.19.dist-info → unit3dup-0.8.20.dist-info}/top_level.txt +0 -0
|
@@ -179,6 +179,21 @@ class PassIMA(ImageUploader):
|
|
|
179
179
|
return 'source'
|
|
180
180
|
|
|
181
181
|
|
|
182
|
+
class ImaRide(ImageUploader):
|
|
183
|
+
|
|
184
|
+
priority= config_settings.user_preferences.IMARIDE_PRIORITY
|
|
185
|
+
def get_endpoint(self) -> str:
|
|
186
|
+
return "https://www.imageride.net/api/1/upload"
|
|
187
|
+
|
|
188
|
+
def get_data(self) -> dict:
|
|
189
|
+
return {
|
|
190
|
+
"key": self.key,
|
|
191
|
+
"title": self.image_name,
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
def get_field_name(self) -> str:
|
|
195
|
+
return 'source'
|
|
196
|
+
|
|
182
197
|
class ImageUploaderFallback:
|
|
183
198
|
def __init__(self, uploader):
|
|
184
199
|
self.uploader = uploader
|
|
@@ -231,6 +246,9 @@ class ImageUploaderFallback:
|
|
|
231
246
|
if uploader_host == "PassIMA":
|
|
232
247
|
return response['image']['url']
|
|
233
248
|
|
|
249
|
+
if uploader_host == "ImaRide":
|
|
250
|
+
return response['image']['url']
|
|
251
|
+
|
|
234
252
|
return None
|
|
235
253
|
|
|
236
254
|
class Build:
|
|
@@ -251,6 +269,7 @@ class Build:
|
|
|
251
269
|
self.PTSCREENS_KEY= config_settings.tracker_config.PTSCREENS_KEY
|
|
252
270
|
self.IMGFI_KEY = config_settings.tracker_config.IMGFI_KEY
|
|
253
271
|
self.PASSIMA_KEY = config_settings.tracker_config.PASSIMA_KEY
|
|
272
|
+
self.IMARIDE_KEY = config_settings.tracker_config.IMARIDE_KEY
|
|
254
273
|
self.extracted_frames = extracted_frames
|
|
255
274
|
|
|
256
275
|
|
|
@@ -271,6 +290,7 @@ class Build:
|
|
|
271
290
|
LensDump(img_bytes, self.LENSDUMP_KEY,image_name=image_name),
|
|
272
291
|
ImgFi(img_bytes, self.IMGFI_KEY,image_name=image_name),
|
|
273
292
|
PassIMA(img_bytes, self.PASSIMA_KEY, image_name=image_name),
|
|
293
|
+
ImaRide(img_bytes, self.IMARIDE_KEY, image_name=image_name),
|
|
274
294
|
]
|
|
275
295
|
|
|
276
296
|
# Sorting list based on priority
|
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.20"
|
|
17
17
|
|
|
18
18
|
if os.name == "nt":
|
|
19
19
|
PW_TORRENT_ARCHIVE_PATH: Path = Path(os.getenv("LOCALAPPDATA", ".")) / "Unit3Dup_config" / "pw_torrent_archive"
|
|
@@ -69,6 +69,7 @@ class TrackerConfig(BaseModel):
|
|
|
69
69
|
PTSCREENS_KEY: str | None = None
|
|
70
70
|
IMGFI_KEY: str | None = None
|
|
71
71
|
PASSIMA_KEY: str | None = None
|
|
72
|
+
IMARIDE_KEY: str | None = None
|
|
72
73
|
YOUTUBE_KEY: str | None = None
|
|
73
74
|
IGDB_CLIENT_ID: str | None = None
|
|
74
75
|
IGDB_ID_SECRET: str | None = None
|
|
@@ -102,6 +103,8 @@ class UserPreferences(BaseModel):
|
|
|
102
103
|
IMGBB_PRIORITY: int = 3
|
|
103
104
|
IMGFI_PRIORITY: int = 4
|
|
104
105
|
PASSIMA_PRIORITY: int = 5
|
|
106
|
+
IMARIDE_PRIORITY: int = 6
|
|
107
|
+
|
|
105
108
|
NUMBER_OF_SCREENSHOTS: int = 4
|
|
106
109
|
YOUTUBE_FAV_CHANNEL_ID: str | None = None
|
|
107
110
|
YOUTUBE_CHANNEL_ENABLE: bool = False
|
|
@@ -429,7 +432,8 @@ class Config(BaseModel):
|
|
|
429
432
|
section[field] = Validate.string(value=section[field], field_name=field)
|
|
430
433
|
|
|
431
434
|
if field in ['NUMBER_OF_SCREENSHOTS','COMPRESS_SCSHOT','IMGBB_PRIORITY','FREE_IMAGE_PRIORITY',
|
|
432
|
-
'LENSDUMP_PRIORITY','PASSIMA_PRIORITY','WATCHER_INTERVAL','SIZE_TH',
|
|
435
|
+
'LENSDUMP_PRIORITY','PASSIMA_PRIORITY','IMARIDE_PRIORITY', 'WATCHER_INTERVAL','SIZE_TH',
|
|
436
|
+
'FAST_LOAD']:
|
|
433
437
|
section[field] = Validate.integer(value=section[field], field_name=field)
|
|
434
438
|
|
|
435
439
|
if field == 'PREFERRED_LANG':
|
|
@@ -531,6 +535,7 @@ class Load:
|
|
|
531
535
|
"PTSCREENS_KEY": "no_key",
|
|
532
536
|
"IMGFI_KEY": "no_key",
|
|
533
537
|
"PASSIMA_KEY": "no_key",
|
|
538
|
+
"IMARIDE_KEY": "no_key",
|
|
534
539
|
"YOUTUBE_KEY": "no_key",
|
|
535
540
|
"IGDB_CLIENT_ID": "no_key",
|
|
536
541
|
"IGDB_ID_SECRET": "no_key",
|
|
@@ -562,6 +567,7 @@ class Load:
|
|
|
562
567
|
"IMGBB_PRIORITY": 3,
|
|
563
568
|
"IMGFI_PRIORITY": 4,
|
|
564
569
|
"PASSIMA_PRIORITY": 5,
|
|
570
|
+
"IMARIDE_PRIORITY": 6,
|
|
565
571
|
"NUMBER_OF_SCREENSHOTS": 4,
|
|
566
572
|
"YOUTUBE_FAV_CHANNEL_ID": "UCGCbxpnt25hWPFLSbvwfg_w",
|
|
567
573
|
"YOUTUBE_CHANNEL_ENABLE": "False",
|
common/utility.py
CHANGED
|
@@ -189,6 +189,9 @@ class ManageTitles:
|
|
|
189
189
|
(r'\b7 \b1\b', '7.1'),
|
|
190
190
|
(r'\b5 \b1\b', '5.1'),
|
|
191
191
|
(r'\bDDP5 \b1\b', 'DDP5.1'),
|
|
192
|
+
(r'\bDDP2 \b1\b', 'DDP2.0'),
|
|
193
|
+
(r'\bDD5 \b1\b', 'DD5.1'),
|
|
194
|
+
(r'\bDD2 \b1\b', 'DD2.0'),
|
|
192
195
|
(r'\b2 \b0\b', '2.0'),
|
|
193
196
|
(r'\bWEB \bDL\b', 'WEB-DL'),
|
|
194
197
|
(r'\bWEB \bDLMUX\b', 'WEB-DLMUX'),
|
|
@@ -197,7 +200,7 @@ class ManageTitles:
|
|
|
197
200
|
(r'\bHEVC \bFHC\b', 'HEVC-FHC'),
|
|
198
201
|
(r'\bCBR \bCBZ\b', 'CBR-CBZ'),
|
|
199
202
|
(r'\bH \b264\b', 'H.264'),
|
|
200
|
-
|
|
203
|
+
(r'\bH \b265\b', 'H.265'),
|
|
201
204
|
]
|
|
202
205
|
|
|
203
206
|
for tag, replacement in replacements:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: Unit3Dup
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.20
|
|
4
4
|
Summary: An uploader for the Unit3D torrent tracker
|
|
5
5
|
Author: Parzival
|
|
6
6
|
License-Expression: MIT
|
|
@@ -112,6 +112,28 @@ DOC
|
|
|
112
112
|
Link `Unit3DUP <https://unit3dup.readthedocs.io/en/latest/index.html#>`_
|
|
113
113
|
|
|
114
114
|
|
|
115
|
+
ImageHost
|
|
116
|
+
=========
|
|
117
|
+
|
|
118
|
+
The bot can upload images to the following image hosting platforms:
|
|
119
|
+
|
|
120
|
+
+------------------+----------------------------+
|
|
121
|
+
| **Image Host** | **URL** |
|
|
122
|
+
+==================+============================+
|
|
123
|
+
| ``ImgBB`` | https://imgbb.com |
|
|
124
|
+
+------------------+----------------------------+
|
|
125
|
+
| ``FreeImage`` | https://freeimage.host |
|
|
126
|
+
+------------------+----------------------------+
|
|
127
|
+
| ``PtScreens`` | https://ptscreens.com |
|
|
128
|
+
+------------------+----------------------------+
|
|
129
|
+
| ``LensDump`` | https://lensdump.com |
|
|
130
|
+
+------------------+----------------------------+
|
|
131
|
+
| ``ImgFI`` | https://imgfi.com |
|
|
132
|
+
+------------------+----------------------------+
|
|
133
|
+
| ``PassIMA`` | https://passtheima.ge |
|
|
134
|
+
+------------------+----------------------------+
|
|
135
|
+
| ``ImaRide`` | https://www.imageride.net |
|
|
136
|
+
+------------------+----------------------------+
|
|
115
137
|
|
|
116
138
|
Trackers
|
|
117
139
|
========
|
|
@@ -131,7 +153,7 @@ united by a shared passion for torrents and more
|
|
|
131
153
|
:alt: Unisciti su Telegram
|
|
132
154
|
|
|
133
155
|
.. image:: https://img.shields.io/discord/1214696147600408698?label=Discord&logo=discord&style=flat
|
|
134
|
-
:target: https://discord.gg/
|
|
156
|
+
:target: https://discord.gg/Skvune9P
|
|
135
157
|
:alt: Discord Server
|
|
136
158
|
|
|
137
159
|
|
|
@@ -8,12 +8,12 @@ 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=9mpP39TF_xvX05ZS66COmj3klUh1xkWqOvPYNQBD2HQ,32983
|
|
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=8uvLzMk-1keX2grxgzhqeS5VV6EKrmocSESihU8xzhY,8971
|
|
15
15
|
common/external_services/__init__.py,sha256=rU7HPEcZ7WQFD8eqDzuye2xHPBjxXPwPqpt7IT08mkM,178
|
|
16
|
-
common/external_services/imageHost.py,sha256=
|
|
16
|
+
common/external_services/imageHost.py,sha256=00sVVmSFQD0AE1I8batCJQUxNn734NpNz8p1qDWyzHc,10215
|
|
17
17
|
common/external_services/imdb.py,sha256=AIo8CO-SfP_uNocDeNY08hpvCAnuotoI7hYUytDiMQA,579
|
|
18
18
|
common/external_services/mediaresult.py,sha256=Yz-h7QROkfNHwaSSXZ1JRDSmG2YIZkmtQO5vmpkYWZ4,677
|
|
19
19
|
common/external_services/ftpx/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -86,12 +86,12 @@ unit3dup/media_manager/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
|
|
|
86
86
|
unit3dup/media_manager/common.py,sha256=EDsD1FVNiWPS9teHs5vyGkYkC92gzFdSanMyMAR5vpU,10147
|
|
87
87
|
unit3dup/web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
88
88
|
unit3dup/web/main.py,sha256=BzjKDgAjKZMnoQwx7nDDbs_64kCrFO1VYpbHmsGiFVc,1267
|
|
89
|
-
unit3dup-0.8.
|
|
89
|
+
unit3dup-0.8.20.dist-info/licenses/LICENSE,sha256=GNAZDLhU0xz8QPbIyHAOYlVnQYDvKWk2N9fZJMhqaG8,1090
|
|
90
90
|
view/__init__.py,sha256=XIzb6rl58HmYPnksD73cYMFF88dn6FHa3u7bOHFbChk,81
|
|
91
91
|
view/custom_console.py,sha256=OITmkEoQH9N_uE5ElPaSdc8XvaLzE9wcwTbOHtcMvrI,5629
|
|
92
92
|
view/web_console.py,sha256=YkxutJK5GqswMKEF77EllphPYQW0eb8OIBlplucHhvM,7697
|
|
93
|
-
unit3dup-0.8.
|
|
94
|
-
unit3dup-0.8.
|
|
95
|
-
unit3dup-0.8.
|
|
96
|
-
unit3dup-0.8.
|
|
97
|
-
unit3dup-0.8.
|
|
93
|
+
unit3dup-0.8.20.dist-info/METADATA,sha256=coV9AlZNj15u_x7sZ-znoweTOOAkfs_V-dxKnqxj-cw,5826
|
|
94
|
+
unit3dup-0.8.20.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
95
|
+
unit3dup-0.8.20.dist-info/entry_points.txt,sha256=fxXSyI6-r6jy9_v-C5ZHm03q1aC3tE9EvCQZxC1NQnI,52
|
|
96
|
+
unit3dup-0.8.20.dist-info/top_level.txt,sha256=19NVMnQNkJxBUKebRNaYCRs56A5CO4U1L67GMQCPiLU,21
|
|
97
|
+
unit3dup-0.8.20.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|