Browse Source

updated readme

master
sharky555 2 years ago
parent
commit
0077bd57cd
5 changed files with 23 additions and 4 deletions
  1. +1
    -0
      .gitignore
  2. +16
    -0
      README.md
  3. +1
    -1
      copycommand.txt
  4. +2
    -0
      copycommand.txt.example
  5. +3
    -3
      upload.py

+ 1
- 0
.gitignore View File

@@ -1,4 +1,5 @@
__pycache__
copycommand.txt
config.json
*session.dat
*.torrent

+ 16
- 0
README.md View File

@@ -23,6 +23,22 @@ Command | Description | Example
-f, --freeleech | Enables freeleech (VIP+ Userclass Requirement) | `python autoupload.py -f -dir "Z:\Music\Korean\Ego\Ego - E [2020.01.02] [EP] [WEB-MP3]"`
-t, --tags | Add additional tags to upload, separated with comma | `python autoupload.py -t "korean, female.vocalist" -dir "Z:\Music\Korean\Ego\Ego - E [2020.01.02] [EP] [WEB-MP3]"`
-dry, --dryrun | Carries out all actions other than the upload itself.| `python autoupload.py -dir "Z:\Music\Korean\Ego\Ego - E [2020.01.02] [EP] [WEB-MP3]" -dry`
-i [INPUT], --input [INPUT] |Initiate upload on input file|
-rt [RELEASETYPE], --releasetype [RELEASETYPE] | Set the release type. (PV, Music Performance, TV Music, TV Variety, TV-Drama) |
-a [ARTIST], --artist [ARTIST] | Set the artist. (Romaji\English). Split multiple with "," |
-oa [ORIGINALARTIST], --originalartist [ORIGINALARTIST] | Set the artist. (Original Language)
-ti [TITLE], --title [TITLE] | Set the title. (Romaji\English) |
-oti [ORIGINALTITLE], --originaltitle [ORIGINALTITLE] | Set the title. (Original Language) |
-t [TAGS], --tags [TAGS]|Add additional tags to the upload. At least 2 tags are required|
-y [YEAR], --year [YEAR]|Set the torrent year (YYYYMMDD or YYYY).|
-fl, --freeleech | Enables freeleech.|
-eti [EDITIONTITLE], --editiontitle [EDITIONTITLE]|Set the edition title|
-ey [EDITIONYEAR], --editionyear [EDITIONYEAR]|Set the torrent edition year (YYYYMMDD or YYYY).|
-ms [MEDIASOURCE], --mediasource [MEDIASOURCE]|Set the media source. (HDTV, Web)|
-im [IMAGEPATH], --imagepath [IMAGEPATH]|Set the torrent cover|
-tdes [TORRENTDESCRIPTION], --torrentdescription [TORRENTDESCRIPTION]|Add a torrent description|
-tgdes [TORRENTGROUPDESCRIPTION], --torrentgroupdescription [TORRENTGROUPDESCRIPTION]|Add a torrent group description. This is a required argument.|
-f [FORMATTYPE], --formattype [FORMATTYPE]|Set the media source. (MPEG, MPEG2, AVI, MKV, MP4, h264)|
## Config.json


+ 1
- 1
copycommand.txt View File

@@ -1 +1 @@
python upload.py -i "C:\file.ts" --releasetype "PV" --artist "aimer" --title "test" --tags "pop" --year "2022" --mediasource "HDTV" --imagepath "C:\file.ts_thumbs_[2022.04.29_19.06.07].jpg" --torrentgroupdescription "a long description!!!!" --torrentdescription "placeholder"
python upload.py -i "C:\file.ts" --releasetype "PV" --artist "" --title "" --tags "pop" --year "2022" --mediasource "HDTV" --imagepath "C:\file.ts_thumbs_[2022.04.29_19.06.07].jpg" --torrentgroupdescription "a long description!!!!" --torrentdescription "placeholder"

+ 2
- 0
copycommand.txt.example View File

@@ -0,0 +1,2 @@
python upload.py -i "C:\path to file" --releasetype "PV" --artist "" --title "" --tags "" --year "" --mediasource "" --imagepath "C:\path to image" --torrentgroupdescription "a long description!!!!" --torrentdescription "placeholder"

+ 3
- 3
upload.py View File

@@ -600,6 +600,6 @@ if __name__ == "__main__":
# if cfg['local_prefs']['add_to_watch_folder'] or cfg['local_prefs']['add_to_downloads_folder']:
# localfileorganization(torrent=torrentfile, directory=directory, watch_folder=local_watch_folder, downloads_folder=local_downloads_folder)
if not dryrun:
if cfg['local_prefs']['add_to_watch_folder']:
os.rename(torrentfile, f"{local_watch_folder}/{torrentfile}")
if cfg['local_prefs']['add_to_watch_folder']:
os.rename(torrentfile, f"{local_watch_folder}/{torrentfile}")

Loading…
Cancel
Save