SVN: toys/rsget.pl/Link/Gazeta
pawelz
pawelz at pld-linux.org
Mon Aug 2 20:18:25 CEST 2010
Author: pawelz
Date: Mon Aug 2 20:18:25 2010
New Revision: 11747
Added:
toys/rsget.pl/Link/Gazeta (contents, props changed)
Log:
- new plugin, downloads videos from gazeta.pl
- in most cases it just downloads single video file. But sometimes there are
multiple videos on single page, hence "Link" plugin type.
Added: toys/rsget.pl/Link/Gazeta
==============================================================================
--- (empty file)
+++ toys/rsget.pl/Link/Gazeta Mon Aug 2 20:18:25 2010
@@ -0,0 +1,27 @@
+# $Id$
+# Link:Gazeta - Link retriever plugin for rsget.pl
+#
+# 2010 (c) Paweł Zuzelski <pawelz at pld-linux.org>
+# This program is free software,
+# you may distribute it under GPL v2 or newer.
+
+name: Gazeta
+short: L:Gazeta
+web: "http://www.gazeta.pl/"
+uri: qr{(?:[a-z]+)\.gazeta\.pl/}
+slots: max
+status: OK 2010-08-02
+
+start:
+ GET( $-{_uri} );
+
+ ERROR( "no links found." )
+ if ! m{flashvars: "pid=swfObj&m=http://serwisy\.gazeta\.pl/(.*?)\?xx=(\d+)%26xxd=(\d+)};
+
+ GET( 'http://serwisy.gazeta.pl/'.$1.'?xx='.$2.'&xxd='.$3 );
+
+ my @list = /<p>(.*?)<\/p>/g;
+
+ LINK( @list );
+
+# vim: filetype=perl:ts=4:sw=4
More information about the pld-cvs-commit
mailing list