Media Brazil Forum

Versão completa: Alterar tamanho do Cache via ajustes do Kodi
Você está visualizando uma versão simplificada de nosso conteúdo. Ver versão completa com a formatação apropriada.
Muitas pessoas acabam recorrendo a instalar add-ons apenas para alterar o tamanho do cache de vídeo e áudio, o que é absolutamente desnecessário, faz muito tempo que tenho isto nas versões customizadas do Kodi, então hoje vou compartilhar como proceder para ter algo assim

https://i.imgur.com/ungKoLFl.jpg

Para tal é necessário alterar o arquivo settings.xml que fica presente em program files(x86) ou program files\kodi\system\settings

Tem que substituir o seguinte conteúdo
Código:
<category id="cache" label="439" help="36399">
     <visible>false</visible>
     <group id="1">
       <setting id="cache.harddisk" type="integer" label="14025" help="36400">
         <level>4</level>
         <default>256</default>
         <constraints>
           <minimum label="351">0</minimum>
           <step>256</step>
           <maximum>4096</maximum>
         </constraints>
         <control type="spinner" format="string">
           <formatlabel>14049</formatlabel>
         </control>
       </setting>
     </group>
     <group id="2">
       <setting id="cachevideo.dvdrom" type="integer" label="14026" help="36401">
         <level>4</level>
         <default>2048</default>
         <constraints>
           <minimum label="351">0</minimum>
           <step>256</step>
           <maximum>16384</maximum>
         </constraints>
         <control type="spinner" format="string">
           <formatlabel>14049</formatlabel>
         </control>
       </setting>
       <setting id="cachevideo.lan" type="integer" label="14027" help="36402">
         <level>4</level>
         <default>2048</default>
         <constraints>
           <minimum label="351">0</minimum>
           <step>256</step>
           <maximum>16384</maximum>
         </constraints>
         <control type="spinner" format="string">
           <formatlabel>14049</formatlabel>
         </control>
       </setting>
       <setting id="cachevideo.internet" type="integer" label="14028" help="36403">
         <level>4</level>
         <default>4096</default>
         <constraints>
           <minimum label="351">0</minimum>
           <step>256</step>
           <maximum>16384</maximum>
         </constraints>
         <control type="spinner" format="string">
           <formatlabel>14049</formatlabel>
         </control>
       </setting>
     </group>
     <group id="3">
       <setting id="cacheaudio.dvdrom" type="integer" label="14030" help="36404">
         <level>4</level>
         <default>256</default>
         <constraints>
           <minimum label="351">0</minimum>
           <step>256</step>
           <maximum>4096</maximum>
         </constraints>
         <control type="spinner" format="string">
           <formatlabel>14049</formatlabel>
         </control>
       </setting>
       <setting id="cacheaudio.lan" type="integer" label="14031" help="36405">
         <level>4</level>
         <default>256</default>
         <constraints>
           <minimum label="351">0</minimum>
           <step>256</step>
           <maximum>4096</maximum>
         </constraints>
         <control type="spinner" format="string">
           <formatlabel>14049</formatlabel>
         </control>
       </setting>
       <setting id="cacheaudio.internet" type="integer" label="14032" help="36406">
         <level>4</level>
         <default>256</default>
         <constraints>
           <minimum label="351">0</minimum>
           <step>256</step>
           <maximum>4096</maximum>
         </constraints>
         <control type="spinner" format="string">
           <formatlabel>14049</formatlabel>
         </control>
       </setting>
     </group>
     <group id="4">
       <setting id="cachedvd.dvdrom" type="integer" label="14034" help="36407">
         <level>4</level>
         <default>2048</default>
         <constraints>
           <minimum label="351">0</minimum>
           <step>256</step>
           <maximum>16384</maximum>
         </constraints>
         <control type="spinner" format="string">
           <formatlabel>14049</formatlabel>
         </control>
       </setting>
       <setting id="cachedvd.lan" type="integer" label="14060" help="36408">
         <level>4</level>
         <default>2048</default>
         <constraints>
           <minimum label="351">0</minimum>
           <step>256</step>
           <maximum>16384</maximum>
         </constraints>
         <control type="spinner" format="string">
           <formatlabel>14049</formatlabel>
         </control>
       </setting>
     </group>
     <group id="5">
       <setting id="cacheunknown.internet" type="integer" label="4096" help="36409">
         <level>4</level>
         <default>4096</default>
         <constraints>
           <minimum label="351">0</minimum>
           <step>256</step>
           <maximum>16384</maximum>
         </constraints>
         <control type="spinner" format="string">
           <formatlabel>14049</formatlabel>
         </control>
       </setting>
     </group>
   </category>

