Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/trackers/BLU.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ async def get_additional_checks(self, meta: dict[str, Any]) -> bool:
else:
return False

if meta['type'] in ["ENCODE"] and meta['resolution'] in ['576p', '576i', '480p', '480i']:
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The safest option here would be to use not in with the allowed resolution list.

Also, skip dvdrip type.

if not meta['unattended']:
console.print(f'[bold red]Encodes must be at least 720p resolution for {self.tracker}.[/bold red]')
return False

if not meta['valid_mi_settings']:
console.print(f"[bold red]No encoding settings in mediainfo, skipping {self.tracker} upload.[/bold red]")
return False
Expand Down