Skip to content

Commit

Permalink
fix country code
Browse files Browse the repository at this point in the history
  • Loading branch information
JediLin authored Dec 22, 2024
1 parent 93ab3eb commit c6de1cb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Phonak Target Checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
updaterRetries = libhearingdownloader.updaterRetries
while updaterRetries > 0:
try:
xmlData = requests.get("https://p-svc1.phonakpro.com/1/ObjectLocationService.svc/FittingApplicationInstaller/index?appName=Phonak%20Target&appVer=6.0.1.695&dist=Phonak&country=UK&subKeys=").text # Request the updater API (spoof older version to get whole installer files rather than "patch" installers)
xmlData = requests.get("https://p-svc1.phonakpro.com/1/ObjectLocationService.svc/FittingApplicationInstaller/index?appName=Phonak%20Target&appVer=6.0.1.695&dist=Phonak&country=GB&subKeys=").text # Request the updater API (spoof older version to get whole installer files rather than "patch" installers)
data = xml.fromstring(xmlData)
break
except:
Expand Down
2 changes: 1 addition & 1 deletion Phonak Target Media Checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
hostXmlData = requests.get("https://p-svc1.phonakpro.com/1/ObjectLocationService.svc/FittingApplicationInstaller/index?appName=Phonak%20Target&appVer=6.0.1.695&dist=Phonak&country=US&subKeys=").text # Request the updater API (spoof older version to get whole installer files rather than "patch" installers)
hostData = xml.fromstring(hostXmlData)
hostAppVer = hostData[0].find(xmlns + "UpdateVersion").find(xmlns + "Version").text
xmlData = requests.get("https://p-svc1.phonakpro.com/1/ObjectLocationService.svc/MediaInstaller/index?appName=Target%20Media&appVer=0.0.0.0;" + hostAppVer + "&dist=Phonak&country=US&subKeys=").text # Request the updater API with the latest version number of Phonak Target
xmlData = requests.get("https://p-svc1.phonakpro.com/1/ObjectLocationService.svc/MediaInstaller/index?appName=Target%20Media&appVer=0.0.0.0;" + hostAppVer + "&dist=Phonak&country=GB&subKeys=").text # Request the updater API with the latest version number of Phonak Target
data = xml.fromstring(xmlData)
break
except:
Expand Down
4 changes: 2 additions & 2 deletions Phonak Target Sounds Checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@
updaterRetries = libhearingdownloader.updaterRetries
while updaterRetries > 0:
try:
hostXmlData = requests.get("https://p-svc1.phonakpro.com/1/ObjectLocationService.svc/FittingApplicationInstaller/index?appName=Phonak%20Target&appVer=6.0.1.695&dist=Phonak&country=UK&subKeys=").text # Request the updater API (spoof older version to get whole installer files rather than "patch" installers)
hostXmlData = requests.get("https://p-svc1.phonakpro.com/1/ObjectLocationService.svc/FittingApplicationInstaller/index?appName=Phonak%20Target&appVer=6.0.1.695&dist=Phonak&country=GB&subKeys=").text # Request the updater API (spoof older version to get whole installer files rather than "patch" installers)
hostData = xml.fromstring(hostXmlData)
hostAppVer = hostData[0].find(xmlns + "UpdateVersion").find(xmlns + "Version").text
xmlData = requests.get("https://p-svc1.phonakpro.com/1/ObjectLocationService.svc/SoundsInstaller/index?appName=Target%20Sounds&appVer=0.0.0.0;" + hostAppVer + "&dist=Phonak&country=US&subKeys=").text # Request the updater API with the latest version number of Phonak Target
xmlData = requests.get("https://p-svc1.phonakpro.com/1/ObjectLocationService.svc/SoundsInstaller/index?appName=Target%20Sounds&appVer=0.0.0.0;" + hostAppVer + "&dist=Phonak&country=GB&subKeys=").text # Request the updater API with the latest version number of Phonak Target
data = xml.fromstring(xmlData)
break
except:
Expand Down

0 comments on commit c6de1cb

Please sign in to comment.