Quantcast
Channel: Kodinerds.net - Deutschsprachiges Forum zum Kodi Entertainment Center
Viewing all articles
Browse latest Browse all 87137

advancedsettings Datenbank Switcher

$
0
0
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.












Quellcode

  1. @ECHO OFF
  2. C:
  3. CD\
  4. CLS
  5. :MENU
  6. CLS
  7. ECHO ============== Kodi Datenbank ===============
  8. ECHO ---------------------------------------------
  9. ECHO 1. Filme
  10. ECHO 2. Anime
  11. ECHO 3. Hentai
  12. ECHO ---------------------------------------------
  13. ECHO 5. Kodi Starten
  14. ECHO 6. Kodi Stoppen
  15. ECHO ---------------------------------------------
  16. ECHO 7. Installieren
  17. ECHO ---------------------------------------------
  18. ECHO.
  19. ECHO ========== Druecke Q um zu beenden ==========
  20. ECHO.
  21. SET INPUT=
  22. SET /P INPUT=Deine Eingabe:
  23. IF /I '%INPUT%'=='1' GOTO Filme
  24. IF /I '%INPUT%'=='2' GOTO Anime
  25. IF /I '%INPUT%'=='3' GOTO Hentai
  26. IF /I '%INPUT%'=='5' GOTO Start
  27. IF /I '%INPUT%'=='6' GOTO Stop
  28. IF /I '%INPUT%'=='7' GOTO Install
  29. IF /I '%INPUT%'=='Q' GOTO Quit
  30. CLS
  31. ECHO ============= Falsche eingabe ============
  32. ECHO ------------------------------------------
  33. ECHO Druecke 1-7 oder die Taste Q um zu beenden
  34. ECHO ------------------------------------------
  35. ECHO ====== Druecke eine belibiege taste ======
  36. PAUSE > NUL
  37. GOTO MENU
  38. :Filme
  39. cd %appdata%/Kodi/userdata/
  40. del advancedsettings.xml
  41. @echo off
  42. copy "%appdata%\Kodi\userdata\2\filme\advancedsettings.xml" "%appdata%\Kodi\userdata\"
  43. echo Datenbank wurde gewechselt!
  44. PING 1.1.1.1 -n 1 -w 2000 >nul
  45. GOTO MENU
  46. :Anime
  47. cd %appdata%/Kodi/userdata/
  48. del advancedsettings.xml
  49. @echo off
  50. copy "%appdata%\Kodi\userdata\2\anime\advancedsettings.xml" "%appdata%\Kodi\userdata\"
  51. echo Datenbank wurde gewechselt!
  52. PING 1.1.1.1 -n 1 -w 2000 >nul
  53. GOTO MENU
  54. :Hentai
  55. @echo off
  56. copy "%appdata%\Kodi\userdata\2\hentai\advancedsettings.xml" "%appdata%\Kodi\userdata\"
  57. echo Datenbank wurde gewechselt!
  58. PING 1.1.1.1 -n 1 -w 2000 >nul
  59. GOTO MENU
  60. :Start
  61. cd "C:\Program Files (x86)\Kodi\"
  62. @echo off
  63. start Kodi.exe
  64. PING 1.1.1.1 -n 1 -w 1000 >nul
  65. echo Kodi sollte nun starten!
  66. PING 1.1.1.1 -n 1 -w 2000 >nul
  67. GOTO MENU
  68. :Stop
  69. TASKKILL /F /IM Kodi.exe
  70. echo Kodi gestoppt!
  71. PING 1.1.1.1 -n 1 -w 2000 >nul
  72. GOTO MENU
  73. :Install
  74. cd %appdata%\Kodi\userdata\
  75. rmdir /s /q 2
  76. del %appdata%\Kodi\userdata\RssFeeds.xml
  77. SET /P username=Username:
  78. SET /P password=Password:
  79. SET /P IP=Server IP:
  80. SET /P HTTPUSERNAME=Proxy Username:
  81. SET /P HTTPW=Proxy Password:
  82. mkdir %appdata%\Kodi\userdata\2
  83. mkdir %appdata%\Kodi\userdata\2\filme
  84. mkdir %appdata%\Kodi\userdata\2\anime
  85. mkdir %appdata%\Kodi\userdata\2\hentai
  86. echo ^<advancedsettings^> > %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  87. echo ^<pvr^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  88. echo ^<minvideocachelevel^>40^</minvideocachelevel^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  89. echo ^<minaudiocachelevel^>40^</minaudiocachelevel^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  90. echo ^</pvr^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  91. echo ^<videodatabase^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  92. echo ^<type^>mysql^</type^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  93. echo ^<host^>%IP%^</host^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  94. echo ^<port^>3306^</port^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  95. echo ^<name^>filme^</name^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  96. echo ^<user^>%username%^</user^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  97. echo ^<pass^>%password%^</pass^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  98. echo ^</videodatabase^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  99. echo ^<musicdatabase^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  100. echo ^<type^>mysql^</type^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  101. echo ^<host^>%IP%^</host^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  102. echo ^<port^>3306^</port^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  103. echo ^<name^>music^</name^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  104. echo ^<user^>%username%^</user^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  105. echo ^<pass^>%password%^</pass^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  106. echo ^</musicdatabase^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  107. echo ^<network^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  108. echo ^<cachemembuffersize^>0^</cachemembuffersize^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  109. echo ^<bandwidth default="true"^>0^</bandwidth^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  110. echo ^<httpproxypassword^>%HTTPW%^</httpproxypassword^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  111. echo ^<httpproxyport^>5050^</httpproxyport^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  112. echo ^<httpproxyserver^>%IP%^</httpproxyserver^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  113. echo ^<httpproxytype default="true"^>0^</httpproxytype^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  114. echo ^<httpproxyusername^>%HTTPUSERNAME%^</httpproxyusername^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  115. echo ^<usehttpproxy^>true^</usehttpproxy^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  116. echo ^</network^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  117. echo ^</advancedsettings^> >> %appdata%\Kodi\userdata\2\filme\advancedsettings.xml
  118. echo ^<advancedsettings^> > %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  119. echo ^<pvr^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  120. echo ^<minvideocachelevel^>40^</minvideocachelevel^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  121. echo ^<minaudiocachelevel^>40^</minaudiocachelevel^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  122. echo ^</pvr^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  123. echo ^<videodatabase^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  124. echo ^<type^>mysql^</type^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  125. echo ^<host^>%IP%^</host^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  126. echo ^<port^>3306^</port^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  127. echo ^<name^>anime^</name^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  128. echo ^<user^>%username%^</user^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  129. echo ^<pass^>%password%^</pass^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  130. echo ^</videodatabase^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  131. echo ^<musicdatabase^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  132. echo ^<type^>mysql^</type^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  133. echo ^<host^>%IP%^</host^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  134. echo ^<port^>3306^</port^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  135. echo ^<name^>music^</name^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  136. echo ^<user^>%username%^</user^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  137. echo ^<pass^>%password%^</pass^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  138. echo ^</musicdatabase^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  139. echo ^<network^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  140. echo ^<cachemembuffersize^>0^</cachemembuffersize^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  141. echo ^<bandwidth default="true"^>0^</bandwidth^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  142. echo ^<httpproxypassword^>%HTTPW%^</httpproxypassword^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  143. echo ^<httpproxyport^>5050^</httpproxyport^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  144. echo ^<httpproxyserver^>%IP%^</httpproxyserver^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  145. echo ^<httpproxytype default="true"^>0^</httpproxytype^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  146. echo ^<httpproxyusername^>%HTTPUSERNAME%^</httpproxyusername^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  147. echo ^<usehttpproxy^>true^</usehttpproxy^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  148. echo ^</network^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  149. echo ^</advancedsettings^> >> %appdata%\Kodi\userdata\2\anime\advancedsettings.xml
  150. echo ^<advancedsettings^> > %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  151. echo ^<pvr^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  152. echo ^<minvideocachelevel^>40^</minvideocachelevel^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  153. echo ^<minaudiocachelevel^>40^</minaudiocachelevel^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  154. echo ^</pvr^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  155. echo ^<videodatabase^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  156. echo ^<type^>mysql^</type^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  157. echo ^<host^>%IP%^</host^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  158. echo ^<port^>3306^</port^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  159. echo ^<name^>hentai^</name^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  160. echo ^<user^>%username%^</user^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  161. echo ^<pass^>%password%^</pass^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  162. echo ^</videodatabase^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  163. echo ^<musicdatabase^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  164. echo ^<type^>mysql^</type^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  165. echo ^<host^>%IP%^</host^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  166. echo ^<port^>3306^</port^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  167. echo ^<name^>music^</name^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  168. echo ^<user^>%username%^</user^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  169. echo ^<pass^>%password%^</pass^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  170. echo ^</musicdatabase^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  171. echo ^<network^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  172. echo ^<cachemembuffersize^>0^</cachemembuffersize^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  173. echo ^<bandwidth default="true"^>0^</bandwidth^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  174. echo ^<httpproxypassword^>%HTTPW%^</httpproxypassword^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  175. echo ^<httpproxyport^>5050^</httpproxyport^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  176. echo ^<httpproxyserver^>%IP%^</httpproxyserver^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  177. echo ^<httpproxytype default="true"^>0^</httpproxytype^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  178. echo ^<httpproxyusername^>%HTTPUSERNAME%^</httpproxyusername^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  179. echo ^<usehttpproxy^>true^</usehttpproxy^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  180. echo ^</network^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  181. echo ^</advancedsettings^> >> %appdata%\Kodi\userdata\2\hentai\advancedsettings.xml
  182. echo ^<?xml version="1.0" encoding="UTF-8" standalone="yes"?^> >> %appdata%\Kodi\userdata\RssFeeds.xml
  183. echo ^<rssfeeds^> >> %appdata%\Kodi\userdata\RssFeeds.xml
  184. 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
  185. echo ^<!--To use different sets in your skin, each must be called from skin with a unique id.--^> >> %appdata%\Kodi\userdata\RssFeeds.xml
  186. echo ^<set id="1"^> >> %appdata%\Kodi\userdata\RssFeeds.xml
  187. echo ^<feed updateinterval="30"^>http://feed:x!yW8d@%IP%/3/feed/news.rss^</feed^> >> %appdata%\Kodi\userdata\RssFeeds.xml
  188. echo ^</set^> >> %appdata%\Kodi\userdata\RssFeeds.xml
  189. echo ^</rssfeeds^> >> %appdata%\Kodi\userdata\RssFeeds.xml
  190. GOTO MENU
  191. :Quit
  192. CLS
  193. ECHO ================== Danke =====================
  194. ECHO ----------------------------------------------
  195. ECHO ===== Druecke eine taste um fortzufahren =====
  196. ECHO ==============================================
  197. PAUSE>NUL
  198. EXIT
Alles anzeigen

Viewing all articles
Browse latest Browse all 87137


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>