Dockerize addon

This commit is contained in:
Nirvana
2025-12-10 13:56:11 +01:00
parent 97e1593400
commit e4c5a69a60
11 changed files with 1633 additions and 237 deletions
@@ -15,15 +15,18 @@ class MPDCacheManager:
self.vfs = VFS(addon_subdir="mpd_cache")
logger.debug(f"MPD cache initialized at: {self.vfs.base_path}")
def _get_cache_key(self, provider: str, channel_id: str) -> str:
@staticmethod
def _get_cache_key(provider: str, channel_id: str) -> str:
"""Generate cache key for provider/channel"""
return f"{provider}_{channel_id}"
def _get_manifest_filename(self, cache_key: str) -> str:
@staticmethod
def _get_manifest_filename(cache_key: str) -> str:
"""Get filename for cached manifest"""
return f"{cache_key}.xml"
def _get_meta_filename(self, cache_key: str) -> str:
@staticmethod
def _get_meta_filename(cache_key: str) -> str:
"""Get filename for cache metadata"""
return f"{cache_key}.meta"