Skip to content

Commit c1f5aff

Browse files
Bump v3.2.9
* Bump v3.2.8 * Adjust process name * Add feature to script (#352) * Bump v3.2.8 * Aggiungi start.sh a .gitignore (debug file) * Aggiungi supporto per la selezione del sito e query di ricerca tramite argomento da riga di comando * Aggiungi aiuto dinamico per i siti disponibili nel parser degli argomenti * Aggiungi esempi di utilizzo per la ricerca di siti specifici nel README.md * Aggiungi l'opzione --auto-first per scaricare automaticamente il primo risultato della ricerca nel parser degli argomenti e aggiorna il README.md con esempi di utilizzo. * Delete .github/.domain/domains.json --------- Co-authored-by: Lovi <[email protected]> * Fix cdm_device_path none * Restore run * Add cdm check * Aggiunta client HTTP unificato per migliorare la gestione delle richieste (#354) * Aggiungi un client HTTP unificato per migliorare la gestione delle richieste in tutto il progetto * Aggiungi supporto per il controllo della qualità del codice con ruff e documentazione per i git hooks * Fix per gli ultimi client rimasti * Prima run ruff check --fix * Seconda passata * Terza passata ruff check --fix --exclude Test * quarta passata ruff check --fix --exclude Test --exclude .github * quinta passata "ruff check --fix --exclude Test --exclude .github" = All checks passed! * Rimosso base_url= e semplificato config.json * Restore config originale * Remove .githook * Update requirements.txt * Aggiunta del sistema di hook/plugin per eseguire script personalizzati (#358) * Aggiunta del sistema di hook/plugin per eseguire script personalizzati prima e dopo l'esecuzione principale. Aggiornato config.json per includere la sezione HOOKS e implementata la logica di esecuzione degli hook in run.py. Aggiunto test manuale per verificare l'esecuzione degli hook. * Aggiunta della gestione della stampa degli stdout e stderr degli hook con logging e console. Modificato l'ordine di inizializzazione per garantire l'esecuzione corretta degli hook pre_run. * Restore origin segments dash download * playback_json non è statico * Aggiunto print series_name per ogni serie * Bump v3.2.9 * Delete .github/.domain/domains.json * Create domains.json * Update version.py --------- Co-authored-by: Francesco Grazioso <[email protected]>
1 parent f1c3ce5 commit c1f5aff

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+1720
-983
lines changed

.github/.domain/domain_update.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,16 @@ def check_dns_resolution(domain):
116116
try:
117117
answers = resolver.resolve(domain, 'A')
118118
return str(answers[0])
119-
except:
119+
except Exception:
120120
try:
121121
answers = resolver.resolve(domain, 'AAAA')
122122
return str(answers[0])
123-
except:
123+
124+
except Exception:
124125
pass
125126
return None
126-
except:
127+
128+
except Exception:
127129
return None
128130

129131
def find_new_domain(input_url, output_file=None, verbose=True, json_output=False):
@@ -141,7 +143,7 @@ def find_new_domain(input_url, output_file=None, verbose=True, json_output=False
141143
if orig_ip:
142144
log(f"Original domain resolves to: {orig_ip}", "SUCCESS")
143145
else:
144-
log(f"Original domain does not resolve to an IP address", "WARNING")
146+
log("Original domain does not resolve to an IP address", "WARNING")
145147

146148
headers = get_headers()
147149
new_domains = []
@@ -182,7 +184,7 @@ def find_new_domain(input_url, output_file=None, verbose=True, json_output=False
182184
new_domains.append({'domain': redirect_domain_info_val['full_domain'], 'url': next_url, 'source': 'redirect'})
183185

184186
else:
185-
log(f"Redirect status code but no Location header", "WARNING")
187+
log("Redirect status code but no Location header", "WARNING")
186188
break
187189
else:
188190
break
@@ -250,7 +252,7 @@ def find_new_domain(input_url, output_file=None, verbose=True, json_output=False
250252
except httpx.RequestError as e:
251253
log(f"Error with auto-redirect attempt: {str(e)}", "ERROR")
252254
except NameError:
253-
log(f"Error: URL for auto-redirect attempt was not defined.", "ERROR")
255+
log("Error: URL for auto-redirect attempt was not defined.", "ERROR")
254256

255257
unique_domains = []
256258
seen_domains = set()

.github/.domain/domains.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@
5959
"old_domain": "city",
6060
"time_change": "2025-08-05 14:26:46"
6161
}
62-
}
62+
}

.github/workflows/testing.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,20 @@ jobs:
9090
9191
- name: Run MP4 download test
9292
run: |
93-
PYTHONPATH=$PYTHONPATH:$(pwd) python -m unittest Test.Download.MP4
93+
PYTHONPATH=$PYTHONPATH:$(pwd) python -m unittest Test.Download.MP4
94+
95+
ruff-lint:
96+
name: Lint with Ruff
97+
runs-on: ubuntu-latest
98+
steps:
99+
- uses: actions/checkout@v3
100+
- name: Set up Python
101+
uses: actions/setup-python@v4
102+
with:
103+
python-version: '3.11'
104+
- name: Install Ruff
105+
run: |
106+
python -m pip install ruff
107+
- name: Run Ruff check
108+
run: |
109+
ruff check . --fix --exclude Test --exclude .github

.github/workflows/update-loc.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,5 @@ cmd.txt
5252
bot_config.json
5353
scripts.json
5454
active_requests.json
55-
working_proxies.json
55+
working_proxies.json
56+
start.sh

0 commit comments

Comments
 (0)