Browse Source

Made extraction directory configurable and more robust.

master
treyzania 6 years ago
parent
commit
c2c15aece7
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      booty.py

+ 2
- 1
booty.py View File

@@ -64,7 +64,8 @@ for f in os.listdir(os.getcwd()):
if ext in video_exts:
sources.append({ 'src': f, 'action': 'hardlink' })
elif ext == '.rar':
contents = unrar(f)
exd = os.path.expanduser(os.path.join(cfg['extractdir'], os.path.basename(f)))
contents = unrar(f, dest=exd)
for ff in os.listdir(contents):
_, ext2 = os.path.splitext(ff)
if ext2 in video_exts:

Loading…
Cancel
Save