Quantcast
Channel: configuration - Forum - FlexGet
Viewing all articles
Browse latest Browse all 716

Apply max age only to some tracker, is possible?

$
0
0

@Chryses wrote:

Hi, I've one big question, I've created a combined rss from many sources with an automatic bash script that make some operation before combine all rss in a single rss, and make it available in a format for flexget.

Now, for this reason I've different item that came from different jackettindexer, so for example:

<item>
  <title>Submergence 2017 iTALiAN MD 1080p BluRay x264 iSTANCE mkv</title>
  <guid>https://www.arabafenice.me/index.php?page=torrent-details&amp;id=id</guid>
  <jackettindexer id="arabafenice">ArabaFenice</jackettindexer>
  <comments>https://www.arabafenice.me/index.php?page=torrent-details&amp;id=id</comments>
  <pubDate>Fri, 06 Sep 2019 01:00:00 +0200</pubDate>
  <size>8042326016</size>
  <grabs>0</grabs>
  <description />
  <link>link</link>
  <category>2000</category>
  <category>100001</category>
  <enclosure length="8042326016" type="application/x-bittorrent" url="url" />
  <category>2000</category>
  <category>100001</category>
  <seeders>2</seeders>
  <peers>2</peers>
  <minimumratio>1</minimumratio>
  <minimumseedtime>172800</minimumseedtime>
  <downloadvolumefactor>1</downloadvolumefactor>
  <uploadvolumefactor>1</uploadvolumefactor>
</item>
<item>
  <title>Windows 10 Pro VL 1903 Office 2019 and More Agosto 2019 64 Bit ITA</title>
  <guid>https://shareisland.org/index.php?page=torrent-details&amp;id=id</guid>
  <jackettindexer id="shareisland">Shareisland</jackettindexer>
  <comments>https://shareisland.org/index.php?page=torrent-details&amp;id=id</comments>
  <pubDate>Tue, 10 Sep 2019 00:21:20 +0200</pubDate>
  <size>7140383232</size>
  <grabs>27</grabs>
  <description />
  <link>link</link>
  <category>4010</category>
  <category>100007</category>
  <enclosure length="7140383232" type="url" />
  <category>4010</category>
  <category>100007</category>
  <seeders>20</seeders>
  <peers>20</peers>
  <minimumratio>1</minimumratio>
  <minimumseedtime>172800</minimumseedtime>
  <downloadvolumefactor>1</downloadvolumefactor>
  <uploadvolumefactor>1</uploadvolumefactor>
</item>

My configuration is pretty simple, for now, take a look:

tasks:
  freeleech:
    rss:
      url: file:///tmp/rss/combined.xml
      other_fields: [downloadvolumefactor]
    regexp:
      accept:
        - '^0$': { from: downloadvolumefactor }
    qbittorrent:
      port: 8081
      label: FreeLeech

My problem is that I need to filter also the age, max 10 minute old, but only for one jackettindexer
So, think I've to import both jackettindexer and pubDate, till here all right, but after that is not clear to me how can I achieve the goal.
I need two if one inside other?
I'm trying to make it work but I've some difficulty
tasks:
tasks:

  freeleech:
    rss:
      url: file:///tmp/rss/combined.xml
      other_fields: [downloadvolumefactor]
      other_fields: [jackettindexer]
      other_fields: [pubDate]
    regexp:
      accept:
        - '^0$': { from: downloadvolumefactor }
    if:
      - "'Shareisland' in jackettindexer": reject
    qbittorrent:
      port: 8081
      label: FreeLeech

Is only a starting point but is not working:

2019-09-11 22:41 ERROR if freeleech Error occurred while evaluating statement 'Shareisland' in jackettindexer. (argument of type 'StrictUndefined' is not iterable)

Next I think I've to filter also the pubdate in a way like this

tasks:
  freeleech:
    rss:
      url: file:///tmp/rss/combined.xml
      other_fields: [downloadvolumefactor]
      other_fields: [jackettindexer]
      other_fields: [pubDate]
    regexp:
      accept:
        - '^0$': { from: downloadvolumefactor }
    if:
      - "'Shareisland' in jackettindexer":
        if:
          - SOMEOPERATIONWITHPUBDATE - now >= timedelta(minutes=10): reject
    qbittorrent:
      port: 8081
      label: FreeLeech

But like you can see I've to resolve the very first problem

How can I fix the jackettindexer error?

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 716

Trending Articles