Stavros Korokithakis
Stavros Korokithakis
Can you try this patch, actually? ``` diff --git a/catt/util.py b/catt/util.py index ecc1086..d079c9e 100644 --- a/catt/util.py +++ b/catt/util.py @@ -1,5 +1,6 @@ import ipaddress import json +import re import socket...
Hm, that doesn't seem faster enough... It'll still take minutes, I was hoping for something that took milliseconds. Hm.
> that is ms. It is quite a bit faster. I know, but the first one is the old function and the second one is the new, no? It's around...
Ah ok, can you change the regex to: ``` regex = re.compile(video_path.stem + ".*\.(vtt|srt)", re.I) ```
That's very odd, can you print the stem and the video file so we can be sure that the regex will match? Also, can you add `re.escape()`? ```` regex =...
Hmm, can you print the filenames and regexes? I want to see what mine looks like, it's odd.
Hm no, it definitely should... Does mine work if you remove the `\.(vtt|srt)` bit?
Yes but your version isn't case insensitive, sadly...
Try searching for a file that ends in `.VTT`.
True, but then you wouldn't get files called `.Srt` or something (which is weird, but I'd rather not change the way it works). I'll try to figure out why my...