Name=RedTube
KeySubstrings=
TestURL=
StepCount=1
0.ParamParsingCount=3
0.0.ParsingSourceCount=1
0.0.0.ParsingSource=URL
0.0.ParsingRulesCount=1
0.0.0.ParsingRule=STRING	REDTUBE_VIDEO_ID	.com/	
0.1.ParsingSourceCount=1
0.1.0.ParsingSource=CALCULATED_PARAM	REDTUBE_VIDEO_ID
0.1.ParsingRulesCount=1
0.1.0.ParsingRule=SCRIPT	{:SOURCEHTML}	ZnVuY3Rpb24gTWFpbihkYXRhKQ0Kew0KICAgICAgdmFyIHBfZmlsZSA9ICIiICsgZGF0YTsNCiAgICAgIGlmKHBfZmlsZSA9PSAiIiB8fCBwX2ZpbGUgPT0gInZpZGVvLmZsdiIpDQogICAgICB7DQogICAgICAgIHBfZmlsZSA9ICIxIjsNCiAgICAgIH0NCiAgICAgIHZhciB2X2ZpbGVGbG9hdCA9ICIiICsgTWF0aC5mbG9vcihwYXJzZUZsb2F0KHBfZmlsZSkgLyAxMDAwKTsgDQogICAgICB2YXIgdl9maWxlTGVuZ3RoID0gcF9maWxlLmxlbmd0aDsNCiAgICAgIGZvciAodmFyIGEgPSAxOyBhIDw9IDcgLSB2X2ZpbGVMZW5ndGg7ICsrYSkNCiAgICAgIHsNCiAgICAgICAgcF9maWxlID0gIjAiICsgcF9maWxlOw0KICAgICAgfQ0KICAgICAgdl9maWxlTGVuZ3RoID0gdl9maWxlRmxvYXQubGVuZ3RoOw0KICAgICAgZm9yICh2YXIgYSA9IDE7IGEgPD0gNyAtIHZfZmlsZUxlbmd0aDsgKythKQ0KICAgICAgew0KICAgICAgICB2X2ZpbGVGbG9hdCA9ICIwIiArIHZfZmlsZUZsb2F0Ow0KICAgICAgfQ0KICAgICAgdmFyIG1hcCA9IG5ldyBBcnJheSgiUiIsICIxIiwgIjUiLCAiMyIsICI0IiwgIjIiLCAiTyIsICI3IiwgIksiLCAiOSIsICJIIiwgIkIiLCAiQyIsICJEIiwgIlgiLCAiRiIsICJHIiwgIkEiLCAiSSIsICJKIiwgIjgiLCAiTCIsICJNIiwgIloiLCAiNiIsICJQIiwgIlEiLCAiMCIsICJTIiwgIlQiLCAiVSIsICJWIiwgIlciLCAiRSIsICJZIiwgIk4iKTsNCiAgICAgIHZhciBtYXBwaW5nID0gIiI7DQogICAgICB2YXIgbXlJbnQgPSAwOw0KICAgICAgZm9yICh2YXIgYSA9IDA7IGEgPD0gNjsgKythKQ0KICAgICAgew0KICAgICAgICBteUludCA9IG15SW50ICsgcGFyc2VJbnQocF9maWxlLmNoYXJBdChhKSkgKiAoYSArIDEpOw0KICAgICAgfQ0KICAgICAgdmFyIG15Q2hhciA9ICIiICsgbXlJbnQ7IA0KICAgICAgbXlJbnQgPSAwOw0KICAgICAgZm9yICh2YXIgYSA9IDA7IGEgPCBteUNoYXIubGVuZ3RoOyArK2EpIA0KICAgICAgew0KICAgICAgICBteUludCA9IG15SW50ICsgcGFyc2VJbnQobXlDaGFyLmNoYXJBdChhKSk7DQogICAgICB9DQogICAgICB2YXIgbmV3Q2hhcjsNCiAgICAgIGlmIChteUludCA+PSAxMCkNCiAgICAgIHsNCiAgICAgICAgbmV3Q2hhciA9ICIiICsgbXlJbnQ7DQogICAgICB9DQogICAgICBlbHNlDQogICAgICB7DQogICAgICAgIG5ld0NoYXIgPSAiMCIgKyBteUludDsNCiAgICAgIH0NCiAgICAgIG1hcHBpbmcgPSBtYXBwaW5nICsgbWFwW3BfZmlsZS5jaGFyQ29kZUF0KDMpIC0gNDggKyBteUludCArIDNdOw0KICAgICAgbWFwcGluZyA9IG1hcHBpbmcgKyBuZXdDaGFyLmNoYXJBdCgxKTsgICAgICAgICAgICAgICAgICAgICAgICAgIA0KICAgICAgbWFwcGluZyA9IG1hcHBpbmcgKyBtYXBbcF9maWxlLmNoYXJDb2RlQXQoMCkgLSA0OCArIG15SW50ICsgMl07DQogICAgICBtYXBwaW5nID0gbWFwcGluZyArIG1hcFtwX2ZpbGUuY2hhckNvZGVBdCgyKSAtIDQ4ICsgbXlJbnQgKyAxXTsNCiAgICAgIG1hcHBpbmcgPSBtYXBwaW5nICsgbWFwW3BfZmlsZS5jaGFyQ29kZUF0KDUpIC0gNDggKyBteUludCArIDZdOyANCiAgICAgIG1hcHBpbmcgPSBtYXBwaW5nICsgbWFwW3BfZmlsZS5jaGFyQ29kZUF0KDEpIC0gNDggKyBteUludCArIDVdOyANCiAgICAgIG1hcHBpbmcgPSBtYXBwaW5nICsgbmV3Q2hhci5jaGFyQXQoMCk7ICAgICAgICAgICAgICAgICAgICAgICAgICANCiAgICAgIG1hcHBpbmcgPSBtYXBwaW5nICsgbWFwW3BfZmlsZS5jaGFyQ29kZUF0KDQpIC0gNDggKyBteUludCArIDddOyANCiAgICAgIG1hcHBpbmcgPSBtYXBwaW5nICsgbWFwW3BfZmlsZS5jaGFyQ29kZUF0KDYpIC0gNDggKyBteUludCArIDRdOyANCiAgICAgIHJldHVybiAiUkVEVFVCRV9ESVJFQ1RfRE9XTkxPQURfTElOSz1odHRwOi8vZGwucmVkdHViZS5jb20vX3ZpZGVvc190NHZuMjNzOWpjNTQ5OHRnajQ5aWNmajQ2NzgvIiArIHZfZmlsZUZsb2F0ICsgIi8iICsgbWFwcGluZyArICIuZmx2IjsNCn0=
0.2.ParsingSourceCount=1
0.2.0.ParsingSource=PARAM	{:PAGETITLE}
0.2.ParsingRulesCount=1
0.2.0.ParsingRule=STRING	VIDEO.TITLE	redtube - 	
0.DomainNames=redtube.com
0.TemplateRequestURL=http://www.redtube.com/{:REDTUBE_VIDEO_ID}
0.TemplateDirectDownloadURL={:REDTUBE_DIRECT_DOWNLOAD_LINK}
0.TemplateVideoTitleExtract={:VIDEO.TITLE}
