Skip to content

Commit

Permalink
Update run.yml
Browse files Browse the repository at this point in the history
YouTube update
  • Loading branch information
misha-tgshv authored Mar 9, 2025
1 parent c70e0b9 commit df57eff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,12 @@ jobs:
steps:
- name: Создаем файл YT-Premium-V1-RU.module
run: |
# Скачиваем исходный модуль
curl -sSL https://raw.githubusercontent.com/YanbingJiang/Shadowrocket_diy_rules/9b86dfbca387fa69e8d4b02d3f8ba01250eaad16/Modules/YT-Premium-V1.module \
| sed -E 's/captionLang:zh-Hans/captionLang:off/g; s/lyricLang:zh-Hans/lyricLang:ru-ru/g' > YT-Premium-V1-RU.module
sed -i 's|https://raw\.githubusercontent\.com/Maasea/sgmodule/refs/heads/master/Script/Youtube/youtube\.response\.js|https://raw.githubusercontent.com/misha-tgshv/shadowrocket-configuration-file/refs/heads/release/scripts/rewrite.youtube.response.preview.js|g' YT-Premium-V1-RU.module
# Заменяем URL в строке youtube.response
sed -i 's|https://raw\.githubusercontent\.com/Maasea/sgmodule/master/Script/Youtube/dist/youtube\.response\.preview\.js|https://raw.githubusercontent.com/misha-tgshv/shadowrocket-configuration-file/refs/heads/release/scripts/rewrite.youtube.response.preview.js|g' YT-Premium-V1-RU.module
- name: Перемещаем файлы в директорю modules
run: |
mkdir -p modules.d
Expand Down

0 comments on commit df57eff

Please sign in to comment.