# $Id: RSProtect 11656 2010-07-12 01:58:33Z sparky $
# Link::RSProtect - Link decrypter plugin for rsget.pl
#
# 2009-2010 (c) Przemysław Iskra <sparky@pld-linux.org>
#		This program is free software,
# you may distribute it under GPL v2 or newer.

name: RSProtect
short: L:RSProtect
web: "http://www.rsprotect.com/"
uri: qr{rsprotect\.com/rc-.*?/}
slots: max
status: OK 2010-07-12

unify:
	s/#.*//;

start:
	GET( $-{_uri} );

	! m{<form method="post" onsubmit="return ch.*?" action="(.*?)"};
	$_ = $1;
	s/&#x(..);/chr hex $1/eg;

	LINK( $_ );

# vim: filetype=perl:ts=4:sw=4
