From 2cff2eac0cb7150f77b355cd427668bd94265bd7 Mon Sep 17 00:00:00 2001 From: Audionut Date: Wed, 11 Sep 2024 17:49:48 +1000 Subject: [PATCH] Lint --- README.md | 2 +- data/example-config.py | 6 +++--- src/trackers/PSS.py | 16 +++------------- 3 files changed, 7 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index d14f5b179..544a57612 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ A simple tool to take the work out of uploading. - Can re-use existing torrents instead of hashing new - Generates proper name for your upload using Mediainfo/BDInfo and TMDb/IMDb conforming to site rules - Checks for existing releases already on site - - Uploads to PTP/BLU/BHD/Aither/THR/STC/PSS/R4E(limited)/STT/HP/ACM/LCD/LST/NBL/ANT/FL/HUNO/RF/SN/RTF/OTW/FNP/CBR/UTP/HDB/AL/SHRI/OE/TL/BHDTV/HDT/JPTV/LT/MTV/PTER/TDC/TTG/UTP + - Uploads to PTP/BLU/BHD/Aither/THR/STC/R4E(limited)/STT/HP/ACM/LCD/LST/NBL/ANT/FL/HUNO/RF/SN/RTF/OTW/FNP/CBR/UTP/HDB/AL/SHRI/OE/TL/BHDTV/HDT/JPTV/LT/MTV/PTER/TDC/TTG/UTP/PSS - Adds to your client with fast resume, seeding instantly (rtorrent/qbittorrent/deluge/watch folder) - ALL WITH MINIMAL INPUT! - Currently works with .mkv/.mp4/Blu-ray/DVD/HD-DVDs diff --git a/data/example-config.py b/data/example-config.py index 27d938271..1f92cfb66 100644 --- a/data/example-config.py +++ b/data/example-config.py @@ -235,9 +235,9 @@ "announce_url": "https://shareisland.org/announce/customannounceurl", # "anon" : "False" }, - "PSS" : { - "api_key" : "PSS api key", - "announce_url" : "https://privatesilverscreen.cc/announce/customannounceurl", + "PSS": { + "api_key": "PSS api key", + "announce_url": "https://privatesilverscreen.cc/announce/customannounceurl", # "anon" : False }, "MANUAL": { diff --git a/src/trackers/PSS.py b/src/trackers/PSS.py index 01401b2b4..b19a594ae 100644 --- a/src/trackers/PSS.py +++ b/src/trackers/PSS.py @@ -18,12 +18,6 @@ class PSS(): Upload """ - ############################################################### - ######## EDIT ME ######## noqa E266 - ############################################################### - - # ALSO EDIT CLASS NAME ABOVE - def __init__(self, config): self.config = config self.tracker = 'PSS' @@ -32,7 +26,7 @@ def __init__(self, config): self.search_url = 'https://privatesilverscreen.cc/api/torrents/filter' self.signature = '\n[center][url=https://privatesilverscreen.cc/pages/1]Please Seed[/url][/center]' self.banned_groups = ['4K4U', 'AROMA', 'd3g', 'edge2020', 'EMBER', 'EVO', 'FGT', 'NeXus', 'ION10', 'iVy', 'Judas', 'LAMA', 'MeGusta', 'nikt0', 'OEPlus', 'OFT', 'OsC', 'PYC', - 'QxR', 'Ralphy', 'RARBG', 'RetroPeeps', 'SAMPA', 'Sicario', 'Silence', 'STUTTERSHIT', 'Tigole', 'TSP', 'TSPxL','Will1869', 'x0r', 'YIFY', 'core', 'ZMNT', + 'QxR', 'Ralphy', 'RARBG', 'RetroPeeps', 'SAMPA', 'Sicario', 'Silence', 'STUTTERSHIT', 'Tigole', 'TSP', 'TSPxL', 'Will1869', 'x0r', 'YIFY', 'core', 'ZMNT', 'msd', 'nikt0', 'aXXo', 'BRrip', 'CM8', 'CrEwSaDe', 'DNL', 'FaNGDiNG0', 'FRDS', 'HD2DVD', 'HDTime', 'Leffe', 'mHD', 'mSD', 'nHD', 'nSD', 'NhaNc3', 'PRODJi', 'RDN', 'SANTi', 'ViSION', 'WAF', 'YTS', 'FROZEN', 'UTR', 'Grym', 'GrymLegacy', 'CK4', 'ProRes', 'MezRips', 'GalaxyRG', 'RCDiVX', 'LycanHD'] pass @@ -51,13 +45,13 @@ async def get_type_id(self, type): 'ENCODE': '3', 'WEBDL': '4', 'WEBRIP': '5', - 'HDTV': '6', + 'HDTV': '6', }.get(type, '0') return type_id async def get_res_id(self, resolution): resolution_id = { - '8640p':'10', + '8640p': '10', '4320p': '1', '2160p': '2', '1080p': '3', @@ -70,10 +64,6 @@ async def get_res_id(self, resolution): }.get(resolution, '10') return resolution_id - ############################################################### - ###### STOP HERE UNLESS EXTRA MODIFICATION IS NEEDED ###### noqa E266 - ############################################################### - async def upload(self, meta): common = COMMON(config=self.config) await common.edit_torrent(meta, self.tracker, self.source_flag)