Set source + content + scraper (In one action)

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
giftie Online
Skilled Python Coder
Posts: 2,036
Joined: Mar 2010
Reputation: 35
Post: #11
You can access the GUISettings through HTTP/API for now, once JSON-RPC has a method for editing then that will be the best method.

You can also directly access the guisettings.xml file in userdata. It should not be too difficult to modify the proper sections.
Code:
<musiclibrary>
        <albumsscraper>metadata.album.universal</albumsscraper>
        <artistsscraper>metadata.artists.universal</artistsscraper>
        <backgroundupdate>false</backgroundupdate>
        <cleanup></cleanup>
        <downloadinfo>true</downloadinfo>
        <enabled>true</enabled>
        <export></export>
        <import></import>
        <showcompilationartists>true</showcompilationartists>
        <updateonstartup>false</updateonstartup>
    </musiclibrary>
Code:
<scrapers>
        <moviesdefault>metadata.themoviedb.org</moviesdefault>
        <musicvideosdefault>metadata.yahoomusic.com</musicvideosdefault>
        <tvshowsdefault>metadata.tvdb.com</tvshowsdefault>
    </scrapers>
Also sources.xml can be directly edited.
Code:
<sources>
    <programs>
        <default pathversion="1"></default>
    </programs>
    <video>
        <default pathversion="1"></default>
        <source>
            <name>Movies</name>
            <path pathversion="1"></path>
            <path pathversion="1"></path>
            <path pathversion="1"></path>
        </source>
        <source>
            <name>Music Videos</name>
            <path pathversion="1"></path>
        </source>
        <source>
            <name>TV Shows</name>
            <path pathversion="1"></path>
        </source>
    </video>
    <music>
        <default pathversion="1"></default>
        <source>
            <name>cd</name>
            <path pathversion="1">cdda://local/</path>
        </source>
        <source>
            <name>Albums</name>
            <path pathversion="1"></path>
            <path pathversion="1"></path>
            <path pathversion="1"></path>
        </source>
    </music>
    <pictures>
        <default pathversion="1"></default>
    </pictures>
    <files>
        <default pathversion="1"></default>
        <source>
            <name>Picture</name>
            <path pathversion="1"></path>
        </source>
    </files>
</sources>

I believe XBMC creates these files(though fairly empty) upon first run.

[Image: e4f63e45ba34fe4695b3bb08eb2499d8e4ee484e...4c076g.jpg]
For troubleshooting and bug reporting please make sure you read this first you can also use XBMC Log Uploader Script.
Cinema Experience
Cinema Experience Wiki
cdART Manager
fanart.tv


find quote
Post Reply