Advertisement
TheCasa

mylibrary not renaming to strm config

Dec 11th, 2011
1,540
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 16.17 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.             Raw  -Uses Raw TCP/IP "telnet" type of an interface.
  28.                  -Uses TCP port 9090 (not configurable)
  29.                  -Faster than Curl.
  30.                  -Requires going to Settings, Network, Services, and checking "Allow Programs on this/others systems to control XBMC"                
  31.             Curl -Uses Curl to communicate with XBMC's Webserver (currenlty only Windows is supported for Curl)
  32.                  -Slower than Raw method, but can be used if you experience trouble with the Raw method
  33.                  -Requires going to Settings, Network, Services, and checking "Allow control of XBMC via HTTP" and setting the Port/Username/Password you desire.  
  34.                 <port> - The XBMC Webserver port, default 8080
  35.                 <username> - The XBMC Webserver username, default none
  36.                 <password> - The XBMC Webserver password, default none
  37.     -->
  38.     <JSONRPC>
  39.         <XBMCName>localhost</XBMCName><!--Either name or ip, address of XBMC instance. XBMC must be running. Do not include :port here. -->
  40.         <method>raw</method> <!--Either Raw or Curl -->
  41.        
  42.         <!--These options are only used if Curl is specified as the method-->
  43.         <port>80</port>
  44.         <username>xbmc</username>
  45.         <password>xbmc</password>      
  46.     </JSONRPC>
  47.    
  48.    
  49.     <!--
  50.     Dropbox - This is the folder where all the Video's .strm files will be stored.
  51.         Inside this folder, subfolders will be created named "TV Shows", "Movies", and "Music Videos"      
  52.        
  53.         IMPORTANT: The dropbox must be a new folder used exclusively for this script.
  54.                    Do not use an existing video source's folder!
  55.                    
  56.         streaming - The "Main" dropbox where videos are put by default
  57.             Create a new folder, enter it's location here.
  58.             Then create 3 subfolders under it, named "TV Shows", "Movies", and "Music Videos".
  59.             Go into XBMC and add each of the 3 subfolders under the Videos, Files, Add Source, setting the content for each folder
  60.             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.
  61.         donloaded - If you download any vidoes, they will be put here. Create a new directory in a location different than
  62.             the streaming dropbox. You need not create any subfolders under this directory.
  63.             This directory does NOT need to be added to XBMC as a source
  64.     -->
  65.    
  66.     <Dropbox>
  67.         <streaming>C:\dropbox</streaming><!--  -->
  68.         <downloaded>C:\downloaded_dropbox</downloaded><!--The dropbox where downloaded vidoes are put. Must not be inside the <streaming> dropbox -->
  69.     </Dropbox>
  70.    
  71.    
  72.     <!--ThumbnailDir - This is the directory where XBMC store its thumbs: the userdata\Thumbnails folder.
  73.             Note: the location of the userdata folder differs if you are running XBMC in portable mode.
  74.             If you are using a "shared" thumbnails directory, enter the shared directory here. -->
  75.     <ThumbnailDir>C:\Users\jessie\AppData\Roaming\XBMC\userdata\Thumbnails</ThumbnailDir>  
  76.    
  77.     <!--
  78.     Database config. Either MySQL or SQLLite can be used. One (and only one) of these must be enabled for this program to work.
  79.     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.
  80.     -->    
  81.     <XBMCDatabase><!--Enable either SQLite OR MySQL -->    
  82.         <SQLite enabled="true">
  83.             <VideoDBPath>C:\Users\jessie\AppData\Roaming\XBMC\userdata\Database\MyVideos34.db</VideoDBPath><!--Cannot be a UNC path. If the .db file is not local, map a drive to it-->        
  84.         </SQLite>
  85.    
  86.         <MySQL enabled="false">
  87.             <host>localhost</host><!--Name or IP address-->
  88.             <VideoSchema>xbmc_video</VideoSchema>          
  89.             <username>xbmc</username>
  90.             <password>xbmc</password>
  91.             <port>3306</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.     <!-- If you are going to set any videos to download="true", then you need JDownloader installed and configured.
  133.         See the instructions here: https://docs.google.com/document/d/1CDbdU1GOJlIblwGH8vaJT5c_99lK5H-gRMe3CFpZpUs/edit?hl=en#bookmark=id.kxanpzdztgh5
  134.     -->
  135.     <JDownloader>http://localhost:10025</JDownloader><!--10025 is the default port, it should be appended to the address like so :10025 -->
  136.    
  137.     <!--
  138.     Comskip (Windows only): If enabled, comskip will be run on downloaded videos and xbmc will use the generated .edl file to skip commercials (if any)
  139.         Note: Cosmkip does not work with all video codecs. If the downloaded video's codec is not compatible, comskip will skip it.
  140.     Available Types:
  141.         0 - Cut  - (Default) cuts the commercial out of the video. Acts as though it never existed.
  142.         1 - Mute - Mutes the commercial.
  143.         2 - Scene Marker - Adds a scene marker (like a DVD chapter) for the end of each commercial in the .edl
  144.         3 - Commercial Break - Treats the content as a commercial. XBMC will skip it, but it can be manually seeked back into if needed.   
  145.         -->
  146.     <ComSkipDownloadedVideos enabled="false" type="3"></ComSkipDownloadedVideos>
  147.    
  148.     <!-- XBMC Restart before scan.
  149.     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.
  150.         If you set this to true, you should modify the res/XBMCRestart.cmd file in this program's directory to fit your needs. -->
  151.     <XBMCRestart enabled="false" />
  152.    
  153.     <!--
  154.     <SearchFilters>            
  155.         This is where you define what sources in XBMC should be added to the library.
  156.         <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.
  157.             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.         
  158.             <subfolder> - Each source can have multiple subfolder elements. These are directories that should be scanned and added to the library.
  159.                 *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.
  160.                         If specified at the source level, the attribute will be inherited by all subfolders.
  161.                         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.
  162.                 name - required attribute; The name of the subfolder. (do not include the source name, just the subfolder). Use '/' to seperate folders in the name.
  163.                 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.
  164.                         If the content type is all known to be TV Shows, use 'episodes';
  165.                         If the content type is all known to be movies Movies/Films, use 'movies'
  166.                         If the content type is all known to be movies Music Videos, use 'music_videos'
  167.                         NOTE: this does not filter the content in the directory; it tells this program what kind of content to expect!
  168.                 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.
  169.                 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!                              
  170.                 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)
  171.                 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.
  172.                 max_videos - optional attribute; default=unlimited; This is the maxinum number of episodes/movies/music videos to retrieve from the subfolder.
  173.                 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
  174.                 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.
  175.                 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.
  176.                 multi_part - optional arrtibute; default=false; Set this to true if the subfolder might contain any multi-part vidoes (e.g. IceFilms addon needs this set true)
  177.                 download - optional attribute; default=false; Set this to true if you want to download the video with JDownloader instead of stream it. See user's guide for more info.
  178.                 compression -  optional attribute; default=none; Set this to the name of a <Compression> (see below) if you want to compress downloaded videos before adding them to the library.
  179.                 <exclude> - optional; If a video's path matches ANY of these, it will be skipped.
  180.                 <filter>  - optional; Only videos that match ALL filters will be included (unless it matched an exclude)
  181.                     <contains> - Matches if the video path contains this literal text (case-insensitive)
  182.                     <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/
  183.                
  184.             Note: The exclude/filters filter on the video path. A typical video path looks something like "Hulu/Popular/Popular Episodes/s01e01 - MyTVShow - Pilot"
  185.             Note: Be careful what you recursively search for. For example, a recursive search of PlayOn's Netflix/Browse Genres returns about 75,000 videos!
  186.             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)
  187.            
  188.            
  189.     -->
  190.  
  191. <SearchFilters>
  192.     <!--
  193.     See here for sample search filter configurations: https://docs.google.com/document/d/1CDbdU1GOJlIblwGH8vaJT5c_99lK5H-gRMe3CFpZpUs/edit?hl=en#bookmark=id.g4i0iqa50b0b
  194.     -->
  195.    
  196.     <!--Add search filters here!!! -->
  197.  
  198.     <!-- Hulu videos from BlueCop's hulu plugin -->
  199.     <Hulu path="plugin://plugin.video.hulu" recursive="true" regex_name="true" >           
  200.  
  201.         <!--Top 10 Popular movies from Hulu -->
  202.         <subfolder name="Movies/Popular Movies \([0-9]+\)/Popular feature films \([0-9]+\)"
  203.             max_videos="2" type="movies" movie_set=" Hulu (BlueCop)" />                                                
  204.  
  205.         <!--Full Episodes fron the top 10 popular shows in Hulu -->
  206.         <!--
  207.         <subfolder name="TV/Popular TV \([0-9]+\)/Popular Shows \([0-9]+\)"
  208.             max_series="2" type="episodes" suffix=" (Hulu)" >
  209.             <filter>
  210.                 <regexp>/Episodes \([0-9]+\)/</regexp>             
  211.             </filter>
  212.             <exclude>                  
  213.                 <regexp>/season[s]? \([0-9]+\)</regexp>
  214.                 <contains>Family Guy</contains>
  215.                 <contains>American Dad</contains>
  216.             </exclude>
  217.         </subfolder>                           
  218.         -->
  219.         <exclude>
  220.             <contains>previous page</contains>                 
  221.             <contains>next page</contains>                     
  222.         </exclude>
  223.  
  224.     </Hulu>
  225.  
  226.  
  227. </SearchFilters>
  228.    
  229.     <!--
  230.     These will be used to exclude content from all subfolders.
  231.     <regexp> - a regular expression to match
  232.     <contains> - a literal string to match on
  233.         both are case-insensitive
  234.     -->
  235.     <GlobalExcludes>
  236.         <contains>/No videos available</contains>
  237.         <regexp>/clip[s]?(/|$)</regexp><!--Prevent TV clip(s) from being archived (only want full episodes)-->     
  238.        
  239.         <!--shows that i dont want in my library-->                    
  240.         <contains>Dragon Ball Z</contains>
  241.        
  242.     </GlobalExcludes>
  243.    
  244.     <!--If you have compression enabled for any download="true" videos, you can define the compression here.
  245.     If you aren't downloading or compressing videos, this section can be left alone
  246.     [FILE_PATH_NO_EXT] will be replaced with the full path to the file, without an extension
  247.     -->
  248.     <Compression>
  249.         <Handbrake><!--This compression definition is named "Handbrake", you can have multiple definitions if you need -->         
  250.             <encode_to>.mkv</encode_to>          
  251.             <command>"C:\Program Files (x86)\Handbrake\HandBrakeCLI.exe" -i "[FILE_PATH_NO_EXT].mpg" -t 1 -c 1 -o "[FILE_PATH_NO_EXT].mkv"  -f mkv --detelecine --decomb --deinterlace -w 720 --loose-anamorphic  -e x264 -q 21 -a 1 -E faac -6 dpl2 -R Auto -B 160 -D 0.0 -x b-adapt=2:rc-lookahead=50:ref=2 --verbose=2</command>                
  252.            
  253.             <!--These lines are used to verify the compression was successful.
  254.                 They must appear in the output of the compression command.
  255.                 They must appear in this order, but not necessarily right after one another-->
  256.             <VerificationLines>
  257.                 <verification_line>Rip done!</verification_line>
  258.                 <verification_line>HandBrake has exited.</verification_line>
  259.             </VerificationLines>
  260.         </Handbrake>
  261.     </Compression>
  262. </root>
  263.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement