Skip to content
This repository has been archived by the owner on Nov 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #10 from rix1337/dev
Browse files Browse the repository at this point in the history
v.1.3.8 - Detect offline apps.json
  • Loading branch information
rix1337 authored Jul 25, 2024
2 parents d7bd441 + 603f9b1 commit 7338a20
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion altstore_proxy/providers/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


def get_version():
return "1.3.7"
return "1.3.8"


def create_version_file():
Expand Down
22 changes: 12 additions & 10 deletions altstore_proxy/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,18 @@ def cache_repositories(shared_state_dict, shared_state_lock):

for repo in shared_state.values["repos_to_cache"]:
response = requests.get(repo)
data = response.json()
for app in data['apps']:
print("Found " + app['name'] + ", v." + app['version'])
app['filename'], skipped = download_and_cache_ipa(app)
app['downloadURL'] = shared_state.values["baseurl"] + '/cache/' + app['filename']
if response.status_code == 200:
data = response.json()
for app in data['apps']:
print("Found " + app['name'] + ", v." + app['version'])
app['filename'], skipped = download_and_cache_ipa(app)
app['downloadURL'] = shared_state.values["baseurl"] + '/cache/' + app['filename']

if not skipped:
if shared_state.values['discord_webhook']:
notifications.discord_webhook(shared_state, app)
if not skipped:
if shared_state.values['discord_webhook']:
notifications.discord_webhook(shared_state, app)

merged_json['apps'].extend(data['apps'])
merged_json['apps'].extend(data['apps'])

shared_state.update("merged_json", merged_json)

Expand Down Expand Up @@ -185,7 +186,8 @@ def main():
print("[AltStore-Proxy] Using custom repositories: " + str(shared_state.values["repos_to_cache"]))
else:
shared_state.update("repos_to_cache", [
"https://raw.githubusercontent.com/arichornlover/arichornlover.github.io/main/apps.json",
"https://raw.githubusercontent.com/arichornloverALT/arichornloverALT.github.io/main/apps.json",
# "https://raw.githubusercontent.com/arichornlover/arichornlover.github.io/main/apps.json",
"https://raw.githubusercontent.com/lo-cafe/winston-altstore/main/apps.json"
])
print("[AltStore-Proxy] No repositories provided, using default repositories: " + str(
Expand Down

0 comments on commit 7338a20

Please sign in to comment.