From 334c0df4fe23b0c00c182de06c8d6f7000f1a121 Mon Sep 17 00:00:00 2001 From: cxfksword Date: Tue, 11 Oct 2022 18:48:51 +0800 Subject: [PATCH] Fix github action build --- build_plugin.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build_plugin.py b/build_plugin.py index f7deed3..dac9ba4 100644 --- a/build_plugin.py +++ b/build_plugin.py @@ -27,16 +27,16 @@ version = '.'.join(version_list) if prerelease: jellyfin_repo_file = "./manifest-unstable.json" - jellyfin_manifest = "https://github.com/cxfksword/jellyfin-plugin-danmu/releases/manifest/download/manifest-unstable.json" + jellyfin_old_manifest = "https://github.com/cxfksword/jellyfin-plugin-danmu/releases/manifest/download/manifest-unstable.json" else: jellyfin_repo_file = "./manifest.json" - jellyfin_manifest = "https://github.com/cxfksword/jellyfin-plugin-danmu/releases/manifest/download/manifest.json" + jellyfin_old_manifest = "https://github.com/cxfksword/jellyfin-plugin-danmu/releases/manifest/download/manifest.json" # download old manifest jellyfin_manifest_template = "./doc/manifest-template.json" -os.system('wget -q "%s"' % (jellyfin_manifest)) -if not os.path.isfile(jellyfin_manifest): - os.system('cp -f %s %s' % (jellyfin_manifest_template, jellyfin_manifest)) +os.system('wget -q "%s"' % (jellyfin_old_manifest)) +if not os.path.isfile(jellyfin_repo_file): + os.system('cp -f %s %s' % (jellyfin_manifest_template, jellyfin_repo_file)) # build and generate new manifest