Advertisement
Guest User

Untitled

a guest
Nov 14th, 2012
726
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. - <!-- XBMC.MyLibrary
  2. Author: BradVido88 
  3.     THIS IS BETA SOFTWARE - IF YOU HAVE PROBLEMS, PLEASE POST TO THE SUPPORT THREAD WITH A LOG LEVEL OF AT LEAST "INFO" or "DEBUG"
  4.         Support thread is located here: http://forum.xbmc.org/showthread.php?t=98210
  5.  
  6.  
  7.   -->
  8. - <root>
  9. - <!--  
  10.     Logging Levels:
  11.     This controls how verbose the logs will be.
  12.     1 = ERROR       Only logs important errors.
  13.     2 = WARNING     Logs minor errors
  14.     3 = NOTICE      Logs a high-level overview of what's happening
  15.     4 = INFO        Logs a detailed overview of what's happening
  16.     5 = DEBUG       VERY verbose logging (not needed unless you are asked to provide it on the forum)
  17.     expiredays - optional attribute, default=30, Logs older than this many days will be deleted.                       
  18.    
  19.   -->
  20.   <LoggingLevel expiredays="30">4</LoggingLevel>
  21. - <!-- Must be an integer, default level is 3
  22.   -->
  23. - <!--  JSONRPC - JSON-RPC API connectivity is required for this program to work. It is built into XBMC's Dharma release.
  24.         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.
  25.         method - The method used to connect to JSON-RPC
  26.             HTTP -Uses HTTP to communicate with XBMC's Webserver
  27.                  -Faster than Raw method, and usually more reliable if you experience trouble with the Raw method
  28.                  -Requires going to Settings, Network, Services, and checking "Allow control of XBMC via HTTP" and setting the Port/Username/Password you desire.  
  29.                 <8080> - The XBMC Webserver port, default 8080
  30.                 <William> - The XBMC Webserver username, default none
  31.                 <dec131990> - The XBMC Webserver password, default none
  32.                
  33.             Raw  -Uses Raw TCP/IP "telnet" type of an interface.
  34.                  -Uses TCP port 9090 (not currently configurable)
  35.                  -Slower than HTTP, but simpler to set up (no username/password is used).
  36.                  -Requires going to Settings, Network, Services, and checking "Allow Programs on this/others systems to control XBMC"                          
  37.    
  38.   -->
  39. - <JSONRPC>
  40.   <XBMCName>137.36.48.69</XBMCName>
  41. - <!-- Either name or ip, address of XBMC instance that has PlayOn added as a source. Do not include :port here.
  42.   -->
  43.   <timeout>90</timeout>
  44. - <!-- 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)
  45.   -->
  46.   <method>HTTP</method>
  47. - <!-- Either HTTP or Raw
  48.   -->
  49. - <!-- These options are only used if HTTP is specified as the method
  50.   -->
  51.   <port>8080</port>
  52.   <username>William</username>
  53.   <password>dec131990</password>
  54.   </JSONRPC>
  55. - <!--  Dropbox - This is the folder where all the Video's .strm files will be stored.
  56.         Inside this folder, subfolders will be created named "TV Shows", "Movies", and "Music Videos"      
  57.        
  58.         IMPORTANT: The dropbox must be a new folder used exclusively for this script.
  59.                    Do not use an existing video source's folder!
  60.         IMPORTANT: It is highly recommended to use a smb share as your dropbox!
  61.        
  62.         streaming - The "Main" dropbox where videos are put by default
  63.             On your computer, create a new folder, enter it's location here.
  64.             Then create 3 subfolders under it, named "TV Shows", "Movies", and "Music Videos".
  65.             Go into XBMC and add each of the 3 subfolders under the Videos, Files, Add Source, setting the content for each folder
  66.             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.       
  67.            
  68.         LinuxSamba - If specified, this will be prepended to the local path you specified in <streaming>.
  69.                         Useful if you use linux xbmc and your sources are on a smb share. Example: smb://COMPUTER_NAME
  70.    
  71.   -->
  72. - <Dropbox>
  73.   <streaming>\\server\share\path\to\dropbox</streaming>
  74.   <LinuxSambaPrefix />
  75.   </Dropbox>
  76. - <!--  Database config. Either MySQL or SQLLite can be used. One (and only one) of these must be enabled for this program to work.
  77.     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.    
  78.    
  79.  -->
  80. - <XBMCDatabase>
  81. - <!-- Enable either SQLite OR MySQL
  82.  -->
  83. - <SQLite enabled="true">
  84.  <VideoDBPath>C:\Users\William\AppData\Roaming\XBMC\userdata\Database\MyVideos60.db</VideoDBPath>
  85. - <!-- Cannot be a UNC path. If the .db file is not local, map a drive to it
  86.  -->
  87.  </SQLite>
  88. - <MySQL enabled="false">
  89.  <host>localhost</host>
  90. - <!-- Name or IP address
  91.  -->
  92.  <VideoSchema>xbmc_video</VideoSchema>
  93.  <username>xbmc</username>
  94.  <password>xbmc</password>
  95.  <port>3306</port>
  96.  <CharacterSet>latin1</CharacterSet>
  97. - <!-- latin1 is default, and recommended. See here for details: http://forum.xbmc.org/showthread.php?p=576974&highlight=latin1#post576974
  98.  -->
  99.  </MySQL>
  100.  </XBMCDatabase>
  101. - <!-- IPChange
  102.         For example, if you are browsing UPNP sources on the same box they are hosted on, the address
  103.         may resolve as "127.0.0.1" instead of the LAN IP. If you attempt to the play file on any
  104.         other computer, it will not work. We can fix this by replacing it with the correct IP.
  105.    
  106.  -->
  107. - <IPChange enabled="false">
  108.  <change from="127.0.0.1" to="192.168.1.1" />
  109.  <change from="localhost" to="192.168.1.1" />
  110.  </IPChange>
  111. - <!-- Library scan wait minutes
  112.         Once this program is done finding videos, it triggers a video library update in XBMC.
  113.         It will then wait this many minutes for new videos to be added to the library. If new videos are found,
  114.         it waits this many minutes again until no new videos are found.  
  115.         If you have a very large library, this may need to be increased.
  116.  -->
  117.  <LibraryScanWaitMinutes>30.0</LibraryScanWaitMinutes>
  118. - <!-- ManualArchiving
  119.         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)
  120.         See here for details on manual archiving in XBMC: http://wiki.xbmc.org/index.php?title=Import_-_Export_Library#Video_nfo_Files
  121.   -->
  122. - <ManualArchiving enabled="false">
  123.   <HoursThreshold>24.0</HoursThreshold>
  124. - <!-- The video must have been archived at least this many hours ago before it will be manually archived
  125.   -->
  126.   </ManualArchiving>
  127. - <!-- When videos that were previously found are no longer found, they will be deleted from the dropbox as configured by these parameters
  128.   -->
  129. - <VideoCleanUp>
  130.   <HoursThreshold>8.0</HoursThreshold>
  131. - <!-- The video must be missing for at least this many hours before it's deleted.
  132.  -->
  133.  <ConsecutiveThreshold>5</ConsecutiveThreshold>
  134. - <!-- The video must be missing for this many consecutive times before it's deleted (each time this program runs is consider 1 time).
  135.   -->
  136.   </VideoCleanUp>
  137. - <!--  Pre-Scrape Music Videos
  138.         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.
  139.         If pre-scrape is enabled, it is recommened to use the MTV Music Video scraper in XBMC,
  140.         this allows for fall-back to that scraper if the Yahoo scraped can't find the music video.
  141.  -->
  142.  <PreScrapeMusicVids enabled="false" />
  143. - <!--  XBMC Restart before scan.
  144.     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.
  145.         If you set this to true, you should modify the res/XBMCRestart.cmd file in this program's directory to fit your needs.
  146.   -->
  147.   <XBMCRestart enabled="false" />
  148. - <!--  <SearchFilters>            
  149.         This is where you define what sources in XBMC should be added to the library.
  150.         <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.
  151.             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.         
  152.             <subfolder> - Each source can have multiple subfolder elements. These are directories that should be scanned and added to the library.
  153.                 *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.
  154.                         If specified at the source level, the attribute will be inherited by all subfolders.
  155.                         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.
  156.                 name - required attribute; The name of the subfolder. (do not include the source name, just the subfolder). Use '/' to seperate folders in the name.
  157.                 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.
  158.                         If the content type is all known to be TV Shows, use 'episodes';
  159.                         If the content type is all known to be movies Movies/Films, use 'movies'
  160.                         If the content type is all known to be movies Music Videos, use 'music_videos'
  161.                         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
  162.                         NOTE: this does not filter the content in the directory; it tells this program what kind of content to expect!
  163.                 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.
  164.                 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!                              
  165.                 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)
  166.                 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.
  167.                 max_videos - optional attribute; default=unlimited; This is the maxinum number of episodes/movies/music videos to retrieve from the subfolder.
  168.                 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
  169.                 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.
  170.                 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.
  171.                 multi_part - optional arrtibute; default=false; Set this to true if the subfolder might contain any multi-part vidoes              
  172.                 force_series - optional attribute; default=none; This will override any series name that gets parsed.
  173.                 <exclude> - optional; If a video's path matches ANY of these, it will be skipped.
  174.                 <filter>  - optional; Only videos that match ALL filters will be included (unless it matched an exclude)
  175.                     <contains> - Matches if the video path contains at least one of the literal texts delimited by double pipes "||" (case-insensitive)
  176.                     <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/
  177.                     <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.
  178.                 <parser>  - optional; Overrides the default series and title parser with a regular expression that must contain two defined groups.
  179.                     <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/
  180.                
  181.             Note: The exclude/filters filter on the video path. A typical video path looks something like "Hulu/Popular/Popular Episodes/s01e01 - MyTVShow - Pilot"
  182.             Note: Be careful what you recursively search for. For example, a recursive search of PlayOn's Netflix/Browse Genres returns about 75,000 videos!
  183.             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)        
  184.            
  185.    
  186.   -->
  187. - <SearchFilters>
  188. - <!--      See here for sample search filter configurations: https://docs.google.com/document/d/1CDbdU1GOJlIblwGH8vaJT5c_99lK5H-gRMe3CFpZpUs/edit?hl=en#bookmark=id.g4i0iqa50b0b
  189.        
  190.   -->
  191. - <!-- Add your own search filters here!!!
  192.   -->
  193. - <!-- This is a sample using the BlueCop Hulu plugin
  194.   -->
  195. - <Hulu path="plugin://plugin.video.hulu" recursive="true" regex_name="true" prefix="(H)">
  196. - <!-- Top 10 Popular movies from Hulu
  197.   -->
  198.   <subfolder name="Movies/Popular Movies \([0-9]+\)/Popular feature films \([0-9]+\)" max_videos="10" type="movies" movie_set="Hulu (BlueCop)" />
  199. - <!-- Full Episodes fron the top 10 popular shows in Hulu
  200.   -->
  201. - <subfolder name="TV/Popular TV \([0-9]+\)/Popular Shows \([0-9]+\)" max_series="10" type="episodes">
  202. - <filter>
  203.   <regexp>/Episode[s]? \([0-9]+\)/</regexp>
  204.   </filter>
  205. - <exclude>
  206.   <regexp>/season[s]? \([0-9]+\)</regexp>
  207.   </exclude>
  208.   </subfolder>
  209. - <exclude>
  210.   <contains>previous page</contains>
  211.   <contains>next page</contains>
  212.   <contains>/Recommended</contains>
  213.   <contains>/Clips</contains>
  214.   </exclude>
  215.   </Hulu>
  216. - <!--  BlueCop FreeCable Streaming TV Network Content
  217.   -->
  218. - <FreeCable path="plugin://plugin.video.free.cable" recursive="true" prefix="(F)">
  219. - <!--  All full episodes over 20 minutes long for a subset of the USA network shows
  220.   -->
  221. - <subfolder name="USA" type="episodes">
  222. - <filter>
  223. - <!--  Only look for shows that are in a path that contains the words "Full Episodes"
  224.   -->
  225.   <contains>Full Episodes</contains>
  226. - <!--  In addition to the above filter, only get shows that are greater than (GT) 20 minutes long (1200 seconds)
  227.   -->
  228.   <runtime>GT|1200</runtime>
  229. - <!--  List all of the shows delimited by double pipes that should be captured
  230.   -->
  231.   <contains>Fairly Legal || In Plain Sight || Burn Notice</contains>
  232.   </filter>
  233.   </subfolder>
  234. - <!--  All full episodes over 20 minutes long for a subset of the History network shows
  235.   -->
  236. - <subfolder name="History Channel" type="episodes">
  237. - <filter>
  238. - <!--  Only look for shows that are in a path that contains the words "Full Episodes"
  239.   -->
  240.   <contains>Full Episodes</contains>
  241. - <!--  In addition to the above filter, only get shows that are greater than (GT) 20 minutes long (1200 seconds)
  242.   -->
  243.   <runtime>GT|1200</runtime>
  244. - <!--  List all of the shows delimited by double pipes that should be captured
  245.   -->
  246.   <contains>Modern Marvels || Top Gear || The Universe || Ice Road Truckers || Ax Men</contains>
  247.   </filter>
  248.   </subfolder>
  249.   </FreeCable>
  250. - <!--  TED Talks Streaming Videos
  251.   -->
  252. - <TED path="plugin://plugin.video.ted.talks" recursive="true">
  253. - <!--  All of the Newest Talks into a generic folder (no tvdb lookups) and force group it to a "TED Talks" folder
  254.   -->
  255. - <subfolder name="Newest Talks" type="generic" suffix="(TED)" force_series="TED Talks">
  256. - <parser>
  257. - <!--  Put the entire video name into the second pattern group to use as the episode name
  258.   -->
  259.   <regexp>()([\w\s*'-:]*)</regexp>
  260.  </parser>
  261.  </subfolder>
  262.  </TED>
  263.  </SearchFilters>
  264. - <!--  These will be used to exclude content from all subfolders.
  265.     <regexp> - a regular expression to match
  266.     <contains> - a literal string to match on
  267.         both are case-insensitive
  268.    
  269.  -->
  270. - <GlobalExcludes>
  271.  <contains>/No videos available</contains>
  272.  <regexp>/clip[s]?(/|$)</regexp>
  273. - <!-- Prevent TV clip(s) from being archived (only want full episodes)
  274.  -->
  275. - <!-- shows that i dont want in my library
  276.  -->
  277.  <contains>Dragon Ball Z</contains>
  278.  </GlobalExcludes>
  279.  </root>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement