mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[api/core/downloader] User-Agent update
This commit is contained in:
parent
ace9ce8b5d
commit
7046b06f14
|
@ -10,7 +10,7 @@ from legendary.models.exceptions import InvalidCredentialsError
|
|||
|
||||
|
||||
class EPCAPI:
|
||||
_user_agent = 'UELauncher/10.18.6-14188424+++Portal+Release-Live Windows/10.0.18363.1.256.64bit'
|
||||
_user_agent = 'UELauncher/10.19.2-14598295+++Portal+Release-Live Windows/10.0.19041.1.256.64bit'
|
||||
# required for the oauth request
|
||||
_user_basic = '34a02cf8f4414e29b15921876da36f9a'
|
||||
_pw_basic = 'daafbccc737745039dffe53d94fc76cf'
|
||||
|
|
|
@ -104,8 +104,8 @@ class LegendaryCore:
|
|||
'X-Requested-With': 'XMLHttpRequest',
|
||||
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) '
|
||||
'AppleWebKit/537.36 (KHTML, like Gecko) '
|
||||
'EpicGamesLauncher/10.18.6-14188424+++Portal+Release-Live '
|
||||
'UnrealEngine/4.23.0-14188424+++Portal+Release-Live '
|
||||
'EpicGamesLauncher/10.19.2-14598295+++Portal+Release-Live '
|
||||
'UnrealEngine/4.23.0-14598295+++Portal+Release-Live '
|
||||
'Chrome/59.0.3071.15 Safari/537.36'
|
||||
})
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ class DLWorker(Process):
|
|||
self.o_q = out_queue
|
||||
self.session = requests.session()
|
||||
self.session.headers.update({
|
||||
'User-Agent': 'EpicGamesLauncher/10.18.6-14188424+++Portal+Release-Live Windows/10.0.18363.1.256.64bit'
|
||||
'User-Agent': 'EpicGamesLauncher/10.19.2-14598295+++Portal+Release-Live Windows/10.0.19041.1.256.64bit'
|
||||
})
|
||||
self.max_retries = max_retries
|
||||
self.shm = SharedMemory(name=shm)
|
||||
|
|
Loading…
Reference in a new issue