Skip to content

Commit 514db05

Browse files
committed
Buon natale a tutti ❤️ * 2
1 parent d7ceca0 commit 514db05

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed
File renamed without changes.

.github/workflows/update_domain.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@ jobs:
3535
sudo sh -c 'echo "nameserver 77.88.8.8" >> /etc/resolv.conf'
3636
3737
- name: Execute domain update script
38-
run: python .github/workflows/script/domain_update.py
38+
run: python .github/script/domain_update.py
3939

4040
- name: Always amend last commit
4141
run: |
4242
git config --global user.name 'github-actions[bot]'
4343
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
4444
45-
if ! git diff --quiet .github/workflows/script/domains.json; then
45+
if ! git diff --quiet .github/script/domains.json; then
4646
echo "📝 Changes detected - amending last commit"
47-
git add .github/workflows/script/domains.json
47+
git add .github/script/domains.json
4848
git commit --amend --no-edit
4949
git push --force-with-lease origin main
5050
else

StreamingCommunity/Util/config_json.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def _load_site_data(self) -> None:
170170

171171
def _load_site_data_online(self) -> None:
172172
"""Load site data from GitHub and update local domains.json file."""
173-
domains_github_url = "https://raw.githubusercontent.com/Arrowar/StreamingCommunity/refs/heads/main/.github/workflows/script/domains.json"
173+
domains_github_url = "https://raw.githubusercontent.com/Arrowar/StreamingCommunity/refs/heads/main/.github/script/domains.json"
174174
headers = {
175175
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)"
176176
}
@@ -198,7 +198,7 @@ def _load_site_data_online(self) -> None:
198198

199199
def _save_domains_to_appropriate_location(self) -> None:
200200
"""Save domains to the appropriate location based on existing files."""
201-
github_domains_path = os.path.join(self.base_path, '.github', 'workflows', 'script', 'domains.json')
201+
github_domains_path = os.path.join(self.base_path, '.github', 'script', 'domains.json')
202202
console.print(f"[cyan]Domain path: [green]{github_domains_path}")
203203

204204
try:
@@ -230,7 +230,7 @@ def _save_domains_to_appropriate_location(self) -> None:
230230
def _load_site_data_from_file(self) -> None:
231231
"""Load site data from local domains.json file."""
232232
try:
233-
github_domains_path = os.path.join(self.base_path, '.github', 'workflows', 'script', 'domains.json')
233+
github_domains_path = os.path.join(self.base_path, '.github', 'script', 'domains.json')
234234

235235
if os.path.exists(github_domains_path):
236236
console.print(f"[cyan]Domain path: [green]{github_domains_path}")
@@ -259,7 +259,7 @@ def _load_site_data_from_file(self) -> None:
259259

260260
def _handle_site_data_fallback(self) -> None:
261261
"""Handle site data fallback in case of error."""
262-
github_domains_path = os.path.join(self.base_path, '.github', 'workflows', 'script', 'domains.json')
262+
github_domains_path = os.path.join(self.base_path, '.github', 'script', 'domains.json')
263263

264264
if os.path.exists(github_domains_path):
265265
console.print("[yellow]Attempting fallback to GitHub structure domains.json file...")

0 commit comments

Comments
 (0)