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

Commit

Permalink
Jellyfin broken download link update
Browse files Browse the repository at this point in the history
  • Loading branch information
biplobsd committed Jan 25, 2022
1 parent d4ee5eb commit 896a809
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions OneClickRun.ipynb
Expand Up @@ -203,7 +203,7 @@
"TOKEN = \"\" # @param {type:\"string\"}\n",
"LATEST_VERSION = False # @param {type:\"boolean\"}\n",
"CUSTOM_VERSION = \"10.7.6\" # @param {type:\"string\"} \n",
"#@markdown <small>&emsp;Version are available on https://repo.jellyfin.org/releases/server/linux/versions/stable/combined/</small>\n",
"#@markdown <small>&emsp;Version are available on https://repo.jellyfin.org/archive/linux/stable/</small>\n",
"REGION = \"SA\" #@param [\"US\", \"EU\", \"AP\", \"AU\", \"SA\", \"JP\", \"IN\"]\n",
"PORT_FORWARD = \"argotunnel\" #@param [\"ngrok\", \"localhost\", \"argotunnel\"]\n",
"#@markdown Default <br>&emsp;username : admin\n",
Expand Down Expand Up @@ -247,7 +247,7 @@
" os.chmod(f\"/usr/bin/{name}\", 0o755)\n",
"\n",
"def customVersionSelect():\n",
" allVersionPage = requests.get(\"https://repo.jellyfin.org/releases/server/linux/versions/stable/combined/\").text\n",
" allVersionPage = requests.get(\"https://repo.jellyfin.org/archive/linux/stable/\").text\n",
" allVersinoTags = re.findall(r'\">(\\d+\\.\\d+\\.\\d+)', allVersionPage, re.M)\n",
" option_list = sorted(allVersinoTags, reverse=True)\n",
" dropdown = Select(description=\"Choose one:\", options=option_list)\n",
Expand Down Expand Up @@ -275,9 +275,9 @@
" if LATEST_VERSION:\n",
" serverUrl = \"https://repo.jellyfin.org/releases/server/linux/stable/combined/\"\n",
" elif CUSTOM_VERSION:\n",
" serverUrl = f\"https://repo.jellyfin.org/releases/server/linux/versions/stable/combined/{CUSTOM_VERSION}/\"\n",
" serverUrl = f\"https://repo.jellyfin.org/archive/linux/stable/{CUSTOM_VERSION}/combined/\"\n",
" else:\n",
" serverUrl = f\"https://repo.jellyfin.org/releases/server/linux/versions/stable/combined/{version.new}/\"\n",
" serverUrl = f\"https://repo.jellyfin.org/archive/linux/stable/{version.new}/combined/\"\n",
"\n",
" server = requests.get(serverUrl).text\n",
" server_file = re.search(r'f=\\\"(.+)\\\">jellyfin_(.+)\\.tar\\.gz<',\n",
Expand Down

0 comments on commit 896a809

Please sign in to comment.