Archive:Reduce disk space usage: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
Line 26: Line 26:
</advancedsettings>
</advancedsettings>
</syntaxhighlight>
</syntaxhighlight>
# Add some or all of the settings tags from the [[#Tags|next section]].
# Change the two sizes to a lower value, depending on your needs and how much resolution you need for your skin/TV.
# Save this file in your [[userdata folder]]:
# Save this file in your [[userdata folder]]:
#:''If you have an existing file, make sure the tags are between the main <advancedsettings></advancedsettings> tags.''
#:''If you have an existing file, make sure the tags are between the main <advancedsettings></advancedsettings> tags.''
{{hidden|1=[[userdata folder]] location:|2={{#lst:userdata|location all}} }}
{{hidden|1=[[userdata folder]] location:|2={{#lst:userdata|location all}} }}


=== Tags ===
 
'''Tag details:'''
{| class="wikitable"
{| class="wikitable"
! advancedsettings.xml tag !! what it does
! advancedsettings.xml tag !! what it does

Revision as of 00:09, 4 March 2014

Wiki logo.png Wiki revamp:
This page or section of the wiki undergoing a revamp. Content is still being added and organized. Please pardon the dust and anything that might not be working.

As your library and usage of XBMC grows, so does the memory taken up by XBMC's various settings and files. This page is designed to help reduce the space used, as well as reclaim space from files that are no longer needed.

XBMC stores data mainly in the userdata folder or the parent folder of userdata, "XBMC".

Cleanup unused cached images

XBMC does not automatically prune old images that are no longer used. For example, if you remove a movie from the library then the poster and fanart will still be saved in XBMC's userdata folder. Until XBMC has an internal method of pruning these files you can use the highly versatile Texture Cache Maintenance utility to remove unused images.

Actor images

If you don't care to download pictures of Actors for when you are browsing or looking up actor information in XBMC, you can turn this off. Doing so can often save a few hundred megabytes of memory, depending on how versatile your video library is.

Go into XBMC -> Settings -> Video -> Library -> and disable the "Download actor thumbnails when adding to library" option.

Limit the size of cached images

If you don't already have an advancedsettings.xml file, it's very simple to make. XBMC uses this file for advanced settings and features that normal users shouldn't modify without first knowing what they do, as well as for experimental features, etc.

  1. Since you can use all or just some of the following settings, let's start out with the basic file. Create a plain text file (no rich text formatting, don't use .doc, etc) and save it as advancedsettings.xml. Make sure that the file extension is ".xml" and not ".txt" or ".xml.txt".
  2. Cut and paste this into your new plain text file:
    <advancedsettings>
      <imageres>720</imageres>
      <fanartres>1080</fanartres>
    </advancedsettings>
  3. Change the two sizes to a lower value, depending on your needs and how much resolution you need for your skin/TV.
  4. Save this file in your userdata folder:
    If you have an existing file, make sure the tags are between the main <advancedsettings></advancedsettings> tags.


Tag details:

advancedsettings.xml tag what it does
<imageres>720</imageres>
<fanartres>1080</fanartres>

Limit add-on rollback


<packagefoldersize>options</packagefoldersize>

The amount (in megabytes) of add-on zip packages saved from previous add-on installs. These packages are mainly used for the add-on rollback feature. Increasing the size should increase the amount of past versions saved. Defaults to 200 MB.

Example:

<packagefoldersize>200</packagefoldersize> <!-- this example would keep up to 200MB of add-on packages. -->


Move cached images to another drive

If you simply need more space for XBMC's files but don't wish to limit the image quality then you can use path subs to relocate the images to another drive. It's even possible to use a network file share path, but it is recommended that you use another local drive for performance reasons.