Advertisement
nutt318

Config.xml

Nov 10th, 2012
763
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 13.54 KB | None | 0 0
  1. <!--
  2. XBMC.MyLibrary
  3. Author: BradVido88 
  4.     THIS IS BETA SOFTWARE - IF YOU HAVE PROBLEMS, PLEASE POST TO THE SUPPORT THREAD WITH A LOG LEVEL OF AT LEAST "INFO" or "DEBUG"
  5.         Support thread is located here: http://forum.xbmc.org/showthread.php?t=98210
  6.  
  7. -->
  8.  
  9. <root>
  10.    
  11.     <!--   
  12.     Logging Levels:
  13.     This controls how verbose the logs will be.
  14.     1 = ERROR       Only logs important errors.
  15.     2 = WARNING     Logs minor errors
  16.     3 = NOTICE      Logs a high-level overview of what's happening
  17.     4 = INFO        Logs a detailed overview of what's happening
  18.     5 = DEBUG       VERY verbose logging (not needed unless you are asked to provide it on the forum)
  19.     expiredays - optional attribute, default=30, Logs older than this many days will be deleted.                       
  20.     -->
  21.     <LoggingLevel expiredays="30">3</LoggingLevel><!--Must be an integer, default level is 3-->
  22.    
  23.     <!--
  24.     JSONRPC - JSON-RPC API connectivity is required for this program to work. It is built into XBMC's Dharma release.
  25.         XBMCName - The Name or IP Address of the XBMC instance to connect to. XBMC must be running in order for the JSON-RPC API to work.
  26.         method - The method used to connect to JSON-RPC
  27.             HTTP -Uses HTTP to communicate with XBMC's Webserver
  28.                  -Faster than Raw method, and usually more reliable if you experience trouble with the Raw method
  29.                  -Requires going to Settings, Network, Services, and checking "Allow control of XBMC via HTTP" and setting the Port/Username/Password you desire.  
  30.                 <port> - The XBMC Webserver port, default 8080
  31.                 <username> - The XBMC Webserver username, default none
  32.                 <password> - The XBMC Webserver password, default none
  33.                
  34.             Raw  -Uses Raw TCP/IP "telnet" type of an interface.
  35.                  -Uses TCP port 9090 (not currently configurable)
  36.                  -Slower than HTTP, but simpler to set up (no username/password is used).
  37.                  -Requires going to Settings, Network, Services, and checking "Allow Programs on this/others systems to control XBMC"                          
  38.     -->
  39.     <JSONRPC>
  40.         <XBMCName>localhost</XBMCName><!--Either name or ip, address of XBMC instance that has PlayOn added as a source. Do not include :port here. -->
  41.         <timeout>90</timeout><!--The time in seconds to wait for JSON-RPC to start returning data after a request has been made (give plugins time to list dir contents) -->
  42.         <method>HTTP</method> <!--Either HTTP or Raw -->
  43.        
  44.         <!--These options are only used if HTTP is specified as the method-->
  45.         <port>80</port>
  46.         <username>xbmc</username>
  47.         <password>xbmc</password>      
  48.     </JSONRPC>
  49.    
  50.    
  51.     <!--
  52.     Dropbox - This is the folder where all the Video's .strm files will be stored.
  53.         Inside this folder, subfolders will be created named "TV Shows", "Movies", and "Music Videos"      
  54.        
  55.         IMPORTANT: The dropbox must be a new folder used exclusively for this script.
  56.                    Do not use an existing video source's folder!
  57.         IMPORTANT: It is highly recommended to use a smb share as your dropbox!
  58.        
  59.         streaming - The "Main" dropbox where videos are put by default
  60.             On your computer, create a new folder, enter it's location here.
  61.             Then create 3 subfolders under it, named "TV Shows", "Movies", and "Music Videos".
  62.             Go into XBMC and add each of the 3 subfolders under the Videos, Files, Add Source, setting the content for each folder
  63.             Note: Use the same exact path in XBMC as you have here. Don't use a local path here and a UNC (smb://) path in XBMC.       
  64.            
  65.         LinuxSamba - If specified, this will be prepended to the local path you specified in <streaming>.
  66.                         Useful if you use linux xbmc and your sources are on a smb share. Example: smb://COMPUTER_NAME
  67.     -->
  68.    
  69.    
  70.     <Dropbox>
  71.         <streaming>\\SERVER\Documents\xbmc-files</streaming>       
  72.         <LinuxSambaPrefix></LinuxSambaPrefix>
  73.     </Dropbox>
  74.    
  75.    
  76.     <!--
  77.     Database config. Either MySQL or SQLLite can be used. One (and only one) of these must be enabled for this program to work.
  78.     Set enabled = true for the one you would like to use. If you don't know which to use, then use SQLLite as that is the XBMC default.    
  79.     -->    
  80.     <XBMCDatabase><!--Enable either SQLite OR MySQL -->    
  81.         <SQLite enabled="true">
  82.             <VideoDBPath>C:\Users\Nutt\AppData\Roaming\XBMC\userdata\Database\MyVideos60.db</VideoDBPath><!--Cannot be a UNC path. If the .db file is not local, map a drive to it-->          
  83.         </SQLite>
  84.    
  85.         <MySQL enabled="false">
  86.             <host>localhost</host><!--Name or IP address-->
  87.             <VideoSchema>xbmc_video</VideoSchema>          
  88.             <username>xbmc</username>
  89.             <password>xbmc</password>
  90.             <!--<port>3306</port>-->
  91.             <port>80</port>
  92.             <CharacterSet>latin1</CharacterSet><!--latin1 is default, and recommended. See here for details: http://forum.xbmc.org/showthread.php?p=576974&highlight=latin1#post576974 -->
  93.         </MySQL>
  94.     </XBMCDatabase>
  95.    
  96.     <!--IPChange
  97.         For example, if you are browsing UPNP sources on the same box they are hosted on, the address
  98.         may resolve as "127.0.0.1" instead of the LAN IP. If you attempt to the play file on any
  99.         other computer, it will not work. We can fix this by replacing it with the correct IP.
  100.     -->
  101.     <IPChange enabled="false">
  102.         <change from="127.0.0.1" to="192.168.1.1" />
  103.         <change from="localhost" to="192.168.1.1" />
  104.     </IPChange>
  105.  
  106.     <!--Library scan wait minutes
  107.         Once this program is done finding videos, it triggers a video library update in XBMC.
  108.         It will then wait this many minutes for new videos to be added to the library. If new videos are found,
  109.         it waits this many minutes again until no new videos are found.  
  110.         If you have a very large library, this may need to be increased. -->
  111.         <LibraryScanWaitMinutes>2.0</LibraryScanWaitMinutes>
  112.        
  113.     <!--ManualArchiving
  114.         If enabled, videos that are not successfully added to XBMC's library (after the configured amount of hours, will me manually archived using .nfo files)
  115.         See here for details on manual archiving in XBMC: http://wiki.xbmc.org/index.php?title=Import_-_Export_Library#Video_nfo_Files -->
  116.     <ManualArchiving enabled="false">
  117.         <HoursThreshold>24.0</HoursThreshold><!--The video must have been archived at least this many hours ago before it will be manually archived -->    
  118.     </ManualArchiving>
  119.    
  120.     <!--When videos that were previously found are no longer found, they will be deleted from the dropbox as configured by these parameters -->
  121.     <VideoCleanUp>
  122.         <HoursThreshold>8.0</HoursThreshold><!--The video must be missing for at least this many hours before it's deleted. -->
  123.         <ConsecutiveThreshold>5</ConsecutiveThreshold><!--The video must be missing for this many consecutive times before it's deleted (each time this program runs is consider 1 time). -->
  124.     </VideoCleanUp>
  125.    
  126.     <!-- Pre-Scrape Music Videos
  127.         If enabled, music vidoes will be scraped using the Yahoo Music API and a .nfo will be created for the video. Thumbs will also be scraped.
  128.         If pre-scrape is enabled, it is recommened to use the MTV Music Video scraper in XBMC,
  129.         this allows for fall-back to that scraper if the Yahoo scraped can't find the music video. --> 
  130.     <PreScrapeMusicVids enabled="false" />
  131.    
  132.     <!-- XBMC Restart before scan.
  133.     If enabled is true, XBMC will be restarted before this program scans for content. This fixes caching issues XBMC can have, expecially with UPNP sources like PlayOn.
  134.         If you set this to true, you should modify the res/XBMCRestart.cmd file in this program's directory to fit your needs. -->
  135.     <XBMCRestart enabled="false" />
  136.    
  137.     <!--
  138.     <SearchFilters>            
  139.         This is where you define what sources in XBMC should be added to the library.
  140.         <source> - The source to search. The element name can be whatever you want. If the name matches a source in XBMC, you do no need to specify the path attribute.
  141.             path - This is the actual path that XBMC uses for this source. If you are unsure what the path is, check your sources.xml is your userdata folder. Not needed if source name matches the XBMC source name.         
  142.             <subfolder> - Each source can have multiple subfolder elements. These are directories that should be scanned and added to the library.
  143.                 *Note: all of the attributes below can be used at the subfolder level or the source level. If specified at both levels, the subfolder takes precedence.
  144.                         If specified at the source level, the attribute will be inherited by all subfolders.
  145.                         Also, subfolders can be nested inside of other subfolders, and all attributes will be inherited. The name attribute will be appended as you would expect.
  146.                 name - required attribute; The name of the subfolder. (do not include the source name, just the subfolder). Use '/' to seperate folders in the name.
  147.                 type - optional attribute; default=auto determine; This is the type of content in the directory. Only set this if all content in the directory is the same type.
  148.                         If the content type is all known to be TV Shows, use 'episodes';
  149.                         If the content type is all known to be movies Movies/Films, use 'movies'
  150.                         If the content type is all known to be movies Music Videos, use 'music_videos'
  151.                         If the content type is all known to be none of the above, use 'generic' - This will simply write a directory full of the strm files
  152.                         NOTE: this does not filter the content in the directory; it tells this program what kind of content to expect!
  153.                 recursive - optional attribute; default=false; If true, the directory and all subfolders will be scanned for content. Otherwise only the top directory will be scanned.
  154.                 regex_name - optional, If true, the name attribute wil be evaluated as a regular expression. The regex must match the full actual name of the subfolder. Partial regex matches will be discarded!                              
  155.                 force_tvdb - optional, default=false; For episodes only. If true, the season/episode numbers retrieved from the source will be ignored and the show will be looked up on TheTVDB.com. (useful if the source incorrectly/absolutely numbers episodes for some series)
  156.                 max_series - optional attribute; default=unlimited; If TV Shows are in this subfolder, this is the maxinum number of TV series to archive. Useful for Hulu/Popular Shows filtering the top X series you want in your library.
  157.                 max_videos - optional attribute; default=unlimited; This is the maxinum number of episodes/movies/music videos to retrieve from the subfolder.
  158.                 movie_set - optional attribute; default=none; Specifies the name of the movie set to add the movie to; (Ignored for TV Episodes/Music Videos). More info: http://wiki.xbmc.org/index.php?title=Movie_Sets
  159.                 prefix - optional attribute; default=none; This will be prepended to the title of TV Episodes/Music Vidoes (Ignored for movies) in the directory. Can be useful if you want to identify which episodes are from which source.
  160.                 suffix - optional attribute; default=none; This will be appended  to the title of TV Episodes/Music Vidoes (Ignored for movies) in the directory. Can be useful if you want to identify which episodes are from which source.
  161.                 multi_part - optional arrtibute; default=false; Set this to true if the subfolder might contain any multi-part vidoes              
  162.                 force_series - optional attribute; default=none; This will override any series name that gets parsed.
  163.                 <exclude> - optional; If a video's path matches ANY of these, it will be skipped.
  164.                 <filter>  - optional; Only videos that match ALL filters will be included (unless it matched an exclude)
  165.                     <contains> - Matches if the video path contains at least one of the literal texts delimited by double pipes "||" (case-insensitive)
  166.                     <regexp> - Matches if any part of the video path matches this Regular Expression (case-insensitive) - see here for info on regex: http://java.sun.com/developer/technicalArticles/releases/1.4regex/
  167.                     <runtime> - Matches if the runtime of the file fits the criteria specified in seconds along with the relational operator value. The format is "<relational_operator>|<runtime_seconds>". Posible relational operators are: EQ:Equal to, GT:Greater than, LT:Less than, NE:Not equal to, GE:Greater than or equal to, LE:Less than or equal to. Matches only on files and not directories.
  168.                 <parser>  - optional; Overrides the default series and title parser with a regular expression that must contain two defined groups.
  169.                     <regexp> - Pattern must contain two groups like in the following ([\w\s*'-]*):([\w\s*'-]*) example pattern. The first pattern group will interpreted as the series, and the second group as the title. - see here for info on regex: http://java.sun.com/developer/technicalArticles/releases/1.4regex/
  170.                
  171.             Note: The exclude/filters filter on the video path. A typical video path looks something like "Hulu/Popular/Popular Episodes/s01e01 - MyTVShow - Pilot"
  172.             Note: Be careful what you recursively search for. For example, a recursive search of PlayOn's Netflix/Browse Genres returns about 75,000 videos!
  173.             Note: The '/' character is used exclusively to seperate folders. It cannot otherwise be used in the name attribute (there is currently no way to escape it)        
  174.            
  175.     -->
  176.  
  177.     <SearchFilters>
  178.         <!--
  179.         See here for sample search filter configurations: https://docs.google.com/document/d/1CDbdU1GOJlIblwGH8vaJT5c_99lK5H-gRMe3CFpZpUs/edit?hl=en#bookmark=id.g4i0iqa50b0b
  180.         -->
  181.        
  182.         <!--Add your own search filters here!!! -->
  183.        
  184.        
  185.        
  186.         <!-- SubSonic Streaming Videos -->
  187.         <SubSonic path="plugin://plugin.video.subsonic" recursive="true" >
  188.             <!-- All full episodes over 20 minutes long for a subset of the USA network shows -->
  189.             <subfolder name="TV Shows" type="episodes" prefix="(S) ">
  190.                
  191.                
  192.                
  193.                
  194.             </subfolder>
  195.  
  196.         </SubSonic>
  197.  
  198.     </SearchFilters>
  199.    
  200.     <!--
  201.     These will be used to exclude content from all subfolders.
  202.     <regexp> - a regular expression to match
  203.     <contains> - a literal string to match on
  204.         both are case-insensitive
  205.     -->
  206.     <GlobalExcludes>
  207.        
  208.        
  209.     </GlobalExcludes>
  210.    
  211. </root>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement