Merge pull request #1566 from clinton-hall/refactor/iso_matching

Refactor/iso matching
This commit is contained in:
Clinton Hall 2019-03-11 08:17:42 +13:00 committed by GitHub
commit 3b3c7ca2d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -646,8 +646,15 @@ def rip_iso(item, new_dir, bitbucket):
print_cmd(cmd)
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=bitbucket)
out, err = proc.communicate()
file_list = [re.match(r'.+(VIDEO_TS[/\\]VTS_[0-9][0-9]_[0-9].[Vv][Oo][Bb])', line.decode()).groups()[0] for line in
out.splitlines() if re.match(r'.+VIDEO_TS[/\\]VTS_[0-9][0-9]_[0-9].[Vv][Oo][Bb]', line.decode())]
file_match_gen = (
re.match(r'.+(VIDEO_TS[/\\]VTS_[0-9][0-9]_[0-9].[Vv][Oo][Bb])', line)
for line in out.decode().splitlines()
)
file_list = [
file_match.groups()[0]
for file_match in file_match_gen
if file_match
]
combined = []
for n in range(99):
concat = []