diff --git a/build_plugin.py b/build_plugin.py index 456cbe0..262e72b 100644 --- a/build_plugin.py +++ b/build_plugin.py @@ -28,6 +28,7 @@ if prerelease: jellyfin_repo_file = "./manifest-unstable.json" else: jellyfin_repo_file = "./manifest.json" +jellyfin_repo_file_cn = jellyfin_repo_file.replace(".json", "_cn.json") jellyfin_repo_url = "https://github.com/cxfksword/jellyfin-plugin-danmu/releases/download" @@ -38,4 +39,9 @@ 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)) +os.system('cp -f %s %s' % (jellyfin_repo_file, jellyfin_repo_file_cn)) + +os.system('sed "s/github.com/raw.iqiq.io/" %s' % (jellyfin_repo_file_cn)) + + print(version) diff --git a/manifest.json b/manifest.json index fcde5a7..966f5ad 100644 --- a/manifest.json +++ b/manifest.json @@ -1,53 +1,12 @@ [ - { - "guid": "5b39da44-5314-4940-8e26-54c821c17f86", - "name": "Danmu", - "description": "jellyfin\u7684b\u7ad9\u5f39\u5e55\u81ea\u52a8\u4e0b\u8f7d\u63d2\u4ef6\uff0c\u4f1a\u5339\u914db\u7ad9\u756a\u5267/\u7535\u5f71\u89c6\u9891\uff0c\u81ea\u52a8\u4e0b\u8f7d\u5bf9\u5e94\u5f39\u5e55\uff0c\u5e76\u5b9a\u65f6\u66f4\u65b0\u3002\n", - "overview": "jellyfin\u5f39\u5e55\u4e0b\u8f7d\u63d2\u4ef6", - "owner": "cxfksword", - "category": "Metadata", - "imageUrl": "https://github.com/cxfksword/jellyfin-plugin-danmu/raw/main/doc/logo.png", - "versions": [ - { - "version": "0.2.0.0", - "changelog": "NA\n", - "targetAbi": "10.8.0.0", - "sourceUrl": "https://github.com/cxfksword/jellyfin-plugin-danmu/releases/download/v0.2.0/danmu_0.2.0.0.zip", - "checksum": "31f87c313b5ea1cd974766666db26fdc", - "timestamp": "2022-10-11T08:19:43Z" - }, - { - "version": "0.1.9.0", - "changelog": "NA\n", - "targetAbi": "10.8.0.0", - "sourceUrl": "https://github.com/cxfksword/jellyfin-plugin-danmu/releases/downloadv0.1.9/danmu_0.1.9.0.zip", - "checksum": "a9f4f19ded5cbeb715ae91cb8b81bb58", - "timestamp": "2022-10-11T08:15:58Z" - }, - { - "version": "0.1.8.0", - "changelog": "NA\n", - "targetAbi": "10.8.0.0", - "sourceUrl": "https://github.com/cxfksword/jellyfin-plugin-danmu/releases/download0.1.8.0/danmu_0.1.8.0.zip", - "checksum": "f16ea28bb0c147a2e93a992f8b6a2b6a", - "timestamp": "2022-10-11T08:09:00Z" - }, - { - "version": "0.1.7.0", - "changelog": "NA\n", - "targetAbi": "10.8.0.0", - "sourceUrl": "https://github.com/cxfksword/jellyfin-plugin-danmu/releases/download/v0.1.70.1.8.0/danmu_0.1.7.0.zip", - "checksum": "2e7d26cada6a9629e7b3b22950474e3d", - "timestamp": "2022-10-11T07:49:28Z" - }, - { - "version": "0.1.5.0", - "changelog": "NA\n", - "targetAbi": "10.8.0.0", - "sourceUrl": "https://github.com/cxfksword/jellyfin-plugin-0.1.5.0/releases/download0.1.8.0/danmu_0.1.5.0.zip", - "checksum": "4c2ad7a688a766e7b4a75509ef1f635c", - "timestamp": "2022-10-11T07:20:11Z" - } - ] - } -] \ No newline at end of file + { + "guid": "5b39da44-5314-4940-8e26-54c821c17f86", + "name": "Danmu", + "description": "jellyfin\u7684b\u7ad9\u5f39\u5e55\u81ea\u52a8\u4e0b\u8f7d\u63d2\u4ef6\uff0c\u4f1a\u5339\u914db\u7ad9\u756a\u5267/\u7535\u5f71\u89c6\u9891\uff0c\u81ea\u52a8\u4e0b\u8f7d\u5bf9\u5e94\u5f39\u5e55\uff0c\u5e76\u5b9a\u65f6\u66f4\u65b0\u3002\n", + "overview": "jellyfin\u5f39\u5e55\u4e0b\u8f7d\u63d2\u4ef6", + "owner": "cxfksword", + "category": "Metadata", + "imageUrl": "https://github.com/cxfksword/jellyfin-plugin-danmu/raw/main/doc/logo.png", + "versions": [] + } +]