Compare commits
2 Commits
bf4550ef53
...
0dd77a73df
| Author | SHA1 | Date | |
|---|---|---|---|
| 0dd77a73df | |||
| 39fd70cba5 |
40
CHANGELOG.md
40
CHANGELOG.md
@ -7,7 +7,37 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [1.2.0] - 2024-07-01
|
||||
## [1.2.2] - 2025-02-25
|
||||
|
||||
### Added
|
||||
- Improved stream reconnection verification with log entries
|
||||
- Enhanced metadata endpoint discovery with multiple URL patterns
|
||||
- Expanded error handling and logging for metadata fetching
|
||||
|
||||
### Changed
|
||||
- Refactored stream monitoring for better stability
|
||||
- Updated metadata parsing to handle varied source formats
|
||||
- General project cleanup and housekeeping
|
||||
|
||||
### Fixed
|
||||
- Stream reconnection edge cases and timeout handling
|
||||
- JSON metadata parsing reliability
|
||||
- Various validations
|
||||
|
||||
|
||||
## [1.2.1] - 2025-02-25
|
||||
|
||||
### Added
|
||||
- Improved stream reconnection logic with automatic retry
|
||||
- Enhanced metadata fetching with better error handling
|
||||
- Expanded logging for better troubleshooting
|
||||
|
||||
### Fixed
|
||||
- Issue with metadata parsing for certain stream formats
|
||||
- Stream monitoring stability improvements
|
||||
- Connection timeout handling
|
||||
|
||||
## [1.2.0] - 2025-02-25
|
||||
|
||||
### Added
|
||||
- New admin commands:
|
||||
@ -26,7 +56,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- Improved the BotManager class to support the new terminal commands
|
||||
- Updated configuration example to include the new quiet_on_start option
|
||||
|
||||
## [1.0.1] - 2024-02-24
|
||||
## [1.0.1] - 2025-02-24
|
||||
|
||||
### Added
|
||||
- Configurable logging levels via config.yaml
|
||||
@ -64,7 +94,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
### Other
|
||||
- Added version information
|
||||
|
||||
## [1.0.0] - 2024-02-23
|
||||
## [1.0.0] - 2025-02-23
|
||||
|
||||
### Added
|
||||
- Initial release
|
||||
@ -75,7 +105,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- Multi-bot support
|
||||
- Configuration via YAML files
|
||||
|
||||
[Unreleased]: https://code.cottongin.xyz/cottongin/Icecast-metadata-IRC-announcer/compare/v1.2.0...HEAD
|
||||
[Unreleased]: https://code.cottongin.xyz/cottongin/Icecast-metadata-IRC-announcer/compare/v1.2.2...HEAD
|
||||
[1.2.2]: https://code.cottongin.xyz/cottongin/Icecast-metadata-IRC-announcer/compare/v1.2.1...v1.2.2
|
||||
[1.2.1]: https://code.cottongin.xyz/cottongin/Icecast-metadata-IRC-announcer/compare/v1.2.0...v1.2.1
|
||||
[1.2.0]: https://code.cottongin.xyz/cottongin/Icecast-metadata-IRC-announcer/compare/v1.0.1...v1.2.0
|
||||
[1.0.1]: https://code.cottongin.xyz/cottongin/Icecast-metadata-IRC-announcer/compare/v1.0.0...v1.0.1
|
||||
[1.0.0]: https://code.cottongin.xyz/cottongin/Icecast-metadata-IRC-announcer/releases/tag/v1.0.0
|
||||
38
TODO.md
38
TODO.md
@ -1,16 +1,26 @@
|
||||
## TODO
|
||||
## TODO 🚧
|
||||
|
||||
- Better, more clear, logging
|
||||
- Add a help command
|
||||
- Add commands to control the stream connection from IRC
|
||||
- Also to start/stop the service entirely
|
||||
- Add a version command
|
||||
- Add a list of commands to the README
|
||||
- ⭐️ Better, more clear, logging
|
||||
- Notification system for stream admin (and bot admin)
|
||||
- Send notification if unexpected change in metadata
|
||||
- Loss of network/stream
|
||||
- Live notifications (alt. for PodPing ish)
|
||||
- Implement `quiet mode`
|
||||
- ⭐️ Add whitelist feature
|
||||
- Add commands:
|
||||
- To check the status of the bot
|
||||
- To check the status of the stream
|
||||
- To check the status of the IRC connection
|
||||
- Version command
|
||||
- Enable joining multiple channels with a single bot instance
|
||||
- Add a command to force the bot to reconnect to the stream
|
||||
- Add a command to check the status of the bot
|
||||
- Add a command to check the status of the stream
|
||||
- Add a command to check the status of the IRC connection
|
||||
- Add a command to check the status of the bot
|
||||
- Add a command to check the status of the stream
|
||||
- Move this to a TODO.md file :)
|
||||
|
||||
## Complete! 🎉
|
||||
|
||||
- ✅ Move this to a TODO.md file 😊
|
||||
- 🟢 Added commands:
|
||||
- ✅ Add `quiet mode` relevant commands
|
||||
- ✅ Add a help command
|
||||
- ✅ To control the stream connection from IRC
|
||||
- ✅ To start/stop the service entirely
|
||||
- ✅ To quiet/unquiet the metadata announcing
|
||||
- ✅ Add a list of commands to the README
|
||||
12
launch.py
12
launch.py
@ -1,12 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
import asyncio
|
||||
from main import run_multiple_bots
|
||||
|
||||
CONFIG_FILES = [
|
||||
'config_station1.yaml',
|
||||
'config_station2.yaml',
|
||||
'config_station3.yaml'
|
||||
]
|
||||
|
||||
if __name__ == "__main__":
|
||||
asyncio.run(run_multiple_bots(CONFIG_FILES))
|
||||
12
main.py
12
main.py
@ -11,7 +11,6 @@ import argparse
|
||||
import yaml
|
||||
from pathlib import Path
|
||||
from typing import List, Optional
|
||||
import sys
|
||||
import inspect
|
||||
import socket
|
||||
import tempfile
|
||||
@ -59,17 +58,6 @@ def silent_client_init(self, *args, bot_name: str = None, config: dict = None, *
|
||||
original_init = Client.__init__
|
||||
Client.__init__ = silent_client_init
|
||||
|
||||
import asyncio
|
||||
import aiohttp
|
||||
import time
|
||||
import argparse
|
||||
import yaml
|
||||
from pathlib import Path
|
||||
from typing import List, Optional
|
||||
import sys
|
||||
import inspect
|
||||
import socket
|
||||
import tempfile
|
||||
|
||||
class RestartManager:
|
||||
"""Manages restart requests for the bot.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user