Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Commit

Permalink
empty manual edition fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maksii committed Aug 26, 2024
1 parent 54f3102 commit b0b45fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -1905,9 +1905,9 @@ def contains_keywords(text, keywords):
ratio = next((value for key, value in ratios.items() if key in video.upper()), "")

repack = next((repack_type for repack_type, keywords in repack_keywords.items()
if contains_keywords(video, keywords) or contains_keywords(edition, keywords) or contains_keywords(manual_edition, keywords)), "")
if contains_keywords(video, keywords) or contains_keywords(edition, keywords) or contains_keywords(str(manual_edition), keywords)), "")

if contains_keywords(edition, ai_upscale_keywords) or contains_keywords(video, ai_upscale_keywords) or contains_keywords(manual_edition, ai_upscale_keywords):
if contains_keywords(edition, ai_upscale_keywords) or contains_keywords(video, ai_upscale_keywords) or contains_keywords(str(manual_edition), ai_upscale_keywords):
edition = "AI UPSCALE " + edition

if "HYBRID" in video.upper() and "HYBRID" not in title.upper():
Expand Down

0 comments on commit b0b45fc

Please sign in to comment.