Skip to content

Commit

Permalink
Converting name to lowercase isn't any brighter
Browse files Browse the repository at this point in the history
  • Loading branch information
Audionut committed Oct 14, 2024
1 parent 1131cbb commit ca3a39c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/trackers/RF.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import asyncio
import requests
import platform
import re
from str2bool import str2bool

from src.trackers.COMMON import COMMON
Expand Down Expand Up @@ -110,7 +111,7 @@ async def edit_name(self, meta):
invalid_tags = ["nogrp", "nogroup", "unknown", "-unk-"]
if meta['tag'] == "" or any(invalid_tag in tag_lower for invalid_tag in invalid_tags):
for invalid_tag in invalid_tags:
rf_name = rf_name.lower().replace(f"-{invalid_tag}", "")
rf_name = rf_name.replace(f"-{invalid_tag}", "", flags=re.IGNORECASE)
rf_name = f"{rf_name}-NoGroup"

return rf_name
Expand Down

0 comments on commit ca3a39c

Please sign in to comment.