Compare commits
4 Commits
Author | SHA1 | Date |
---|---|---|
![]() |
65325e5089 | |
|
7bedeac38d | |
|
3316e3bbab | |
|
3bb25b70a9 |
|
@ -104,10 +104,7 @@ const list_tracks = (tracks) =>
|
||||||
|
|
||||||
const footer = (tracks, config) =>
|
const footer = (tracks, config) =>
|
||||||
html`
|
html`
|
||||||
<div class="footer">
|
<div class="footer"></div>`;
|
||||||
${list_tracks(tracks)}
|
|
||||||
${music.music_credits(config)}
|
|
||||||
</div>`;
|
|
||||||
|
|
||||||
|
|
||||||
const update_main_slide = (data, time, config) => {
|
const update_main_slide = (data, time, config) => {
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
import requests
|
||||||
|
import json
|
||||||
|
|
||||||
|
# URL der JSON-Datei
|
||||||
|
url = "https://cfp.ctbk.de/fsck-2025/schedule/export/schedule.json"
|
||||||
|
|
||||||
|
# Herunterladen der JSON-Datei
|
||||||
|
response = requests.get(url)
|
||||||
|
if response.status_code == 200:
|
||||||
|
data = response.json()
|
||||||
|
|
||||||
|
# Ändern der JSON-Daten
|
||||||
|
for day in data["schedule"]["conference"]["days"]:
|
||||||
|
for room, talks in day['rooms'].items():
|
||||||
|
for talk in talks:
|
||||||
|
if 'do_not_record' in talk and talk['do_not_record'] is False:
|
||||||
|
if 'recording_license' in talk and talk['recording_license'] == "":
|
||||||
|
talk['recording_license'] = "CC-BY-4.0"
|
||||||
|
|
||||||
|
# Speichern der geänderten JSON-Datei
|
||||||
|
with open("static/schedule.json", "w") as f:
|
||||||
|
json.dump(data, f, indent=4)
|
||||||
|
|
||||||
|
print("Die JSON-Datei wurde erfolgreich heruntergeladen und modifiziert.")
|
||||||
|
else:
|
||||||
|
print("Fehler beim Herunterladen der JSON-Datei.")
|
1407
static/schedule.json
1407
static/schedule.json
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue