update and cleanup repo

This commit is contained in:
2026-05-26 15:32:01 -07:00
parent 5041d9fbb9
commit 0db899d0c3
72 changed files with 788 additions and 1884 deletions
+7 -7
View File
@@ -11,11 +11,11 @@ from SYS.utils import format_bytes
def _get_podcastindex_credentials(config: Dict[str, Any]) -> Tuple[str, str]:
provider = config.get("provider")
if not isinstance(provider, dict):
plugin_cfg = config.get("plugin")
if not isinstance(plugin_cfg, dict):
return "", ""
entry = provider.get("podcastindex")
entry = plugin_cfg.get("podcastindex")
if not isinstance(entry, dict):
return "", ""
@@ -290,7 +290,7 @@ class PodcastIndex(Provider):
pass
try:
from API.HTTP import _download_direct_file
from API.HTTP import download_direct_file
except Exception:
return True
@@ -308,7 +308,7 @@ class PodcastIndex(Provider):
title_hint = str(item.get("title") or md.get("title") or "episode").strip() or "episode"
try:
result_obj = _download_direct_file(
result_obj = download_direct_file(
enc_url,
Path(output_dir),
quiet=False,
@@ -357,12 +357,12 @@ class PodcastIndex(Provider):
"path": str(local_path),
"hash": sha256,
"title": title_hint,
"action": "provider:podcastindex.selector",
"action": "plugin:podcastindex.selector",
"download_mode": "file",
"store": "local",
"media_kind": "audio",
"tag": tags,
"provider": "podcastindex",
"plugin": "podcastindex",
"url": enc_url,
}
if isinstance(md, dict) and md: