Bläddra i källkod

fix issue 3 and 4

pull/5/head
sharky555 3 år sedan
förälder
incheckning
38a1dfb9e9
3 ändrade filer med 6 tillägg och 6 borttagningar
  1. +2
    -2
      README.md
  2. +1
    -1
      copycommand.txt
  3. +3
    -3
      upload.py

+ 2
- 2
README.md Visa fil

@@ -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


+ 1
- 1
copycommand.txt Visa fil

@@ -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!!!!"

+ 3
- 3
upload.py Visa fil

@@ -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}")


Laddar…
Avbryt
Spara