-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to get the release date for an old AppGallery app #1630
Comments
This URL seems to be different from AppGallery pages I've seen before - it leads to a direct download, and https://appgallery.huawei.com/app/C104450749 is empty. It might not be possible to use it since we can't get a valid app ID or release date. Do you have a link to the actual app listing page? |
That seems to mean that the app is geo-restricted. I haven't expected that. The page I see following https://appgallery.huawei.com/app/C104450749 looks like this: The page also reads that the app was updated on 10/31/2022. I couldn't find another app that's that old. I'm unsure if the issue is relevant for anyone but me, then. |
Obtainium fails to find the release date for
https://appgallery.cloud.huawei.com/appdl/C104450749
and, possibly, other apps published years ago.Steps to Reproduce:
https://appgallery.cloud.huawei.com/appdl/C104450749
.FormatException: Trying to read yy from ru-/d-l/-ap-pd-l/-ap-pl-ic-at-io-n/-ap-k/-32-/3-2d-dd-aa-c6-30-34-75-b9-6d-cb-98-04-da-16-96-4/-16-66-97-26-48-78-4--16-55-e5-a0--e-85-5--46-33--9-34-6--42-66-7a-74-4c-5c at 0
or another beginning.Investigation
The server redirects to
https://appdlc-drru.hispace.dbankcloud.ru/dl/appdl/application/apk/32/32dddaac6303475b96dcb9804da16964/1666972648784-1655e5a0-e855-4633-9346-42667a744c5c.apk?maple=0&trackId=0&distOpEntity=HKS
The app adds numerous dashes due to the lines:
Obtainium/lib/app_sources/huaweiappgallery.dart
Lines 80 to 84 in cbe41de
Before that, the app gets the first part of the URL:
Obtainium/lib/app_sources/huaweiappgallery.dart
Lines 76 to 77 in cbe41de
Namely,
res.headers['location']
ishttps://appdlc-drru.hispace.dbankcloud.ru/dl/appdl/application/apk/32/32dddaac6303475b96dcb9804da16964/1666972648784-1655e5a0-e855-4633-9346-42667a744c5c.apk?maple=0&trackId=0&distOpEntity=HKS
(or another host, depending on the load balancer).res.headers['location']?.split('?')[0]
ishttps://appdlc-drru.hispace.dbankcloud.ru/dl/appdl/application/apk/32/32dddaac6303475b96dcb9804da16964/1666972648784-1655e5a0-e855-4633-9346-42667a744c5c.apk
(or another host, depending on the load balancer).res.headers['location']?.split('?')[0].split('.').reversed.toList()[1]
isru/dl/appdl/application/apk/32/32dddaac6303475b96dcb9804da16964/1666972648784-1655e5a0-e855-4633-9346-42667a744c5c
(or another beginning, depending on the load balancer).See that the latter contains no
'.'
.The Solution
Check whether
relDateStr
contains a'/'
.Obtainium/lib/app_sources/huaweiappgallery.dart
Lines 78 to 87 in cbe41de
The text was updated successfully, but these errors were encountered: