Advertisement
Guest User

Untitled

a guest
May 25th, 2013
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.39 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">INFO</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>Media-PC</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> <!--HTTP or Raw -->
  43.  
  44. <!--These options are only used if HTTP is specified as the method-->
  45. <port>80</port>
  46. <username>1</username>
  47. <password>1</password>
  48.  
  49. </JSONRPC>
  50.  
  51.  
  52. <!--
  53. Dropbox - This is the folder where all the Video's .strm files will be stored.
  54. Inside this folder, subfolders will be created named "TV Shows", "Movies", and "Music Videos"
  55.  
  56. IMPORTANT: The dropbox must be a new folder used exclusively for this script.
  57. Do not use an existing video source's folder!
  58. IMPORTANT: It is highly recommended to use a smb share as your dropbox!
  59.  
  60. streaming - The "Main" dropbox where videos are put by default
  61. On your computer, create a new folder, enter it's location here.
  62. Then create 3 subfolders under it, named "TV Shows", "Movies", and "Music Videos".
  63. Go into XBMC and add each of the 3 subfolders under the Videos, Files, Add Source, setting the content for each folder
  64. 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.
  65. -->
  66.  
  67. <Dropbox>
  68. <streaming>\\Media-PC\Users\Media\Videos\Streams</streaming>
  69. </Dropbox>
  70.  
  71.  
  72. <!--
  73. Database config. Either MySQL or SQLLite can be used. One (and only one) of these must be enabled for this program to work.
  74. 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.
  75. -->
  76. <XBMCDatabase><!--Enable either SQLite OR MySQL -->
  77. <SQLite enabled="true">
  78. <VideoDBPath>C:\Users\Media\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-->
  79. </SQLite>
  80.  
  81. <MySQL enabled="false">
  82. <host>localhost</host><!--Name or IP address-->
  83. <VideoSchema>xbmc_video</VideoSchema>
  84. <username>xbmc</username>
  85. <password>xbmc</password>
  86. <port>3306</port>
  87. <CharacterSet>latin1</CharacterSet><!--latin1 is default, and recommended. See here for details: http://forum.xbmc.org/showthread.php?p=576974&highlight=latin1#post576974 -->
  88. </MySQL>
  89. </XBMCDatabase>
  90.  
  91. <!--IPChange
  92. For example, if you are browsing UPNP sources on the same box they are hosted on, the address
  93. may resolve as "127.0.0.1" instead of the LAN IP. If you attempt to the play file on any
  94. other computer, it will not work. We can fix this by replacing it with the correct IP.
  95. -->
  96. <IPChange enabled="false">
  97. <change from="127.0.0.1" to="192.168.1.1" />
  98. <change from="localhost" to="192.168.1.1" />
  99. </IPChange>
  100.  
  101. <!--Library scan wait minutes
  102. Once this program is done finding videos, it triggers a video library update in XBMC.
  103. It will then wait this many minutes for new videos to be added to the library. If new videos are found,
  104. it waits this many minutes again until no new videos are found.
  105. If you have a very large library, this may need to be increased. -->
  106. <LibraryScanWaitMinutes>2.0</LibraryScanWaitMinutes>
  107.  
  108. <!--ManualArchiving
  109. 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)
  110. See here for details on manual archiving in XBMC: http://wiki.xbmc.org/index.php?title=Import_-_Export_Library#Video_nfo_Files -->
  111. <ManualArchiving enabled="false">
  112. <HoursThreshold>24.0</HoursThreshold><!--The video must have been archived at least this many hours ago before it will be manually archived -->
  113. </ManualArchiving>
  114.  
  115. <!--When videos that were previously found are no longer found, they will be deleted from the dropbox as configured by these parameters -->
  116. <VideoCleanUp>
  117. <HoursThreshold>8.0</HoursThreshold><!--The video must be missing for at least this many hours before it's deleted. -->
  118. <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). -->
  119. </VideoCleanUp>
  120.  
  121. <!-- Pre-Scrape Music Videos
  122. 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.
  123. If pre-scrape is enabled, it is recommened to use the MTV Music Video scraper in XBMC,
  124. this allows for fall-back to that scraper if the Yahoo scraped can't find the music video. -->
  125. <PreScrapeMusicVids enabled="false" />
  126.  
  127. <!-- XBMC Restart before scan.
  128. 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.
  129. If you set this to true, you should modify the res/XBMCRestart.cmd file in this program's directory to fit your needs. -->
  130. <XBMCRestart enabled="false" />
  131.  
  132. <!--
  133. <SearchFilters>
  134. This is where you define what sources in XBMC should be added to the library.
  135. <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.
  136. 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.
  137. <subfolder> - Each source can have multiple subfolder elements. These are directories that should be scanned and added to the library.
  138. *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.
  139. If specified at the source level, the attribute will be inherited by all subfolders.
  140. 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.
  141. name - required attribute; The name of the subfolder. (do not include the source name, just the subfolder). Use '/' to seperate folders in the name.
  142. 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.
  143. If the content type is all known to be TV Shows, use 'episodes';
  144. If the content type is all known to be movies Movies/Films, use 'movies'
  145. If the content type is all known to be movies Music Videos, use 'music_videos'
  146. NOTE: this does not filter the content in the directory; it tells this program what kind of content to expect!
  147. 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.
  148. 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!
  149. 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)
  150. 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.
  151. max_videos - optional attribute; default=unlimited; This is the maxinum number of episodes/movies/music videos to retrieve from the subfolder.
  152. 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
  153. 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.
  154. 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.
  155. multi_part - optional arrtibute; default=false; Set this to true if the subfolder might contain any multi-part vidoes
  156. <exclude> - optional; If a video's path matches ANY of these, it will be skipped.
  157. <filter> - optional; Only videos that match ALL filters will be included (unless it matched an exclude)
  158. <contains> - Matches if the video path contains this literal text (case-insensitive)
  159. <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/
  160.  
  161. Note: The exclude/filters filter on the video path. A typical video path looks something like "Hulu/Popular/Popular Episodes/s01e01 - MyTVShow - Pilot"
  162. Note: Be careful what you recursively search for. For example, a recursive search of PlayOn's Netflix/Browse Genres returns about 75,000 videos!
  163. 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)
  164.  
  165. -->
  166.  
  167. <SearchFilters>
  168. <!--
  169. See here for sample search filter configurations: https://docs.google.com/document/d/1CDbdU1GOJlIblwGH8vaJT5c_99lK5H-gRMe3CFpZpUs/edit?hl=en#bookmark=id.g4i0iqa50b0b
  170. -->
  171.  
  172. <!--Add your own search filters here!!! -->
  173.  
  174. <!--For this to work, you must have a source named "Hulu" added to XBMC, which maps to Playon's Hulu subdirectory -->
  175. <Hulu custom_parser="PlayOn">
  176.  
  177. <!--Download the latest 3 episodes from the Daily Show -->
  178. <subfolder name="TV Shows/D/The Daily Show with Jon Stewart/Full Episodes" download="true"
  179. suffix=" (Hulu download)" max_videos="3"/>
  180.  
  181. <!--Gets all full episodes from the Top 35 series in Hulu-->
  182. <subfolder name="Popular/Popular Shows" recursive="true" type="episodes" max_series="35" prefix="[Hulu] ">
  183. <filter><!--Avoid getting Clips from the Show/Seasons/ directories-->
  184. <contains>/Full Episodes/</contains>
  185. </filter>
  186. <exclude><!--These folders have clips in them. Exclude them for faster scanning-->
  187. <regexp>/Seasons$</regexp>
  188. <contains>/Seasons/</contains>
  189. </exclude>
  190. </subfolder>
  191.  
  192. <!--Catch any of the top 200 popular episodes that weren't in the previous subfolder.
  193. Will skips the episode if it was found in previous subfolder-->
  194. <subfolder name="Popular/Popular Episodes" recursive="true" type="episodes" max_videos="200" prefix="[Hulu] " />
  195.  
  196. <!--Get the top 50 popular movies from Hulu and put them in a movie set -->
  197.  
  198. <subfolder name="Popular/Popular Feature Films" recursive="true" type="movies"
  199. max_videos="50" movie_set=" Hulu Popular Movies"></subfolder>
  200.  
  201. </Hulu>
  202.  
  203. <!--For this to work, you must have a source named "Neflix" added to XBMC, which maps to Playon's Netflix subdirectory -->
  204. <Netflix prefix="[Netflix] " custom_parser="PlayOn" recursive="true">
  205. <!-- Get all TV and Movies from your instant queue. Movies will be put in a movie set.
  206. TV Episodes will have a prefix added to their title -->
  207. <subfolder name="Instant Queue/Alphabetical" movie_set=" Netflix Instant Queue" />
  208.  
  209. <!-- Get new movies from Netflix and add them to a movie set -->
  210. <subfolder name="New Arrivals/New movies to watch instantly" type="movies" movie_set=" Netflix New Movies" />
  211.  
  212. <!--Get up to 50 episodes from the Sitcoms genre-->
  213. <subfolder name="Browse Genres/Television/TV Comedies/TV Sitcoms" type="episodes" max_videos="50" />
  214.  
  215. <!--Get up to 50 episodes of new TV Episodes -->
  216. <subfolder name="New Arrivals/New TV to watch instantly" type="episodes" max_videos="50"/>
  217. </Netflix>
  218.  
  219. </SearchFilters>
  220.  
  221. <!--
  222. These will be used to exclude content from all subfolders.
  223. <regexp> - a regular expression to match
  224. <contains> - a literal string to match on
  225. both are case-insensitive
  226. -->
  227. <GlobalExcludes>
  228. <contains>/No videos available</contains>
  229. <regexp>/clip[s]?(/|$)</regexp><!--Prevent TV clip(s) from being archived (only want full episodes)-->
  230.  
  231. <!--shows that i dont want in my library-->
  232. <contains>Dragon Ball Z</contains>
  233.  
  234. </GlobalExcludes>
  235.  
  236. </root>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement