Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Args and User Input

ryelogheat edited this page Mar 29, 2022 · 9 revisions

Args / user input

  • Do not include commas or quotes with your args
  • Certain options are flags that don't require any other input
    • -anon -batch -disc are all flags that don't require any other input
    • e.g. python3 auto_upload.py -t ABC -anon to upload anonymously
  • Skip IMDB/TMDB ID search
    • If your upload does not have an IMDB/TMDB ID (e.g. Motorsport race) you can set them both to 0 with the following args
    • -tmdb 0 -imdb 0
    • This will prevent the script from trying to match a TMDB/IMDB ID & it will upload without any external metadata

Required:

  • -t / --trackers

    • This is how you specify which site to upload to
    • python3 auto_upload.py -t BHD BLU
  • -p / --path

    • Use this to specify which file or folder you want to upload
    • python3 auto_upload.py -t ABC -p /home/user/Videos/file.mkv

Optional Args:

  • -tmdb | themoviedb.org

    • Manually provide the TMDB ID instead of using built in auto-detection / prompt
    • It's recommended to use this arg if auto_mode=true (auto-detection isn't always 100% accurate)
    • python3 auto_upload.py -t ABC -tmdb 1892
  • -imdb | imdb.com

    • Using the IMDB ID we can utilize the TMDB API /find/{external_id} endpoint to get the corresponding TMDB ID
    • python3 auto_upload.py -t ABC -imdb tt0086190
  • -e / --edition

    • If it's not auto-extracted (via this regex from radarr) or just not included in the filename, you can manually specify the edition
    • You must enclose the edition you want in double quotes (to deal with possible spaces)
    • python3 auto_upload.py -t ABC -e "Criterion Collection"
  • -title

    • Manually set the torrent title instead of using auto-generator
    • You must enclose the title you want in double quotes (to deal with spaces in title)
    • python3 auto_upload.py -t ABC -title "Movie Title 2010 1080p WEB-DL"
  • -type

    • Sometimes the script & occasionally TMDB misidentifies content as a Movie when it's really a TV Show and vice versa
    • You can manually override the content type by passing the -type arg & movie or tv as the value
    • python3 auto_upload.py -t ABC -type movie
  • -nfo

    • Use this arg to manually provide the path to a relevant .nfo file if it's not included in the folder you're uploading
    • Note, Don't ever modify / add / remove the actual file/folder of whatever you're re-uploading
    • python3 auto_upload.py -t ABC -nfo "/home/user/Downloads/file.nfo"
  • -note

    • Specify a note to show in the torrents description (The actual note text must be enclosed in double quotes)
    • Use \n in your note to add newlines in the final note that will visible in your torrents description
    • You must have {{ desc_note }} somewhere in your description_template.jinja2 file for it to render
    • python3 auto_upload.py -t ABC -note "Testing\n\nA Note with\nLine Breaks"

Optional Flags:

  • -anon (flag)

    • This is used to upload anonymously
    • python3 auto_upload.py -t ABC -anon
  • -justfile (flag)

    • What it does:
      • It will use the filename for the torrent title (replaces periods with spaces)
      • Set the TMDB & IMDB IDs to 0 & won't attempt to find external metadata
    • The intended purpose of this arg is for uploads that don't have a TMDB/IMDB entry such as sporting events or music videos
    • filename: Some.Movie.1080p.WEBDL.x264-GROUP.mkv --> Torrent Title: Some Movie 1080p WEBDL x264-GROUP
    • python3 auto_upload.py -t ABC -justfile
  • -batch (flag)

    • This is related to the --path arg in the way that this will systematically & individually upload all the files in a specified folder
    • The requirements for this to work are:
      • Pass the path to a folder (not an individual file) with --path
      • Need to have more than 1 file / folder in the specified directory
    • python3 auto_upload.py -t ABC -p /home/user/Videos/partial_airing_tv_show/ -batch
  • -disc (flag)

    • You must pass this arg if you're uploading a Raw Bluray disc
    • *.iso bluray files are not currently supported, only /BDMV/STREAM/ "structured" directories are.
    • python3 auto_upload.py -t ABC -p /home/user/Videos/bluray_folder/ -disc
  • -reupload (flag)

    • Used by autodl-irssi during automated re-uploads
    • This is only used by the automatic re-uploading function. Don't pass unless you know what you're doing.

Optional Flags (Internals only):

  • This is only applicable if your account is already in a Internal class
  • If you are in a internal class on a UNIT3D tracker, you have some extra options when uploading
  • python3 auto_upload.py -t ABC -p /home/user/Videos/file.mkv -internal -doubleup
Arg Description
-internal Mark a new upload as Internal
-freeleech Mark a new upload as Freeleech
-featured Feature a new upload
-doubleup Gives a new upload Double Up status
-sticky Pins the new upload