Por este
Código:
<category id="cache" label="439" help="36399">
<visible>true</visible>
<group id="1">
<setting id="cache.harddisk" type="integer" label="14025" help="36400">
<level>1</level>
<default>256</default>
<constraints>
<minimum label="351">0</minimum>
<step>256</step>
<maximum>4096</maximum>
</constraints>
<control type="spinner" format="string">
<formatlabel>14049</formatlabel>
</control>
</setting>
</group>
<group id="2">
<setting id="cachevideo.dvdrom" type="integer" label="14026" help="36401">
<level>1</level>
<default>2048</default>
<constraints>
<minimum label="351">0</minimum>
<step>256</step>
<maximum>16384</maximum>
</constraints>
<control type="spinner" format="string">
<formatlabel>14049</formatlabel>
</control>
</setting>
<setting id="cachevideo.lan" type="integer" label="14027" help="36402">
<level>1</level>
<default>2048</default>
<constraints>
<minimum label="351">0</minimum>
<step>256</step>
<maximum>16384</maximum>
</constraints>
<control type="spinner" format="string">
<formatlabel>14049</formatlabel>
</control>
</setting>
<setting id="cachevideo.internet" type="integer" label="14028" help="36403">
<level>1</level>
<default>4096</default>
<constraints>
<minimum label="351">0</minimum>
<step>256</step>
<maximum>16384</maximum>
</constraints>
<control type="spinner" format="string">
<formatlabel>14049</formatlabel>
</control>
</setting>
</group>
<group id="3">
<setting id="cacheaudio.dvdrom" type="integer" label="14030" help="36404">
<level>1</level>
<default>256</default>
<constraints>
<minimum label="351">0</minimum>
<step>256</step>
<maximum>4096</maximum>
</constraints>
<control type="spinner" format="string">
<formatlabel>14049</formatlabel>
</control>
</setting>
<setting id="cacheaudio.lan" type="integer" label="14031" help="36405">
<level>4</level>
<default>256</default>
<constraints>
<minimum label="351">0</minimum>
<step>256</step>
<maximum>4096</maximum>
</constraints>
<control type="spinner" format="string">
<formatlabel>14049</formatlabel>
</control>
</setting>
<setting id="cacheaudio.internet" type="integer" label="14032" help="36406">
<level>1</level>
<default>256</default>
<constraints>
<minimum label="351">0</minimum>
<step>256</step>
<maximum>4096</maximum>
</constraints>
<control type="spinner" format="string">
<formatlabel>14049</formatlabel>
</control>
</setting>
</group>
<group id="4">
<setting id="cachedvd.dvdrom" type="integer" label="14034" help="36407">
<level>4</level>
<default>2048</default>
<constraints>
<minimum label="351">0</minimum>
<step>256</step>
<maximum>16384</maximum>
</constraints>
<control type="spinner" format="string">
<formatlabel>14049</formatlabel>
</control>
</setting>
<setting id="cachedvd.lan" type="integer" label="14060" help="36408">
<level>4</level>
<default>2048</default>
<constraints>
<minimum label="351">0</minimum>
<step>256</step>
<maximum>16384</maximum>
</constraints>
<control type="spinner" format="string">
<formatlabel>14049</formatlabel>
</control>
</setting>
</group>
<group id="5">
<setting id="cacheunknown.internet" type="integer" label="4096" help="36409">
<level>4</level>
<default>4096</default>
<constraints>
<minimum label="351">0</minimum>
<step>256</step>
<maximum>16384</maximum>
</constraints>
<control type="spinner" format="string">
<formatlabel>14049</formatlabel>
</control>
</setting>
</group>
</category>

Caso venha a atualizar ou reinstalar seu Kodi, isto precisará ser refeito, pois o instalador do Kodi, remove tudo e reinstala do zero o Kodi em arquivos de programas.
Alguem sabe me informar onde fica esse arquivo no sistema android? Ja revirei tudo aqui e não encontro, dentro da pasta system não tem nada.
Mesma dúvida do @ "Helio Augusto Terence Martins" . 
Até tentei criar a pasta "settings" dentro de "system", criando tb o arquivo settings.xml, mas sem sucesso.
No LibreELEC não encontrei esse arquivo.

Abs
I also did not find this file