Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Audionut committed Sep 11, 2024
1 parent 8a798cb commit 2cff2ea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions data/example-config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
16 changes: 3 additions & 13 deletions src/trackers/PSS.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand All @@ -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',
Expand All @@ -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)
Expand Down

0 comments on commit 2cff2ea

Please sign in to comment.