Bladeren bron

removed asking for edition

no-edition
sharky555 2 jaren geleden
bovenliggende
commit
3ab507b883
1 gewijzigde bestanden met toevoegingen van 2 en 22 verwijderingen
  1. +2
    -22
      upload.py

+ 2
- 22
upload.py Bestand weergeven

@@ -51,8 +51,6 @@ def getargs():
parser.add_argument("-t", "--tags", help="Add additional tags to the upload. At least 2 tags are required", nargs='?')
parser.add_argument("-y", "--year", help='Set the torrent year (YYYYMMDD or YYYY).', nargs='?')
parser.add_argument("-fl", "--freeleech", help="Enables freeleech.", action="store_true")
parser.add_argument("-eti", "--editiontitle", help='Set the edition title', nargs='?')
parser.add_argument("-ey", "--editionyear", help='Set the torrent edition year (YYYYMMDD or YYYY).', nargs='?')
parser.add_argument("-ms", "--mediasource", help='Set the media source. (HDTV, Web)', nargs='?')
parser.add_argument("-im", "--imagepath", help='Set the torrent cover', nargs='?')
parser.add_argument("-tdes", "--torrentdescription", help='Add a torrent description', nargs='?')
@@ -308,18 +306,6 @@ def gatherdata():
input_year = input("\n" + "_" * 100 + "\nEnter the year as YYYYMMDD or YYYY.\n")
releasedata["releasedate"] = input_year
if editiontitle:
releasedata['remaster_title'] = editiontitle
else:
input_editiontitle = input("\n" + "_" * 100 + "\nEnter the edition TITLE. Press enter to skip.\n")
if input_editiontitle != "":
if editionyear:
releasedata["remaster_year"] = editionyear
else:
input_editionyear = input("\n" + "_" * 100 + "\nEnter the edition year as YYYY.\n")
releasedata["remaster_year"] = input_editionyear
releasedata['remaster_title'] = input_editiontitle
if formattype:
releasedata['format'] = formattype
else:
@@ -530,7 +516,7 @@ if __name__ == "__main__":
# TODO consider calling args[] directly, we will then not need this line
dryrun = debug = tags = artist = title = formattype = imagepath = freeleech = None
originalartist = originaltitle = torrentdescription = torrentgroupdescription = editiontitle = editionyear = year = mediasource = releasetype = None
originalartist = originaltitle = torrentdescription = torrentgroupdescription = year = mediasource = releasetype = None
inputfile = args.input
# torrentgroupdescription = args.torrentgroupdescription
@@ -561,16 +547,10 @@ if __name__ == "__main__":
if args.originaltitle:
originaltitle = args.originaltitle
if args.editiontitle:
editiontitle = args.editiontitle
if args.year:
year = args.year
if args.editionyear:
editionyear = args.editionyear
if args.mediasource:
mediasource = args.mediasource


Laden…
Annuleren
Opslaan