dev: YouTube: yt-dlp ZIP-Installation von GitHub, kein yesno-Dialog
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user