Skip to content

Commit

Permalink
Indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Audionut committed Oct 21, 2024
1 parent d818876 commit 0a16f5e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,13 @@ async def check_and_collect(image_dict):
if meta.get('trackers') is not None:
if isinstance(meta.get('trackers', ''), str):
meta['trackers'] = [tracker.strip() for tracker in meta['trackers'].split(',')]
if 'MTV' in meta.get('trackers', []):
if invalid_host_found:
console.print("[red]Warning: Some images are not hosted on an MTV-approved image host. MTV will fail if you keep these images.[/yellow]")
if 'MTV' in meta['trackers', []]:
if invalid_host_found:
console.print("[red]Warning: Some images are not hosted on an MTV-approved image host. MTV will fail if you keep these images.[/red]")
# Issue warning if any valid image is on an unapproved host and MTV is in the trackers list
elif 'MTV' in trackers_list:
if invalid_host_found:
console.print("[red]Warning: Some images are not hosted on an MTV-approved image host. MTV will fail if you keep these images.[/yellow]")
console.print("[red]Warning: Some images are not hosted on an MTV-approved image host. MTV will fail if you keep these images.[/red]")

return valid_images

Expand Down

0 comments on commit 0a16f5e

Please sign in to comment.