Skip to content

Commit

Permalink
Bump version in headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Audionut committed Nov 29, 2024
1 parent 765879b commit ce2395a
Show file tree
Hide file tree
Showing 29 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion src/trackers/ACM.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ async def upload(self, meta, disctype):
data['season_number'] = meta.get('season_int', '0')
data['episode_number'] = meta.get('episode_int', '0')
headers = {
'User-Agent': f'Upload Assistant/2.1 ({platform.system()} {platform.release()})'
'User-Agent': f'Upload Assistant/2.2 ({platform.system()} {platform.release()})'
}
params = {
'api_token': self.config['TRACKERS'][self.tracker]['api_key'].strip()
Expand Down
2 changes: 1 addition & 1 deletion src/trackers/AITHER.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ async def upload(self, meta, disctype):
'mod_queue_opt_in': modq,
}
headers = {
'User-Agent': f'Upload Assistant/2.1 ({platform.system()} {platform.release()})'
'User-Agent': f'Upload Assistant/2.2 ({platform.system()} {platform.release()})'
}
params = {
'api_token': self.config['TRACKERS'][self.tracker]['api_key'].strip()
Expand Down
2 changes: 1 addition & 1 deletion src/trackers/AL.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ async def upload(self, meta, disctype):
data['season_number'] = meta.get('season_int', '0')
data['episode_number'] = meta.get('episode_int', '0')
headers = {
'User-Agent': f'Upload Assistant/2.1 ({platform.system()} {platform.release()})'
'User-Agent': f'Upload Assistant/2.2 ({platform.system()} {platform.release()})'
}
params = {
'api_token': self.config['TRACKERS'][self.tracker]['api_key'].strip()
Expand Down
4 changes: 2 additions & 2 deletions src/trackers/ANT.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ async def upload(self, meta, disctype):
'media': 'Blu-ray',
'releasegroup': str(meta['tag'])[1:],
'release_desc': bd_dump,
'flagchangereason': "BDMV Uploaded with L4G's Upload Assistant"})
'flagchangereason': "BDMV Uploaded with Upload Assistant"})
if meta['scene']:
# ID of "Scene?" checkbox on upload form is actually "censored"
data['censored'] = 1
headers = {
'User-Agent': f'Upload Assistant/2.1 ({platform.system()} {platform.release()})'
'User-Agent': f'Upload Assistant/2.2 ({platform.system()} {platform.release()})'
}

try:
Expand Down
2 changes: 1 addition & 1 deletion src/trackers/BHD.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ async def upload(self, meta, disctype):
if len(tags) > 0:
data['tags'] = ','.join(tags)
headers = {
'User-Agent': f'Upload Assistant/2.1 ({platform.system()} {platform.release()})'
'User-Agent': f'Upload Assistant/2.2 ({platform.system()} {platform.release()})'
}

