<?xml version="1.0"?>

<settings>
	<site series="tvdb.com.bing"></site>
	<filename>/ssddata/Install/webgrabplus/.wg++/guideOut.xml</filename>
	<ldbfilename update="f" add-nomatch="no" retry-nomatch="no">mdb.xml</ldbfilename>

	<![CDATA[
Selection :
-----------
  selectmovie and/or selectserie: the MDB postprocessor selects shows from the xmltv input file for which the it will attempt to optain MDB data.  The following selection settings determine which shows are selected.
  <selectmovie duration="55" minumum="3" musthave="title" contains="" optional="productiondate,actor,director"/>
  <selectserie duration="25" minumum="2" musthave="subtitle" contains="serie,soap,thriller,comedy,drama" optional="productiondate,actor,director"/>
In which (examples):
- duration="45" ; minumum duration is 45 minutes
- optional contains="film,thriller,movie" ; the epg data must contain at least these words. This also allows to select single shows! 
  (Optionally : Specify the xmltv element name : "xmltv_element_name=value1,value2,..,xmltv_element_name=value1,value2,.."
    supported element_names are title, sub-title, desc, category and 'all' (default) 
    Examples of contains with elementnames:
        contains="category=film,thriller,movie,title=Friends,Spies" 
        contains="title=Kill the Irishman", will select shows with that this sentence in the title.)
- optional unselect="news" ; shows containing "news" will not be selected 
  supports optional xmltv_element_names , see contains
- musthave="title" ; obviously the epg show must have a title, if omitted the value is title. Other additional 'musthave' xmltv elements can be added.
- optional="productiondate,actor,director" ; specifies which xmltv elements will be added to the selection if available.
- minimum="2"; specifies how many of the musthave+optional elements must be available for a show to be selected.

To make it simpler , defaults can be used:
for movies:
    <selectmovie>defaults</selectmovie> or with a contains argument:
    <selectmovie contains="blabla">defaults</selectmovie>
    which is the same as:
    <selectmovie duration="45" minumum="2" musthave="title" contains="blabla" optional="productiondate,actor,director"/
for series: (same syntaxt as for selectmovie) 
    <selectserie>defaults</selectserie> or
    <selectserie contains="blabla" >defaults</selectserie>
    which is the same as:
    <selectserie duration="25" minumum="2" musthave="title" contains="blabla" optional="sub-title, episode-num"/>
    (note: To get the best result, specify the sub-title and episode-num as optional together with minimum=2, this will ensure that either sub-title and or episode-num is present in the selected show ! And do not add additional optional elements!!) ]]>
	<selectmovie>defaults</selectmovie>
	<selectserie>defaults</selectserie>

	<![CDATA[
matching :
---------- 
Setting that configures how the epg and mdb values are compared to result in a match. 
- mustmatch ; default title
- optional ; other elements that can be added to compare are: productiondate,actor,director
- minimum ; how many of the above needs to match

Similar to <select> defaults can be used 
For movies :
    <matchmovie>defaults</matchmovie>
    which is the same as:
    <matchmovie mustmatch="title" optional="productiondate,actor,director" minimum="2"/>
For series:
    <matchserie>defaults</matchserie>
    which is the same as:
    <matchserie mustmatch="title, episode-num, sub-title" optional="productiondate,actor,director" minimum="2"/>
    (note specify episode-num and sub-title in mustmatch together with minimum="2" as described above in selection) ]]>
	<matchmovie>defaults</matchmovie>
	<matchserie>defaults</matchserie>

	<![CDATA[
Episode number pattern :
------------------------
Only required when the episode number of the selected serie needs to be matched with the episode number in the mdb site. Or to convert the system attribute of the episode-num in the xmltv input from onscreen to xmltv_ns viseversa. 
With it, the program is able to recognise 'non standard' onscreen values.
For the episode-num values in xmltv input file this conversion is done automatically for two formats: xmltv_ns and the onscreen format Sx Ey ( e.g. S3 E5 = season 3 episode 5). 
Other onscreen formats need a pattern specification e.g. :
    <episodenum_pattern site="se.timefor.tv">"Season'S1'Episode'E1'"</episodenum_pattern>
    <episodenum_pattern enum="absolute" site="tv.wp" >"S'S1' E'E1'""E'E1'"</episodenum_pattern>
In which:
- 'optional' site is the site name for which the pattern is valid. This must be the site_id value.
- 'optional' enum. Specifies if episode-num in xmltv source file is 'absolute'. That is the case when the episode value is given ignoring the season . Example : Season 4 Episode 6 of 10 , then absolute E is 3 * 10  + 6 = 36. In most cases the programm will recognise absolute episode numbers even when enum attribute is not specified. The enum value must be "absolute". Any other value or without the enum attribute will use the standard 'non' absolute. This attribute will not be used for system conversion! 

- the pattern value must be composed of the following elements:
 * strings , like Season or Temporada or Aflevering or Folge , whatever strings or characters accompany the numbers.
 * One or more of the following standard expressions to indicate the meaning of the numbers:
 'S0' or 'S1' the season number, S0 for 'zero based numbers' (first season is season 0) 'S1' for 'one based numbers'
 'St0' or 'St1' the total number of seasons (if present)
 'E0' or 'E1' and eventual 'Et0' or 'Et1' for the episode number
 'P0' or 'P1' and eventual 'Pt0' or 'Pt1' for the part number
Example :
Value in xmltv input file  : Season 5, Episode 12   -->   pattern :   Season'S1',Epsode'E1' (for one based numbers)
 or   : Ep12/24 of Sn3   -->  pattern : Ep'E0'/'Et1'ofSn'S0'  (partly zero based)   
* multiple patterns can be specified if a site uses different formats in the xmltv source. The program automatically selects the one that gives the best matching. Each pattern must be enclosed by " ".
* If not specified the default patterns "S'S1' E'E1'""E'E1'" are used .
* No pattern is needed for episode-num values in system xmltv_ns
Example:]]>
	<!-- <episodenum_pattern>"Season'S1'Episode'E1'""Season'S1'Episode'E1'/'Et1'"</episodenum_pattern> -->
	<!-- or with optional site argument :-->
	<![CDATA[
mdb-starrating correction:
--------------------------
  allows to convert the mdb-starrating into a value that suits a media-center starrating display. E.g. , the majority of the IMDb starrating values are between 4 (bad) and 8 (good) in a scale of 10. In the more usual 5 star display system , there is too little difference between these values.  
  The following settings, first subtracts 4 from the grabbed mdb-starrating and multiplies the result by 2.5 with a maximum of 5 . That will convert the values above, in 0 (was 4) and 5 (was 8) 
  Default values: subtract="0" multiply="1" and max="10"-->]]>
	<mdb-starrating subtract="4" multiply="2.5" max="5"></mdb-starrating>
	
	<!-- these two AP-lines add a new title element with the content of the first mdb-title followed by the existing title-->
	<title lang="en">{'mdb-title[max_elements=1]'}</title>
	<title>'title'</title>

</settings>
