mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix episode title promotion rule when episode was already defined
This commit is contained in:
parent
e0923807c6
commit
4c31e8cd70
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user