From 38a1dfb9e967c7754325959e7038a1f766cc4fba Mon Sep 17 00:00:00 2001 From: sharky555 Date: Tue, 2 Nov 2021 17:20:04 -0600 Subject: [PATCH] fix issue 3 and 4 --- README.md | 4 ++-- copycommand.txt | 2 +- upload.py | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 27bfae1..5f59399 100644 --- a/README.md +++ b/README.md @@ -34,8 +34,8 @@ Command | Description -ey [EDITIONYEAR], --year [EDITIONYEAR] | Set the edition year (YYYYMMDD or YYYY). -im [IMAGEURL], --imageURL [IMAGEURL] | Set the torrent cover URL. -ss [SCREENSHOTURLS], --screenshots [SCREENSHOTURLS] | Set the screenshot URLs. Split multiple with "," --tdes [TORRENTDESCRIPTION], --description [TORRENTDESCRIPTION] | Add a torrent description. Only available as an argument. --tgdes [TORRENTGROUPDESCRIPTION], --description [TORRENTGROUPDESCRIPTION] | Add a torrent group description. This must be added as an argument. +-tdes [TORRENTDESCRIPTION], --torrentdescription [TORRENTDESCRIPTION] | Add a torrent description. Only available as an argument. +-tgdes [TORRENTGROUPDESCRIPTION], --torrentgroupdescription [TORRENTGROUPDESCRIPTION] | Add a torrent group description. This must be added as an argument. ## Config.json diff --git a/copycommand.txt b/copycommand.txt index 433b691..9083be7 100644 --- a/copycommand.txt +++ b/copycommand.txt @@ -1 +1 @@ -python upload.py -i "C:\path to file" --releasetype "PV" --artists "" --title "" --tags "" --year "" --mediasource "HDTV" --sub "NoSubs" --language "Japanese" --imageurl "" --torrentgroupdescription "a long description!!!!" +python upload.py -i "C:\path to file" --releasetype "PV" --artists "" --title "" --tags "" --year "" --mediasource "HDTV" --sub "NoSubs" --language "Japanese" --imageURL "" --torrentgroupdescription "a long description!!!!" diff --git a/upload.py b/upload.py index 04caf80..6cf6aa2 100644 --- a/upload.py +++ b/upload.py @@ -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}") -- 2.16.2