|
|
@@ -402,7 +402,7 @@ def uploadtorrent(torrent, imageURL, releasedata): |
|
|
|
## TODO Filter through JPSres.text and create error handling based on responses
|
|
|
|
#print(JPSres.text)
|
|
|
|
|
|
|
|
def localfileorganization(torrent, directory, watch_folder, downloads_folder):
|
|
|
|
def localfileorganization(torrent, watch_folder):
|
|
|
|
# Move torrent directory to downloads_folder
|
|
|
|
# if cfg['local_prefs']['add_to_downloads_folder']:
|
|
|
|
# try:
|
|
|
@@ -508,8 +508,8 @@ if __name__ == "__main__": |
|
|
|
# local_downloads_folder = cfg['local_prefs']['local_downloads_folder']
|
|
|
|
|
|
|
|
if not dryrun:
|
|
|
|
if cfg['local_prefs']['add_to_watch_folder'] or cfg['local_prefs']['add_to_downloads_folder']:
|
|
|
|
localfileorganization(torrent=torrentfile, watch_folder=local_watch_folder)
|
|
|
|
if cfg['local_prefs']['add_to_watch_folder']:
|
|
|
|
os.rename(torrentfile, f"{local_watch_folder}/{torrentfile}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|