Skip to content

Commit

Permalink
ULCX - skip when resolution < 720p
Browse files Browse the repository at this point in the history
  • Loading branch information
Audionut committed Nov 23, 2024
1 parent 8c0f315 commit 5c0db2b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/trackers/ULCX.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ async def get_type_id(self, type):
return type_id

async def get_res_id(self, resolution):
if resolution not in ['8640p', '4320p', '2160p', '1440p', '1080p', '1080i', '720p']:
return None
resolution_id = {
'8640p': '10',
'4320p': '1',
Expand All @@ -69,6 +71,9 @@ async def upload(self, meta, disctype):
cat_id = await self.get_cat_id(meta['category'])
type_id = await self.get_type_id(meta['type'])
resolution_id = await self.get_res_id(meta['resolution'])
if resolution_id is None:
console.print("Resolution is below 720p; skipping.")
return
await common.unit3d_edit_desc(meta, self.tracker, self.signature)
region_id = await common.unit3d_region_ids(meta.get('region'))
distributor_id = await common.unit3d_distributor_ids(meta.get('distributor'))
Expand Down

0 comments on commit 5c0db2b

Please sign in to comment.