mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-06-01 11:17:14 +00:00
Fix episode title promotion rule when episode was already defined
This commit is contained in:
@@ -106,6 +106,11 @@ class EpisodeTitlePromotion(Rule):
|
||||
if not ep_title:
|
||||
return
|
||||
|
||||
# Do not promote an episode title if there is already a know episode number
|
||||
ep_nbr: List[Match] = matches.named("episode") # type: ignore
|
||||
if ep_nbr and len(ep_nbr) > 0:
|
||||
return
|
||||
|
||||
to_remove = [match for match in ep_title if str(match.value).isdecimal()]
|
||||
to_add = []
|
||||
for tmatch in to_remove:
|
||||
|
||||
Reference in New Issue
Block a user