Skip to content

Commit

Permalink
fix path detection issue
Browse files Browse the repository at this point in the history
the regex will now only check in the name of file and not the entire path
  • Loading branch information
Hqndler authored May 21, 2022
1 parent 7428e09 commit 14cfba1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion yolobatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ def process(liste):
return big

def check_regex(name, mode):
name = name.replace(os.path.dirname(name), '')
regular = re.findall("[\s#._\[]\d+[\s._\]]", name)
if not regular:
season = re.findall("\w\d\d\w\d+", name)
Expand Down Expand Up @@ -203,7 +204,9 @@ def write(liste, fo, font):
f = 0
except:
f = 0
mkv = input("Paste your MkvToolNix Command Here:\n\n")
warn = input("Be sure to have the command line copied. PRESS ENTER TO CONTINUE.")
if warn == "":
mkv = pyperclip.paste()
output = find_output(mkv)
mkv_in = mkv.replace(output, "{}", 1)
mkv_ready = format_mkv(mkv_in, find_all_input(mkv_in))
Expand Down

0 comments on commit 14cfba1

Please sign in to comment.