home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
Electronic Program Guide
xmlTV
WebGrab+Plus a new xmltv grabber
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="silentbuteo2" data-source="post: 958802" data-attributes="member: 136202"><p>@<a href="https://forum.team-mediaportal.com/members/corporate_gadfly.113254/" target="_blank">corporate_gadfly</a></p><p> </p><p>I have looked at this "problem" and found out that now only the subcategory is grabbed in the code. (basketball, football, comedy, ...)</p><p>I adjusted the code to also grab the main category (movie, sports, family, news)</p><p>Can you just test this. I tested it with some site, but before I put it in the release, I want you to test it also.</p><p>Just change your .ini file with the code below. First find the line with "urldate.format" in your .ini and remove all what is below (inlcuding that line). And then append the code below.</p><p> </p><p> </p><p>[code]urldate.format {datestring|} * no value but required by the program</p><p>index_showsplit.scrub {multi|'index_variable_element'||\n}</p><p>index_temp_3.scrub {single(separator="\t" include=11)||||} *scrubs the show_id, needed for index_urlshow</p><p>*</p><p>index_date.scrub {single(force)|||\t|}</p><p>index_temp_1.scrub {single(separator="\t" include=13)||||} * start in format yyyyMMddHHmm, we use substring</p><p>index_title.scrub {single(separator="\t" include=3)||||}</p><p>index_temp_4.scrub {single(debug separator="\t" include=5)||||} * category on the main page</p><p>*</p><p>title.scrub {single(separator="\t" include=2)||||<div style=}</p><p>subtitle.scrub {single(separator="\t" include=3)||||<div style=}</p><p>description.scrub {single(separator="\t" include=4)||||<div style=}</p><p>director.scrub {single(separator="\t" include=14)||||<div style=}</p><p>actor.scrub {single(single(separator="\t" include=15)||||<div style=}</p><p>temp_1.scrub {single(single(separator="\t" include=11 exclude="other")||||<div style=} * category (from detail page)</p><p>temp_2.scrub {single(single(separator="\t" include=12 exclude="other")||||<div style=} * subcategory (from detail page)</p><p>rating.scrub {single(single(separator="\t" include=8)||||<div style=}</p><p>productiondate.scrub {single(single(separator="\t" include=10)||||<div style=}</p><p>*</p><p>* operations:</p><p>*index_variable_element.modify {addstart|\t'config_xmltv_id'}</p><p>*index_variable_element.modify {substring(type=word)|0 1}</p><p>*index_variable_element.modify {addend|\t}</p><p>scope.range {(datelogo)|end}</p><p>index_variable_element.modify {addstart|'config_xmltv_id'}</p><p>index_variable_element.modify {substring(type=word)|-1 1}</p><p>* must contain a number</p><p>index_temp_6.modify {calculate(format=F0)|'index_variable_element'}</p><p>* clear if not a number</p><p>index_variable_element.modify {clear('index_temp_6' "0")}</p><p>index_variable_element.modify {addstart|\t}</p><p>index_variable_element.modify {addend|\t}</p><p>end_scope</p><p>*</p><p>scope.range {(indexshowdetails)|end}</p><p>* correct date :</p><p>index_date.modify {substring(type=char)|0 10}</p><p>* compose start :</p><p>index_temp_2.modify {substring(type=char)|'index_temp_1' 8 2} * the hours of start</p><p>index_start.modify {addstart|'index_temp_2':} * add hours minutes separator</p><p>index_temp_2.modify {substring(type=char)|'index_temp_1' -2} * the minutes of start</p><p>index_start.modify {addend|'index_temp_2'}</p><p>* compose index_urlshow :</p><p>index_urlshow.modify {addstart('index_temp_3' not "")|http://www.tvguide.com/listings/data/detailcache.aspx?Qr='index_temp_3'&tvoid=0&v2=1}</p><p>end_scope</p><p>*</p><p>title.modify {addstart(scope=showdetails "")|'index_title'}</p><p>actor.modify {replace(scope=showdetails)|,|\|} * make actor multi a multi element</p><p>* translate the category id to string</p><p>index_temp_4.modify {replace("1")|1|}</p><p>index_temp_4.modify {replace( "2")|2|family}</p><p>index_temp_4.modify {replace("64")|64|movie}</p><p>index_temp_4.modify {replace("256")|256|news}</p><p>index_temp_4.modify {replace("1024")|1024|sports}</p><p>* add all the categories together</p><p>category.modify {addstart(scope=showdetails 'temp_2' not "")|'temp_2'\|} * add subcategory (from the detail page)</p><p>category.modify {addstart(scope=showdetails 'temp_1' not "")|'temp_1'\|} * add category (from detail page)</p><p>category.modify {addstart( 'index_temp_4' not "")|'index_temp_4'\|} * add category (from index page)</p><p> </p><p>category.modify {cleanup(scope=showdetails removeduplicates=equal)}</p><p> </p><p>** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _</p><p>** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)</p><p>**</p><p>** @auto_xml_channel_start</p><p>** the following 8 entries create a channel list file:</p><p>*index_site_channel.scrub {multi(separator="\t")|magic=\n|||\n}</p><p>*index_site_channel.modify {replace| |-} * replace space in channel name by -</p><p>*index_site_channel.modify {replace|\b| } * replace char U+0008 (word separator) in space</p><p>*index_site_channel.modify {substring(type=word)|0 2}</p><p>*index_site_id.scrub {multi(separator="\t")|magic=\n|||\n}</p><p>*index_site_id.modify {replace| |-}</p><p>*index_site_id.modify {replace|\b| } * replace char U+0008 (word separator) in space</p><p>*index_site_id.modify {substring(type=word)|-1}</p><p>** @auto_xml_channel_end</p><p>[/code]</p></blockquote><p></p>
[QUOTE="silentbuteo2, post: 958802, member: 136202"] @[URL='https://forum.team-mediaportal.com/members/corporate_gadfly.113254/']corporate_gadfly[/URL] I have looked at this "problem" and found out that now only the subcategory is grabbed in the code. (basketball, football, comedy, ...) I adjusted the code to also grab the main category (movie, sports, family, news) Can you just test this. I tested it with some site, but before I put it in the release, I want you to test it also. Just change your .ini file with the code below. First find the line with "urldate.format" in your .ini and remove all what is below (inlcuding that line). And then append the code below. [code]urldate.format {datestring|} * no value but required by the program index_showsplit.scrub {multi|'index_variable_element'||\n} index_temp_3.scrub {single(separator="\t" include=11)||||} *scrubs the show_id, needed for index_urlshow * index_date.scrub {single(force)|||\t|} index_temp_1.scrub {single(separator="\t" include=13)||||} * start in format yyyyMMddHHmm, we use substring index_title.scrub {single(separator="\t" include=3)||||} index_temp_4.scrub {single(debug separator="\t" include=5)||||} * category on the main page * title.scrub {single(separator="\t" include=2)||||<div style=} subtitle.scrub {single(separator="\t" include=3)||||<div style=} description.scrub {single(separator="\t" include=4)||||<div style=} director.scrub {single(separator="\t" include=14)||||<div style=} actor.scrub {single(single(separator="\t" include=15)||||<div style=} temp_1.scrub {single(single(separator="\t" include=11 exclude="other")||||<div style=} * category (from detail page) temp_2.scrub {single(single(separator="\t" include=12 exclude="other")||||<div style=} * subcategory (from detail page) rating.scrub {single(single(separator="\t" include=8)||||<div style=} productiondate.scrub {single(single(separator="\t" include=10)||||<div style=} * * operations: *index_variable_element.modify {addstart|\t'config_xmltv_id'} *index_variable_element.modify {substring(type=word)|0 1} *index_variable_element.modify {addend|\t} scope.range {(datelogo)|end} index_variable_element.modify {addstart|'config_xmltv_id'} index_variable_element.modify {substring(type=word)|-1 1} * must contain a number index_temp_6.modify {calculate(format=F0)|'index_variable_element'} * clear if not a number index_variable_element.modify {clear('index_temp_6' "0")} index_variable_element.modify {addstart|\t} index_variable_element.modify {addend|\t} end_scope * scope.range {(indexshowdetails)|end} * correct date : index_date.modify {substring(type=char)|0 10} * compose start : index_temp_2.modify {substring(type=char)|'index_temp_1' 8 2} * the hours of start index_start.modify {addstart|'index_temp_2':} * add hours minutes separator index_temp_2.modify {substring(type=char)|'index_temp_1' -2} * the minutes of start index_start.modify {addend|'index_temp_2'} * compose index_urlshow : index_urlshow.modify {addstart('index_temp_3' not "")|http://www.tvguide.com/listings/data/detailcache.aspx?Qr='index_temp_3'&tvoid=0&v2=1} end_scope * title.modify {addstart(scope=showdetails "")|'index_title'} actor.modify {replace(scope=showdetails)|,|\|} * make actor multi a multi element * translate the category id to string index_temp_4.modify {replace("1")|1|} index_temp_4.modify {replace( "2")|2|family} index_temp_4.modify {replace("64")|64|movie} index_temp_4.modify {replace("256")|256|news} index_temp_4.modify {replace("1024")|1024|sports} * add all the categories together category.modify {addstart(scope=showdetails 'temp_2' not "")|'temp_2'\|} * add subcategory (from the detail page) category.modify {addstart(scope=showdetails 'temp_1' not "")|'temp_1'\|} * add category (from detail page) category.modify {addstart( 'index_temp_4' not "")|'index_temp_4'\|} * add category (from index page) category.modify {cleanup(scope=showdetails removeduplicates=equal)} ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file) ** ** @auto_xml_channel_start ** the following 8 entries create a channel list file: *index_site_channel.scrub {multi(separator="\t")|magic=\n|||\n} *index_site_channel.modify {replace| |-} * replace space in channel name by - *index_site_channel.modify {replace|\b| } * replace char U+0008 (word separator) in space *index_site_channel.modify {substring(type=word)|0 2} *index_site_id.scrub {multi(separator="\t")|magic=\n|||\n} *index_site_id.modify {replace| |-} *index_site_id.modify {replace|\b| } * replace char U+0008 (word separator) in space *index_site_id.modify {substring(type=word)|-1} ** @auto_xml_channel_end [/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Electronic Program Guide
xmlTV
WebGrab+Plus a new xmltv grabber
Contact us
RSS
Top
Bottom