flexget.components.sites.sites.allyoulike module#
- class flexget.components.sites.sites.allyoulike.UrlRewriteAllyoulike[source]#
Bases:
objectallyoulike.com urlrewriter.
Version 0.1
Rewrites urls for allyoulike.com
On allyoulike, each link points to a page which contains the links to the actual files. Often these pages contain links to more than one quality (for example 1080p, 720p etc.). The plugin chooses the set of links with the most files which should translate into the Best quality movie.
There is no configuration for this plugin.
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"
The plugin is intended to be used in conjunction with the html plugin.
Example configuration for the html plugin:
html: url: "http://www.allyoulike.com/category/movies/" title_from: link links_re: - allyoulike.com/\d*/(?!renew-or-purchase|for-vip-members-only)[^/]*/$- url_rewrite(**kwargs)#