dev: YouTube: yt-dlp ZIP-Installation von GitHub, kein yesno-Dialog

This commit is contained in:
2026-03-13 19:50:57 +01:00
parent 811f617ff7
commit 4b9ba6a01a
4 changed files with 69 additions and 9 deletions

View File

@@ -172,14 +172,13 @@ def _resolve_with_ytdlp(video_id: str) -> Optional[str]:
except ImportError:
log_error("[YouTube] yt-dlp nicht verfuegbar (script.module.yt-dlp fehlt)")
try:
import xbmc
import xbmcgui
yes = xbmcgui.Dialog().yesno(
xbmcgui.Dialog().notification(
"yt-dlp fehlt",
"script.module.yt-dlp ist nicht installiert.\nJetzt installieren?",
"Bitte yt-dlp in den ViewIT-Einstellungen installieren.",
xbmcgui.NOTIFICATION_ERROR,
5000,
)
if yes:
xbmc.executebuiltin("RunPlugin(plugin://plugin.video.viewit/?action=install_ytdlp)")
except Exception:
pass
return None