Skip to content

Commit

Permalink
Fix Transmission
Browse files Browse the repository at this point in the history
  • Loading branch information
xavivars committed Oct 13, 2023
1 parent 5847c03 commit 4be8ec2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ def debian_route():
return "NoData", 404



@app.route("/fedora")
def fedora_route():
r = fedora.get()
Expand All @@ -189,6 +188,7 @@ def opensuse_route():
return "NoData", 404



def __jsonify(r):
r = sorted(r, key=lambda x: x['download_os'], reverse=True)
return jsonify(r)
Expand Down
6 changes: 3 additions & 3 deletions transmission/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ def get():
download_data(
version,
get_size=True,
url=f"https://github.com/transmission/transmission-releases/raw/master/Transmission-{version}.dmg",
url=f"https://github.com/transmission/transmission/releases/download/{version}/Transmission-{version}.dmg",
os='osx'
),
download_data(
version,
get_size=True,
url=f"https://github.com/transmission/transmission-releases/raw/master/transmission-{version}-x64.msi",
url=f"https://github.com/transmission/transmission/releases/download/{version}/transmission-{version}-x64.msi",
arch='x86_64',
os='windows'
),
download_data(
version,
get_size=True,
url=f"https://github.com/transmission/transmission-releases/raw/master/transmission-{version}-x86.msi",
url=f"https://github.com/transmission/transmission/releases/download/{version}/transmission-{version}-x86.msi",
arch='x86',
os='windows'
)
Expand Down

0 comments on commit 4be8ec2

Please sign in to comment.