Add episode name in process_file
This commit is contained in:
parent
de213f47d7
commit
fe0d345aa2
@ -89,6 +89,8 @@ def process_file(fpath):
|
||||
# create file name from parsed chunks
|
||||
chunk_order = [k for k, _ in PATTERNS]
|
||||
chunk_order = ["name"] + chunk_order
|
||||
episode_idx = chunk_order.index("episode") + 1
|
||||
chunk_order = chunk_order[:episode_idx] + ["episode_name"] + chunk_order[episode_idx:]
|
||||
result = []
|
||||
for chunk_type in chunk_order:
|
||||
if not parsed_title.get(chunk_type, []):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user