📜 ⬆️ ⬇️

Flexget - automatic sorting of serials

After reading the topic utmcrow Downloading torrents automatically decided to check the work with websites and novilfilma. Of course, as intended by the authors of flexget, without shamanism, this will not work.


Lost

Lostfilm gives rss feed in the form
(Lie to me). (Sweet Sixteen).. (S02E12)

and for further work, we need to clear this tape of Russian letters and clouded brackets using regular expressions.
 feeds: lostfilm: headers: cookie: "uid=xxxxx; pass=xxxxxxxxxxxxxx" rss: http://lostfilm.tv/rssdd.xml manipulate: title: from: title extract: .*\((.*)\).*(\.).*\((.*)\)(.*).*\((.*)\) preset: lost 


After that the title of the tape has the form
Lie to me . Sweet Sixteen .. S02E12

regexp turned out not very visual ... but it works. With fully completed seasons and dual distributions - not tested, most likely they will be re-downloaded.
')
For downloading and sorting, use the plug-in series and Deluge
 presets: lost: deluge: yes set: path: ~/incomplete/ movedone: ~/download/%(series_name)s/Season %(series_season)d/ series: - FlashForward - Lie To Me 
presets: lost: deluge: yes set: path: ~/incomplete/ movedone: ~/download/%(series_name)s/Season %(series_season)d/ series: - FlashForward - Lie To Me

Nova

Rss are new
 <p>Lie To Me / Season 2, episode 12 «Sweet Sixteen» / WEB-DL / 720p / x264, AC3, RUS, ENG / NovaFiLM.TV (: )</p> 

and we need not only to clear
 <p> 
but also to replace Season 2, episode 12 with S02E12, as well as choose the quality with which to download, well, not all I look 720r.
 presets: nova: series: settings: 720p: quality: 720p set: path: ~/incomplete/ movedone: "~/download/%(series_name)s/Season %(series_season)d/" label: 720p hdtv: quality: hdtv set: path: ~/incomplete/ movedone: "~/download/%(series_name)s/Season %(series_season)d/" label: tv 720p: - Lie to me #    - Archer hdtv: - Justified #   deluge: yes 
presets: nova: series: settings: 720p: quality: 720p set: path: ~/incomplete/ movedone: "~/download/%(series_name)s/Season %(series_season)d/" label: 720p hdtv: quality: hdtv set: path: ~/incomplete/ movedone: "~/download/%(series_name)s/Season %(series_season)d/" label: tv 720p: - Lie to me # - Archer hdtv: - Justified # deluge: yes

If the quality is not explicitly set, and there are a choice of two identical tapes falling under the rule, but with different quality, then it will be downloaded with the quality 720.

 feeds: novafilm: headers: cookie: "uid=xxxxx; pass=bxxxxxxxxxxxxxxxxd9" rss: http://novafilm.tv/rss/rssd.xml manipulate: titlep: from: title #  <p> extract: \<p\>(.*) season: from: title #  Season 2, episode 12 replace: regexp: Season\s(?P<ids>\d+).*episode\s(?P<ide>\d+) format: 'S\g<ids>E\g<ide>' 
feeds: novafilm: headers: cookie: "uid=xxxxx; pass=bxxxxxxxxxxxxxxxxd9" rss: http://novafilm.tv/rss/rssd.xml manipulate: titlep: from: title # <p> extract: \<p\>(.*) season: from: title # Season 2, episode 12 replace: regexp: Season\s(?P<ids>\d+).*episode\s(?P<ide>\d+) format: 'S\g<ids>E\g<ide>'
We cut garbage at the beginning of the drain and replace Season 2, episode - for the plug-in series to work correctly, without this it substitutes the season number instead - the year 2010.
You can do this:
 series: - FlashForward: ep_regexp: - Season\s(\d+).*episode\s(\d+) - Lie To Me: ep_regexp: - Season\s(\d+).*episode\s(\d+) 
series: - FlashForward: ep_regexp: - Season\s(\d+).*episode\s(\d+) - Lie To Me: ep_regexp: - Season\s(\d+).*episode\s(\d+)

For those who do not use Deluge to download torrents, I suggest this script for Flexget:
 feeds: manage-series: listdir: /volume1/downloads/ disable_builtins: yes series: - house - Big Bang Theory set: path: /volume2/Serier/%(series_name)s/Season %(series_season)d/ manipulate: source: from: file regexp: file://(.*) exec: mv "%(source)s" "%(path)s" 
feeds: manage-series: listdir: /volume1/downloads/ disable_builtins: yes series: - house - Big Bang Theory set: path: /volume2/Serier/%(series_name)s/Season %(series_season)d/ manipulate: source: from: file regexp: file://(.*) exec: mv "%(source)s" "%(path)s"
He lays out in folders of the form / Lost / season 6 / everything that you choose from the shared folder - dumps. From the minuses - interrupt your distribution.
I did not use it myself, I found it on the site Flexget

Source: https://habr.com/ru/post/96834/


All Articles