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.
Alles anzeigen
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.
Quellcode
- @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 advancedsettings.xml
- @echo off
- copy "%appdata%\Kodi\userdata\2\filme\advancedsettings.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 advancedsettings.xml
- @echo off
- copy "%appdata%\Kodi\userdata\2\anime\advancedsettings.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\advancedsettings.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 ^<advancedsettings^> > %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^<pvr^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^<minvideocachelevel^>40^</minvideocachelevel^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^<minaudiocachelevel^>40^</minaudiocachelevel^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^</pvr^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^<videodatabase^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^<type^>mysql^</type^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^<host^>%IP%^</host^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^<port^>3306^</port^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^<name^>filme^</name^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^<user^>%username%^</user^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^<pass^>%password%^</pass^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^</videodatabase^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^<musicdatabase^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^<type^>mysql^</type^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^<host^>%IP%^</host^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^<port^>3306^</port^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^<name^>music^</name^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^<user^>%username%^</user^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^<pass^>%password%^</pass^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^</musicdatabase^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^<network^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^<cachemembuffersize^>0^</cachemembuffersize^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^<bandwidth default="true"^>0^</bandwidth^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^<httpproxypassword^>%HTTPW%^</httpproxypassword^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^<httpproxyport^>5050^</httpproxyport^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^<httpproxyserver^>%IP%^</httpproxyserver^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^<httpproxytype default="true"^>0^</httpproxytype^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^<httpproxyusername^>%HTTPUSERNAME%^</httpproxyusername^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^<usehttpproxy^>true^</usehttpproxy^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^</network^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^</advancedsettings^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
- echo ^<advancedsettings^> > %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^<pvr^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^<minvideocachelevel^>40^</minvideocachelevel^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^<minaudiocachelevel^>40^</minaudiocachelevel^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^</pvr^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^<videodatabase^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^<type^>mysql^</type^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^<host^>%IP%^</host^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^<port^>3306^</port^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^<name^>anime^</name^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^<user^>%username%^</user^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^<pass^>%password%^</pass^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^</videodatabase^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^<musicdatabase^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^<type^>mysql^</type^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^<host^>%IP%^</host^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^<port^>3306^</port^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^<name^>music^</name^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^<user^>%username%^</user^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^<pass^>%password%^</pass^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^</musicdatabase^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^<network^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^<cachemembuffersize^>0^</cachemembuffersize^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^<bandwidth default="true"^>0^</bandwidth^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^<httpproxypassword^>%HTTPW%^</httpproxypassword^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^<httpproxyport^>5050^</httpproxyport^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^<httpproxyserver^>%IP%^</httpproxyserver^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^<httpproxytype default="true"^>0^</httpproxytype^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^<httpproxyusername^>%HTTPUSERNAME%^</httpproxyusername^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^<usehttpproxy^>true^</usehttpproxy^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^</network^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^</advancedsettings^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
- echo ^<advancedsettings^> > %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^<pvr^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^<minvideocachelevel^>40^</minvideocachelevel^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^<minaudiocachelevel^>40^</minaudiocachelevel^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^</pvr^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^<videodatabase^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^<type^>mysql^</type^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^<host^>%IP%^</host^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^<port^>3306^</port^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^<name^>hentai^</name^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^<user^>%username%^</user^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^<pass^>%password%^</pass^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^</videodatabase^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^<musicdatabase^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^<type^>mysql^</type^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^<host^>%IP%^</host^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^<port^>3306^</port^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^<name^>music^</name^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^<user^>%username%^</user^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^<pass^>%password%^</pass^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^</musicdatabase^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^<network^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^<cachemembuffersize^>0^</cachemembuffersize^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^<bandwidth default="true"^>0^</bandwidth^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^<httpproxypassword^>%HTTPW%^</httpproxypassword^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^<httpproxyport^>5050^</httpproxyport^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^<httpproxyserver^>%IP%^</httpproxyserver^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^<httpproxytype default="true"^>0^</httpproxytype^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^<httpproxyusername^>%HTTPUSERNAME%^</httpproxyusername^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^<usehttpproxy^>true^</usehttpproxy^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^</network^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
- echo ^</advancedsettings^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.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