Skip to content

Commit

Permalink
RF - capture mixed case nogroup and others
Browse files Browse the repository at this point in the history
  • Loading branch information
Audionut committed Oct 14, 2024
1 parent 3da7956 commit 46b2a48
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/trackers/RF.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,11 @@ async def upload(self, meta, disctype):

async def edit_name(self, meta):
rf_name = meta['name']
if meta['tag'] == "":
tag_lower = meta['tag'].lower()
invalid_tags = ["nogrp", "nogroup", "unknown", "-unk-"]
if meta['tag'] == "" or any(invalid_tag in tag_lower for invalid_tag in invalid_tags):
rf_name = f"{rf_name}-NoGroup"

return rf_name

async def get_cat_id(self, category_name):
Expand Down

0 comments on commit 46b2a48

Please sign in to comment.