All pastes #450370 Raw Edit

Untitled

public text v1 · immutable
·published 2007-04-20 20:08 UTC
rendered paste body
#---------------------------------------------------------------------------------------------------------------------------------------------------------------
# HTML Parser Variables That Are Mandatory (A.K.A Need to be in this file for it to work :P )

#	name				Trigger name (also the name in .properties file)
#	baseurl				The base url of the sit you want to connect to
#	filters				Strings to remove from the input text to make a better search string
#	sections			Sections on which the event listener to search for (Even if you not using event listener, just leave blank do not uncomment)
#	exclude				Strings to exclude when doing an event listener to not run the search (same as sections, leave blank if not being used)

#---------------------------------------------------------------------------------------------------------------------------------------------------------------
# HTML Parser Variables That Are Optional

#	searchurl			If you need to use a search page to find the page you are looking for (ie Game/Imdb,Tv)
#	nomatch				The string in the html file if there is no match to the search string you inputted
#	match				The string in the html file if there Is a match to the search string you inputted
#	match.start			The string to start the parsing to retrive the match found in the search html
#	match.end			The string to end the parrsing to retive the match found in the search html (between match.start and match.end is the url you want to load from the search page)

#	recursiveurl			A Url to add onto the end of found search page if more info is needed (ie Imdb/Game)

#	debug				To output the text of the html page(s) into the drftpd.log file (set to true)

#	dated.start			This searches on the page for a specific date (date from computer time) Use standard date format for finding the date on the page (This is used in tomorrow/tonight to goto the corect date we want to parse from)
#	dated.day.increment		This increments the date by day (used in tommorow to grab the next day)
#	dated.hour.increment		This increments the date by hour (used in tommorow to grab the next day)

#---------------------------------------------------------------------------------------------------------------------------------------------------------------
#---------------------------------------------------------------------------------------------------------------------------------------------------------------
#---------------------------------------------------------------------------------------------------------------------------------------------------------------
# Different Parsing Options, Replace X with the next number, make sure they increment the same way (like everything else in drftpd) (ie 1,2,3; NOT 1,3,4)

# Parsing Options Which are Mandatory

#	parse.X.name			The name you want to set this parse (Will be the same name used in .properties)
#	parse.X.beginparse		The Begining String to parse from in the data off the HTML page
#	parse.X.endparse		The Ending String to parse from in the data off the HTML page to create the new string between beginparse/endparse

# Parsing Options Which are Optional

#	parse.X.substring.begin		After parseing the section you want, you can do another substring parse within that first parse. (NOTE, if parse.X.substring.end is not used, it will parse from the parse.X.substring.begin and goto the end of the string)
#	parse.X.substring.end		If using this option, if will parse out from parse.X.substring.begin to this part in the string

#	parse.X.removebefore		Removes defined string before the conversion to string (IE: Before it removes the <br>,<td>,<table>, etc in the string)
#	parse.X.removeafter		Removes defined string after the conversion to string takes place (IE, (,), etc)

#	parse.X.replacebefore		Replaces defined string(s) before conversion process. Use a ; to seperate between items, This is recurisve so you can add as many replace sections as you want (IE <br>;@@;<tr>;_;<table>;TBL)
#	parse.X.replaceeafter		Replaces defined string(s) after conversion process.  Use a ; to seperate between items, This is also recursive.

#	parse.X.recursive		If recursiveurl is used, this parse option will only be used on that recursiveurl page (IE. Imdb,Game)

#	parse.X.multiparse		This is used if you want to parse alot of different info, put it on seperate lines, but only use 1 variable for output because the info is dynamic (ie. tonight,tomorrow,top10, etc)  How this works is it takes the string between parse.X.beginparse and parse.X.endparse, then recursivly goes through that section of the string and returns each substring that has the parse.X.multiparse variable in it,  Each substring is saved to a new line on the output.


# NOTE:  With the parsing names, you ARE allowed to have the same name more then once.  It will return the first found options. (IE. Gameinfo has 2 different types of pages, if the first page is found it returns top half of that config, and if they arn't found, it continues to the end half of the config)

#---------------------------------------------------------------------------------------------------------------------------------------------------------------
 
name=tv


baseurl=http://tvrage.com
searchurl=http://www.tvrage.com/search.php?search=

nomatch=No Show Results
match=Found

match.start=Found
match.end=</a></td>
match.remove=src='http
match.substring.begin='http://www.tvrage.com
match.substring.end=' >
          

filters=ntsc;pal;fs;ws;repack;proper;internal;dvd\\d;19\\d\\d;20\\d\\d;hdtv;pdtv;xvid;divx;dvdrip;dvdr;dsr;subbed;s\\d+e\\d+.*;season\\d+.*
sections=TV;TV-XVID;TV-DVD
exclude=cd1;cd2;cd3;cd4;cd5;disk1;disk2;disk3;disk4;disk5;dvd1;dvd2;dvd3;dvd4;dvd5;sample;covers;cover;subs;sub

#debug=true

# ---------- Parsing Options

parse.1.name=title
parse.1.beginparse=<b>\"
parse.1.endparse=\" Summary
parse.1.removeafter=\"

parse.2.name=lastep
parse.2.beginparse=Latest Episode:
parse.2.endparse=</td>
parse.2.replacebefore=</b></td>;<empty>
parse.2.removeafter=Latest Episode:

parse.3.name=nextep
parse.3.beginparse=Upcoming Episode:
parse.3.endparse=</td>
parse.3.replacebefore=</b></td>;<empty>
parse.3.removeafter=Upcoming Episode:

parse.4.name=category
parse.4.beginparse=Show Genre:
parse.4.endparse=</td>
parse.4.replacebefore=</b></td>;<empty>
parse.4.removeafter=Show Genre:

parse.5.name=status
parse.5.beginparse=Show Status:
parse.5.endparse=</td>
parse.5.replacebefore=</b></td>;<empty>
parse.5.removeafter=Show Status:

parse.6.name=network
parse.6.beginparse=Network:
parse.6.endparse=</td>
parse.6.replacebefore=</b></td>;<empty>
parse.6.removeafter=Network:

parse.7.name=airs
parse.7.beginparse=Airs On:
parse.7.endparse=</td>
parse.7.replacebefore=</b></td>;<empty>
parse.7.removeafter=Airs On: