Skip to content
This repository was archived by the owner on Jan 16, 2026. It is now read-only.

Commit 48081b0

Browse files
committed
Update .dockerignore to exclude *.exe files and modify Icecast status URL in StreamRecorder
1 parent eb6d214 commit 48081b0

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

.dockerignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ __pycache__
88
.DS_Store
99
.env
1010
logs
11-
CURRENTLY_RECORDING
11+
CURRENTLY_RECORDING
12+
*.exe

main.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,10 @@ def fetch_icecast_status_json(
251251
return json_data
252252
else:
253253
app_log.info(f"Error fetching Icecast status: {response.status_code}")
254-
return self.fetch_icecast_status_json("http://hbniaudio.hbni.net:8000")
254+
return self.fetch_icecast_status_json("http://hbniaudio.hbni.net:443")
255255
except Exception as e:
256256
app_log.error(f"Error fetching Icecast status: {e}")
257-
return self.fetch_icecast_status_json("http://hbniaudio.hbni.net:8000")
257+
return self.fetch_icecast_status_json("http://hbniaudio.hbni.net:443")
258258

259259
def process_sources(
260260
self, sources: dict[str, str] | list[dict[str, str]]
@@ -274,6 +274,11 @@ def remove_stream(self, host: str):
274274

275275
def run(self):
276276
self.send_notification()
277+
278+
# stream = Stream("Springhill", "http://hbniaudio.hbni.net:443", "springhill", "Springhill/Odanah/Cascade singing in memory of Dave Stahl(Bon Homme)", self.remove_stream)
279+
# self.active_streams["springhill"] = stream
280+
# stream.start_recording()
281+
277282
while True:
278283
try:
279284
status_data = self.fetch_icecast_status_json()
@@ -293,7 +298,7 @@ def run(self):
293298

294299
if (
295300
host not in self.active_streams and "test" not in host.lower() and "test" not in description.lower()
296-
# and not is_recording #
301+
and not is_recording # It is being recorded by HBNI Audio
297302
):
298303
stream = Stream(title, icecast_source, host, description, self.remove_stream)
299304
self.active_streams[host] = stream
@@ -373,6 +378,7 @@ def start_recorder():
373378

374379

375380
def main() -> None:
381+
376382
threading.Thread(target=start_recorder).start()
377383
threading.Thread(target=start_log_server).start()
378384

0 commit comments

Comments
 (0)