url = self.upload_url + self.config['TRACKERS'][self.tracker]['api_key'].strip()
Expand Down
2 changes: 1 addition & 1 deletion src/trackers/BLU.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ async def upload(self, meta, disctype):
data['season_number'] = meta.get('season_int', '0')
data['episode_number'] = meta.get('episode_int', '0')
headers = {
'User-Agent': f'Upload Assistant/2.1 ({platform.system()} {platform.release()})'
'User-Agent': f'Upload Assistant/2.2 ({platform.system()} {platform.release()})'
}
params = {
'api_token': self.config['TRACKERS'][self.tracker]['api_key'].strip()
Expand Down
2 changes: 1 addition & 1 deletion src/trackers/CBR.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async def upload(self, meta, disctype):
data['season_number'] = meta.get('season_int', '0')
data['episode_number'] = meta.get('episode_int', '0')
headers = {
'User-Agent': f'Upload Assistant/2.1 ({platform.system()} {platform.release()})'
'User-Agent': f'Upload Assistant/2.2 ({platform.system()} {platform.release()})'
}
params = {
'api_token': self.config['TRACKERS'][self.tracker]['api_key'].strip()
Expand Down
2 changes: 1 addition & 1 deletion src/trackers/FNP.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ async def upload(self, meta, disctype):
data['season_number'] = meta.get('season_int', '0')
data['episode_number'] = meta.get('episode_int', '0')
headers = {
'User-Agent': f'Upload Assistant/2.1 ({platform.system()} {platform.release()})'
'User-Agent': f'Upload Assistant/2.2 ({platform.system()} {platform.release()})'
}
params = {
'api_token': self.config['TRACKERS'][self.tracker]['api_key'].strip()
Expand Down
2 changes: 1 addition & 1 deletion src/trackers/HP.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ async def upload(self, meta, disctype):
data['season_number'] = meta.get('season_int', '0')
data['episode_number'] = meta.get('episode_int', '0')
headers = {
'User-Agent': f'Upload Assistant/2.1 ({platform.system()} {platform.release()})'
'User-Agent': f'Upload Assistant/2.2 ({platform.system()} {platform.release()})'
}
params = {
'api_token': self.config['TRACKERS'][self.tracker]['api_key'].strip()
Expand Down
2 changes: 1 addition & 1 deletion src/trackers/HUNO.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ async def upload(self, meta, disctype):
data['internal'] = 0

headers = {
'User-Agent': f'Upload Assistant/2.1 ({platform.system()} {platform.release()})'
'User-Agent': f'Upload Assistant/2.2 ({platform.system()} {platform.release()})'
}
params = {
'api_token': tracker_config['api_key'].strip()
Expand Down
2 changes: 1 addition & 1 deletion src/trackers/JPTV.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ async def upload(self, meta, disctype):
data['season_number'] = meta.get('season_int', '0')
data['episode_number'] = meta.get('episode_int', '0')
headers = {
'User-Agent': f'Upload Assistant/2.1 ({platform.system()} {platform.release()})'
'User-Agent': f'Upload Assistant/2.2 ({platform.system()} {platform.release()})'
}
params = {
'api_token': self.config['TRACKERS'][self.tracker]['api_key'].strip()
Expand Down
2 changes: 1 addition & 1 deletion src/trackers/LCD.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async def upload(self, meta, disctype):
data['season_number'] = meta.get('season_int', '0')
data['episode_number'] = meta.get('episode_int', '0')
headers = {
'User-Agent': f'Upload Assistant/2.1 ({platform.system()} {platform.release()})'
'User-Agent': f'Upload Assistant/2.2 ({platform.system()} {platform.release()})'
}
params = {
'api_token': self.config['TRACKERS'][self.tracker]['api_key'].strip()
Expand Down
2 changes: 1 addition & 1 deletion src/trackers/LST.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ async def upload(self, meta, disctype):
data['season_number'] = meta.get('season_int', '0')
data['episode_number'] = meta.get('episode_int', '0')
headers = {
'User-Agent': f'Upload Assistant/2.1 ({platform.system()} {platform.release()})'
'User-Agent': f'Upload Assistant/2.2 ({platform.system()} {platform.release()})'
}
params = {
'api_token': self.config['TRACKERS'][self.tracker]['api_key'].strip()
Expand Down
2 changes: 1 addition & 1 deletion src/trackers/LT.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ async def upload(self, meta, disctype):
data['season_number'] = int(meta.get('season_int', '0'))
data['episode_number'] = int(meta.get('episode_int', '0'))
headers = {
'User-Agent': f'Upload Assistant/2.1 ({platform.system()} {platform.release()})'
'User-Agent': f'Upload Assistant/2.2 ({platform.system()} {platform.release()})'
}
params = {
'api_token': self.config['TRACKERS'][self.tracker]['api_key'].strip()
Expand Down
2 changes: 1 addition & 1 deletion src/trackers/OE.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ async def upload(self, meta, disctype):
data['season_number'] = meta.get('season_int', '0')
data['episode_number'] = meta.get('episode_int', '0')
headers = {
'User-Agent': f'Upload Assistant/2.1 ({platform.system()} {platform.release()})'
'User-Agent': f'Upload Assistant/2.2 ({platform.system()} {platform.release()})'
}
params = {
'api_token': self.config['TRACKERS'][self.tracker]['api_key'].strip()
Expand Down
2 changes: 1 addition & 1 deletion src/trackers/OTW.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ async def upload(self, meta, disctype):
data['season_number'] = meta.get('season_int', '0')
data['episode_number'] = meta.get('episode_int', '0')
headers = {
'User-Agent': f'Upload Assistant/2.1 ({platform.system()} {platform.release()})'
'User-Agent': f'Upload Assistant/2.2 ({platform.system()} {platform.release()})'
}
params = {
'api_token': self.config['TRACKERS'][self.tracker]['api_key'].strip()
Expand Down
2 changes: 1 addition & 1 deletion src/trackers/PSS.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ async def upload(self, meta, disctype):
data['season_number'] = meta.get('season_int', '0')
data['episode_number'] = meta.get('episode_int', '0')
headers = {
'User-Agent': f'Upload Assistant/2.1 ({platform.system()} {platform.release()})'
'User-Agent': f'Upload Assistant/2.2 ({platform.system()} {platform.release()})'
}
params = {
'api_token': self.config['TRACKERS'][self.tracker]['api_key'].strip()
Expand Down
2 changes: 1 addition & 1 deletion src/trackers/R4E.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async def upload(self, meta, disctype):
# 'sticky' : 0,
}
headers = {
'User-Agent': f'Upload Assistant/2.1 ({platform.system()} {platform.release()})'
'User-Agent': f'Upload Assistant/2.2 ({platform.system()} {platform.release()})'
}
url = f"https://racing4everyone.eu/api/torrents/upload?api_token={self.config['TRACKERS']['R4E']['api_key'].strip()}"
if meta.get('category') == "TV":
Expand Down
2 changes: 1 addition & 1 deletion src/trackers/RF.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ async def upload(self, meta, disctype):
if distributor_id != 0:
data['distributor_id'] = distributor_id
headers = {
'User-Agent': f'Upload Assistant/2.1 ({platform.system()} {platform.release()})'
'User-Agent': f'Upload Assistant/2.2 ({platform.system()} {platform.release()})'
}
params = {
'api_token': self.config['TRACKERS'][self.tracker]['api_key'].strip()
Expand Down
2 changes: 1 addition & 1 deletion src/trackers/SHRI.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ async def upload(self, meta, disctype):
data['season_number'] = meta.get('season_int', '0')
data['episode_number'] = meta.get('episode_int', '0')
headers = {
'User-Agent': f'Upload Assistant/2.1 ({platform.system()} {platform.release()})'
'User-Agent': f'Upload Assistant/2.2 ({platform.system()} {platform.release()})'
}
params = {
'api_token': self.config['TRACKERS'][self.tracker]['api_key'].strip()
Expand Down
2 changes: 1 addition & 1 deletion src/trackers/STC.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ async def upload(self, meta, disctype):
data['season_number'] = meta.get('season_int', '0')
data['episode_number'] = meta.get('episode_int', '0')
headers = {
'User-Agent': f'Upload Assistant/2.1 ({platform.system()} {platform.release()})'
'User-Agent': f'Upload Assistant/2.2 ({platform.system()} {platform.release()})'
}
params = {
'api_token': self.config['TRACKERS'][self.tracker]['api_key'].strip()
Expand Down
2 changes: 1 addition & 1 deletion src/trackers/STT.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ async def upload(self, meta, disctype):
'sticky': 0,
}
headers = {
'User-Agent': f'Upload Assistant/2.1 ({platform.system()} {platform.release()})'
'User-Agent': f'Upload Assistant/2.2 ({platform.system()} {platform.release()})'
}
params = {
'api_token': self.config['TRACKERS'][self.tracker]['api_key'].strip()
Expand Down
2 changes: 1 addition & 1 deletion src/trackers/THR.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async def upload(self, session, meta, disctype):
'tube': meta.get('youtube', '')
}
headers = {
'User-Agent': f'Upload Assistant/2.1 ({platform.system()} {platform.release()})'
'User-Agent': f'Upload Assistant/2.2 ({platform.system()} {platform.release()})'
}
# If pronfo fails, put mediainfo into THR parser
if meta.get('is_disc', '') != 'BDMV':
Expand Down
2 changes: 1 addition & 1 deletion src/trackers/TIK.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ async def upload(self, meta, disctype):
data['season_number'] = meta.get('season_int', '0')
data['episode_number'] = meta.get('episode_int', '0')
headers = {
'User-Agent': f'Upload Assistant/2.1 ({platform.system()} {platform.release()})'
'User-Agent': f'Upload Assistant/2.2 ({platform.system()} {platform.release()})'
}
params = {
'api_token': self.config['TRACKERS'][self.tracker]['api_key'].strip()
Expand Down
2 changes: 1 addition & 1 deletion src/trackers/TL.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async def upload(self, meta, disctype):
'category': cat_id
}
headers = {
'User-Agent': f'Upload Assistant/2.1 ({platform.system()} {platform.release()})'
'User-Agent': f'Upload Assistant/2.2 ({platform.system()} {platform.release()})'
}

if meta['debug'] is False:
Expand Down
2 changes: 1 addition & 1 deletion src/trackers/ULCX.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ async def upload(self, meta, disctype):
data['season_number'] = meta.get('season_int', '0')
data['episode_number'] = meta.get('episode_int', '0')
headers = {
'User-Agent': f'Upload Assistant/2.1 ({platform.system()} {platform.release()})'
'User-Agent': f'Upload Assistant/2.2 ({platform.system()} {platform.release()})'
}
params = {
'api_token': self.config['TRACKERS'][self.tracker]['api_key'].strip()
Expand Down
2 changes: 1 addition & 1 deletion src/trackers/UNIT3D_TEMPLATE.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ async def upload(self, meta, disctype):
data['season_number'] = meta.get('season_int', '0')
data['episode_number'] = meta.get('episode_int', '0')
headers = {
'User-Agent': f'Upload Assistant/2.1 ({platform.system()} {platform.release()})'
'User-Agent': f'Upload Assistant/2.2 ({platform.system()} {platform.release()})'
}
params = {
'api_token': self.config['TRACKERS'][self.tracker]['api_key'].strip()
Expand Down
2 changes: 1 addition & 1 deletion src/trackers/UTP.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async def upload(self, meta, disctype):
data['season_number'] = meta.get('season_int', '0')
data['episode_number'] = meta.get('episode_int', '0')
headers = {
'User-Agent': f'Upload Assistant/2.1 ({platform.system()} {platform.release()})'
'User-Agent': f'Upload Assistant/2.2 ({platform.system()} {platform.release()})'
}
params = {
'api_token': self.config['TRACKERS'][self.tracker]['api_key'].strip()
Expand Down
2 changes: 1 addition & 1 deletion src/trackers/YOINK.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ async def upload(self, meta, disctype):
data['season_number'] = meta.get('season_int', '0')
data['episode_number'] = meta.get('episode_int', '0')
headers = {
'User-Agent': f'Upload Assistant/2.1 ({platform.system()} {platform.release()})'
'User-Agent': f'Upload Assistant/2.2 ({platform.system()} {platform.release()})'
}
params = {
'api_token': self.config['TRACKERS'][self.tracker]['api_key'].strip()
Expand Down

0 comments on commit ce2395a

Please sign in to comment.