diff --git a/build.yaml b/build.yaml index 66783f0..7757529 100644 --- a/build.yaml +++ b/build.yaml @@ -1,6 +1,6 @@ name: "Danmu" guid: "5B39DA44-5314-4940-8E26-54C821C17F86" -imageUrl: https://raw.githubusercontent.com/cxfksword/jellyfin-plugin-danmu/main/doc/logo.png +imageUrl: https://github.com/cxfksword/jellyfin-plugin-danmu/raw/main/doc/logo.png version: "1.0.0.0" targetAbi: "10.8.0.0" framework: "net6.0" diff --git a/build_plugin.py b/build_plugin.py index dac9ba4..77cb1a5 100644 --- a/build_plugin.py +++ b/build_plugin.py @@ -49,4 +49,11 @@ os.system('jprm repo add --url=%s %s %s' % (jellyfin_repo_url, jellyfin_repo_fil os.system('sed -i "s/\/danmu\//\/%s\//" %s' % (git_version, jellyfin_repo_file)) + +# 国内加速 +jellyfin_repo_file_cn = jellyfin_repo_file.replace(".json", "_cn.json") +os.system('cp -f %s %s' % (jellyfin_repo_file, jellyfin_repo_file_cn)) +os.system('sed "s/github.com/ghproxy.com\/https:\/\/github.com/g" "%s"' % (jellyfin_repo_file_cn)) + + print(version) diff --git a/doc/manifest-template.json b/doc/manifest-template.json index 1ac9fd8..966f5ad 100644 --- a/doc/manifest-template.json +++ b/doc/manifest-template.json @@ -6,7 +6,7 @@ "overview": "jellyfin\u5f39\u5e55\u4e0b\u8f7d\u63d2\u4ef6", "owner": "cxfksword", "category": "Metadata", - "imageUrl": "https://raw.githubusercontent.com/cxfksword/jellyfin-plugin-danmu/main/doc/logo.png", + "imageUrl": "https://github.com/cxfksword/jellyfin-plugin-danmu/raw/main/doc/logo.png", "versions": [] } ]