Hi leute ich habe eine kleine Batch datei geschrieben.
wo mit ihr leicht eure datenbank switchen könnt.
ich habe derzeit eine mysql für Anime , Filme, Hentai
und die dann ständig per hand auszuwechseln ist nerfig daher hier mein script.
einfach in eine Text Dokument legen und sie mit bsp kodi.bat abspeichen auf dem Desktop und doppel klicken.
neue features:
- Kodi Starten / stoppen
- Datenbank installieren mit Mysql und Proxy !
- Datenbank ändern bzw switchen.
Externer Inhalt
picload.org
Inhalte von externen Seiten werden ohne Ihre Zustimmung nicht automatisch geladen und angezeigt.
Code
@ECHO OFF
C:
CD\
CLS
:MENU
CLS
ECHO ============== Kodi Datenbank ===============
ECHO ---------------------------------------------
ECHO 1. Filme
ECHO 2. Anime
ECHO 3. Hentai
ECHO ---------------------------------------------
ECHO 5. Kodi Starten
ECHO 6. Kodi Stoppen
ECHO ---------------------------------------------
ECHO 7. Installieren
ECHO ---------------------------------------------
ECHO.
ECHO ========== Druecke Q um zu beenden ==========
ECHO.
SET INPUT=
SET /P INPUT=Deine Eingabe:
IF /I '%INPUT%'=='1' GOTO Filme
IF /I '%INPUT%'=='2' GOTO Anime
IF /I '%INPUT%'=='3' GOTO Hentai
IF /I '%INPUT%'=='5' GOTO Start
IF /I '%INPUT%'=='6' GOTO Stop
IF /I '%INPUT%'=='7' GOTO Install
IF /I '%INPUT%'=='Q' GOTO Quit
CLS
ECHO ============= Falsche eingabe ============
ECHO ------------------------------------------
ECHO Druecke 1-7 oder die Taste Q um zu beenden
ECHO ------------------------------------------
ECHO ====== Druecke eine belibiege taste ======
PAUSE > NUL
GOTO MENU
:Filme
cd %appdata%/Kodi/userdata/
del [definition='2','1']advancedsettings[/definition].xml
@echo off
copy "%appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml" "%appdata%\Kodi\userdata\"
echo Datenbank wurde gewechselt!
PING 1.1.1.1 -n 1 -w 2000 >nul
GOTO MENU
:Anime
cd %appdata%/Kodi/userdata/
del [definition='2','1']advancedsettings[/definition].xml
@echo off
copy "%appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml" "%appdata%\Kodi\userdata\"
echo Datenbank wurde gewechselt!
PING 1.1.1.1 -n 1 -w 2000 >nul
GOTO MENU
:Hentai
@echo off
copy "%appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml" "%appdata%\Kodi\userdata\"
echo Datenbank wurde gewechselt!
PING 1.1.1.1 -n 1 -w 2000 >nul
GOTO MENU
:Start
cd "C:\Program Files (x86)\Kodi\"
@echo off
start Kodi.exe
PING 1.1.1.1 -n 1 -w 1000 >nul
echo Kodi sollte nun starten!
PING 1.1.1.1 -n 1 -w 2000 >nul
GOTO MENU
:Stop
TASKKILL /F /IM Kodi.exe
echo Kodi gestoppt!
PING 1.1.1.1 -n 1 -w 2000 >nul
GOTO MENU
:Install
cd %appdata%\Kodi\userdata\
rmdir /s /q 2
del %appdata%\Kodi\userdata\RssFeeds.xml
SET /P username=Username:
SET /P password=Password:
SET /P IP=Server IP:
SET /P HTTPUSERNAME=Proxy Username:
SET /P HTTPW=Proxy Password:
mkdir %appdata%\Kodi\userdata\2
mkdir %appdata%\Kodi\userdata\2\filme
mkdir %appdata%\Kodi\userdata\2\anime
mkdir %appdata%\Kodi\userdata\2\hentai
echo ^<[definition='2','1']advancedsettings[/definition]^> > %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^<pvr^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^<minvideocachelevel^>40^</minvideocachelevel^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^<minaudiocachelevel^>40^</minaudiocachelevel^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^</pvr^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^<videodatabase^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^<type^>mysql^</type^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^<host^>%IP%^</host^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^<port^>3306^</port^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^<name^>filme^</name^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^<user^>%username%^</user^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^<pass^>%password%^</pass^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^</videodatabase^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^<musicdatabase^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^<type^>mysql^</type^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^<host^>%IP%^</host^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^<port^>3306^</port^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^<name^>music^</name^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^<user^>%username%^</user^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^<pass^>%password%^</pass^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^</musicdatabase^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^<network^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^<cachemembuffersize^>0^</cachemembuffersize^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^<bandwidth default="true"^>0^</bandwidth^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^<httpproxypassword^>%HTTPW%^</httpproxypassword^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^<httpproxyport^>5050^</httpproxyport^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^<httpproxyserver^>%IP%^</httpproxyserver^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^<httpproxytype default="true"^>0^</httpproxytype^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^<httpproxyusername^>%HTTPUSERNAME%^</httpproxyusername^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^<usehttpproxy^>true^</usehttpproxy^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^</network^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^</[definition='2','1']advancedsettings[/definition]^> >> %appdata%\Kodi\userdata\2\filme\[definition='2','1']advancedsettings[/definition].xml
echo ^<[definition='2','1']advancedsettings[/definition]^> > %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^<pvr^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^<minvideocachelevel^>40^</minvideocachelevel^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^<minaudiocachelevel^>40^</minaudiocachelevel^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^</pvr^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^<videodatabase^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^<type^>mysql^</type^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^<host^>%IP%^</host^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^<port^>3306^</port^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^<name^>anime^</name^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^<user^>%username%^</user^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^<pass^>%password%^</pass^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^</videodatabase^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^<musicdatabase^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^<type^>mysql^</type^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^<host^>%IP%^</host^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^<port^>3306^</port^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^<name^>music^</name^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^<user^>%username%^</user^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^<pass^>%password%^</pass^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^</musicdatabase^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^<network^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^<cachemembuffersize^>0^</cachemembuffersize^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^<bandwidth default="true"^>0^</bandwidth^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^<httpproxypassword^>%HTTPW%^</httpproxypassword^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^<httpproxyport^>5050^</httpproxyport^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^<httpproxyserver^>%IP%^</httpproxyserver^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^<httpproxytype default="true"^>0^</httpproxytype^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^<httpproxyusername^>%HTTPUSERNAME%^</httpproxyusername^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^<usehttpproxy^>true^</usehttpproxy^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^</network^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^</[definition='2','1']advancedsettings[/definition]^> >> %appdata%\Kodi\userdata\2\anime\[definition='2','1']advancedsettings[/definition].xml
echo ^<[definition='2','1']advancedsettings[/definition]^> > %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^<pvr^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^<minvideocachelevel^>40^</minvideocachelevel^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^<minaudiocachelevel^>40^</minaudiocachelevel^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^</pvr^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^<videodatabase^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^<type^>mysql^</type^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^<host^>%IP%^</host^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^<port^>3306^</port^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^<name^>hentai^</name^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^<user^>%username%^</user^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^<pass^>%password%^</pass^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^</videodatabase^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^<musicdatabase^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^<type^>mysql^</type^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^<host^>%IP%^</host^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^<port^>3306^</port^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^<name^>music^</name^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^<user^>%username%^</user^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^<pass^>%password%^</pass^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^</musicdatabase^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^<network^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^<cachemembuffersize^>0^</cachemembuffersize^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^<bandwidth default="true"^>0^</bandwidth^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^<httpproxypassword^>%HTTPW%^</httpproxypassword^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^<httpproxyport^>5050^</httpproxyport^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^<httpproxyserver^>%IP%^</httpproxyserver^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^<httpproxytype default="true"^>0^</httpproxytype^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^<httpproxyusername^>%HTTPUSERNAME%^</httpproxyusername^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^<usehttpproxy^>true^</usehttpproxy^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^</network^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^</[definition='2','1']advancedsettings[/definition]^> >> %appdata%\Kodi\userdata\2\hentai\[definition='2','1']advancedsettings[/definition].xml
echo ^<?xml version="1.0" encoding="UTF-8" standalone="yes"?^> >> %appdata%\Kodi\userdata\RssFeeds.xml
echo ^<rssfeeds^> >> %appdata%\Kodi\userdata\RssFeeds.xml
echo ^<!--RSS feeds. To have multiple feeds, just add a feed to the set. You can also have multiple sets.--^> >> %appdata%\Kodi\userdata\RssFeeds.xml
echo ^<!--To use different sets in your skin, each must be called from skin with a unique id.--^> >> %appdata%\Kodi\userdata\RssFeeds.xml
echo ^<set id="1"^> >> %appdata%\Kodi\userdata\RssFeeds.xml
echo ^<feed updateinterval="30"^>http://feed:x!yW8d@%IP%/3/feed/news.rss^</feed^> >> %appdata%\Kodi\userdata\RssFeeds.xml
echo ^</set^> >> %appdata%\Kodi\userdata\RssFeeds.xml
echo ^</rssfeeds^> >> %appdata%\Kodi\userdata\RssFeeds.xml
GOTO MENU
:Quit
CLS
ECHO ================== Danke =====================
ECHO ----------------------------------------------
ECHO ===== Druecke eine taste um fortzufahren =====
ECHO ==============================================
PAUSE>NUL
EXIT
Alles anzeigen