From 16af85004c84d0d6c626b4f8424ce9647669a0c1 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 9 Jun 2013 18:10:22 +0200 Subject: moved everything from module to pyload --- docs/plugins/crypter_plugin.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'docs/plugins/crypter_plugin.rst') diff --git a/docs/plugins/crypter_plugin.rst b/docs/plugins/crypter_plugin.rst index 8c54dccb1..b10dd27f9 100644 --- a/docs/plugins/crypter_plugin.rst +++ b/docs/plugins/crypter_plugin.rst @@ -3,12 +3,12 @@ Crypter - Extract links from pages ================================== -We are starting with the simplest plugin, the :class:`Crypter `. +We are starting with the simplest plugin, the :class:`Crypter `. It's job is to take an url as input and generate a new package or links, for example by filtering the urls or loading a page and extracting links from the html code. You need to define the ``__pattern__`` to match -target urls and subclass from :class:`Crypter `. :: +target urls and subclass from :class:`Crypter `. :: - from module.plugin.Crypter import Crypter + from pyload.plugin.Crypter import Crypter class MyFileCrypter(Crypter): __pattern__ = r"mycrypter.com/id/([0-9]+)" @@ -28,7 +28,7 @@ Generating Packages When finished with decrypting just return the urls as list and they will be added to the package. You can also create new Packages if needed by instantiating a :class:`Package` instance, which will look like the following:: - from module.plugin.Crypter import Crypter, Package + from pyload.plugin.Crypter import Crypter, Package class MyFileCrypter(Crypter): @@ -52,12 +52,12 @@ your code you can use:: SimpleCrypter ------------- -For simple crypter services there is the :class:`SimpleCrypter ` class which handles most of the workflow. Only the regexp +For simple crypter services there is the :class:`SimpleCrypter ` class which handles most of the workflow. Only the regexp pattern has to be defined. Exmaple:: - from module.plugins.internal.SimpleCrypter import SimpleCrypter + from pyload.plugins.internal.SimpleCrypter import SimpleCrypter class MyFileCrypter(SimpleCrypter): -- cgit v1.2.3