flexget.components.sites.sites.rlsbb module#

class flexget.components.sites.sites.rlsbb.UrlRewriteRlsbb[source]#

Bases: object

rlsbb.ru urlrewriter.

Version 0.1

Configuration

rlsbb:
  filehosters_re:
    - domain\.com
    - domain2\.org
  link_text_re:
    - UPLOADGiG
    - NiTROFLARE
    - RAPiDGATOR
  parse_comments: no
filehosters_re

Only add links that match any of the regular expressions listed under filehosters_re.

link_text_re

search for <a> tags where the text (not the url) matches one of the given regular expressions. The href property of these <a> tags will be used as the url (or urls).

parse_comments

whether the plugin should also parse the comments or only the main post. Note that it is highly recommended to use filehosters_re if you enable parse_comments. Otherwise, the plugin may return too many and even some potentially dangerous links.

If more than one valid link is found, the url of the entry is rewritten to the first link found. The complete list of valid links is placed in the ‘urls’ field of the entry.

Therefore, it is recommended, that you configure your output to use the ‘urls’ field instead of the ‘url’ field.

For example, to use jdownloader 2 as output, you would use the exec plugin:

exec:
  - echo "text={{urls}}" >> "/path/to/jd2/folderwatch/{{title}}.crawljob"
_get_soup(task, url)[source]#
on_task_start(task, config)[source]#
url_rewritable(task, entry)[source]#
url_rewrite(**kwargs)#
DEFAULT_DOWNLOAD_TEXT = ['UPLOADGiG', 'NiTROFLARE', 'RAPiDGATOR']#
config = {'filehosters_re': [], 'link_text_re': ['UPLOADGiG', 'NiTROFLARE', 'RAPiDGATOR'], 'parse_comments': False}#
schema = {'additionalProperties': False, 'properties': {'filehosters_re': {'default': [], 'items': {'format': 'regexp'}, 'type': 'array'}, 'link_text_re': {'default': ['UPLOADGiG', 'NiTROFLARE', 'RAPiDGATOR'], 'items': {'format': 'regexp'}, 'type': 'array'}, 'parse_comments': {'default': False, 'type': 'boolean'}}, 'type': 'object'}#
flexget.components.sites.sites.rlsbb.register_plugin()[source]#