Update app.py
Browse files
app.py
CHANGED
@@ -444,14 +444,14 @@ def playlist_events():
|
|
444 |
|
445 |
def fetch_schedule_data():
|
446 |
"""Holt die aktuellen Sendeplandaten von der Website"""
|
447 |
-
url = "https://
|
448 |
headers = {
|
449 |
-
"authority": "
|
450 |
"accept": "*/*",
|
451 |
"accept-encoding": "gzip, deflate, br, zstd",
|
452 |
"accept-language": "de-DE,de;q=0.9",
|
453 |
"priority": "u=1, i",
|
454 |
-
"referer": "https://
|
455 |
"sec-ch-ua": '"Brave";v="137", "Chromium";v="137", "Not/A)Brand";v="24"',
|
456 |
"sec-ch-ua-mobile": "?0",
|
457 |
"sec-ch-ua-platform": '"Windows"',
|
@@ -516,11 +516,11 @@ def json_to_m3u(data, host_url):
|
|
516 |
try:
|
517 |
channel_id_int = int(channel_id)
|
518 |
if channel_id_int > 999:
|
519 |
-
stream_url = f"https://
|
520 |
else:
|
521 |
-
stream_url = f"https://
|
522 |
except (ValueError, TypeError):
|
523 |
-
stream_url = f"https://
|
524 |
|
525 |
# Generiere den Proxy-Link im gewünschten Format
|
526 |
proxy_url = f"{host_url}/proxy/m3u?url={stream_url}"
|
|
|
444 |
|
445 |
def fetch_schedule_data():
|
446 |
"""Holt die aktuellen Sendeplandaten von der Website"""
|
447 |
+
url = "https://thedaddy.click/schedule/schedule-generated.php"
|
448 |
headers = {
|
449 |
+
"authority": "thedaddy.click",
|
450 |
"accept": "*/*",
|
451 |
"accept-encoding": "gzip, deflate, br, zstd",
|
452 |
"accept-language": "de-DE,de;q=0.9",
|
453 |
"priority": "u=1, i",
|
454 |
+
"referer": "https://thedaddy.click/",
|
455 |
"sec-ch-ua": '"Brave";v="137", "Chromium";v="137", "Not/A)Brand";v="24"',
|
456 |
"sec-ch-ua-mobile": "?0",
|
457 |
"sec-ch-ua-platform": '"Windows"',
|
|
|
516 |
try:
|
517 |
channel_id_int = int(channel_id)
|
518 |
if channel_id_int > 999:
|
519 |
+
stream_url = f"https://thedaddy.click/stream/bet.php?id=bet{channel_id}"
|
520 |
else:
|
521 |
+
stream_url = f"https://thedaddy.click/stream/stream-{channel_id}.php"
|
522 |
except (ValueError, TypeError):
|
523 |
+
stream_url = f"https://thedaddy.click/stream/stream-{channel_id}.php"
|
524 |
|
525 |
# Generiere den Proxy-Link im gewünschten Format
|
526 |
proxy_url = f"{host_url}/proxy/m3u?url={stream_url}"
|