PSA9 wrote:...For the ones that will say proof and samples are not needed just keep your noob comments to yourself.
It aint reddit overhere
, and I guess hugbug may will even add the feature to videosort, because I think something like your idea would be a great addition.
In video sort that option isnt there but after a quick look it doesn't look that difficult for a quick fix. Not sure if you got a bit of knowledge of python, but what you could do is go to line 501 in the latest VideoSort.py script:
Code: Select all
def cleanup_download_dir():
""" Remove the download directory if it (or any subfodler) does not contain "important" files
(important = size >= min_size)
"""
if verbose:
print('Cleanup')
# Check if there are any big files remaining
for root, dirs, files in os.walk(download_dir):
for filename in files:
path = os.path.join(root, filename)
# Check minimum file size
if os.path.getsize(path) >= min_size and (not preview or path not in moved_src_files):
print('[WARNING] Skipping clean up due to large files remaining in the directory')
return
# Now delete all files with nice logging
for root, dirs, files in os.walk(download_dir):
for filename in files:
path = os.path.join(root, filename)
if not preview or path not in moved_src_files:
if not preview:
os.remove(path) <--- insert some code overhere instead of deleting, go for
print('[INFO] Deleted: %s' % path)
if not preview:
shutil.rmtree(download_dir)
print('[INFO] Deleted: %s' % download_dir)
and create sub folders for sample, subs, proof, and simply move the files there. But for the subs part, I think it will be hard to move them towards the sub folder, because they often don't have a tag like 'sub' in the .rar archive with the sub file.