---
  site: 2fast4you
  name: 2 Fast 4 You
  description: "2 Fast 4 You is a FRENCH Private site for TV / MOVIES / GENERAL"
  language: fr-fr
  type: private
  encoding: UTF-8
  links:
    - http://www.2f4y.me/

  caps:
    categorymappings:
      - {id: 10, cat: TV/Anime, desc: "Animation: HD720P"}
      - {id: 11, cat: TV/Anime, desc: "Animation: HD1080P"}
      - {id: 56, cat: TV/Anime, desc: "Animation: DVDRip"}
      - {id: 13, cat: TV/Anime, desc: "Animation: DVD"}
      - {id: 18, cat: PC/0day, desc: "Applications: PC"}
      - {id: 16, cat: PC/Games, desc: "Applications: Jeux"}
      - {id: 19, cat: PC/Phone-Android, desc: "Applications: Android"}
      - {id: 38, cat: PC/Phone-IOS, desc: "Applications: Mobile Phone"}
      - {id: 17, cat: PC/0day, desc: "Applications: Autres"}
      - {id: 67, cat: TV, desc: "Autres: Emission TV"}
      - {id: 68, cat: TV/Sport, desc: "Autres: Sport"}
      - {id: 40, cat: Other, desc: "Autres: Autres"}
      - {id: 14, cat: TV/Documentary, desc: "Documentaires: DivX"}
      - {id: 15, cat: TV/Documentary, desc: "Documentaires: HD"}
      - {id: 76, cat: TV/Documentary, desc: "Documentaires: TVRip"}
      - {id: 62, cat: Audio/Audiobook, desc: "E-Books: E-Books Audio"}
      - {id: 50, cat: Books, desc: "E-Books: Manuel Français"}
      - {id: 49, cat: Books, desc: "E-Books: Manuel Anglais"}
      - {id: 36, cat: Books, desc: "E-Books: Livres Français"}
      - {id: 53, cat: Books, desc: "E-Books: Livre Anglais"}
      - {id: 52, cat: Books, desc: "E-Books: Revue - Journaux"}
      - {id: 51, cat: Books, desc: "E-Books: BD"}
      - {id: 66, cat: Movies, desc: "Films: VOSTFR"}
      - {id: 71, cat: Movies/WEBDL, desc: "Films: WEB-DL"}
      - {id: 65, cat: Movies, desc: "Films: VO"}
      - {id: 72, cat: Movies/SD, desc: "Films: TVRip/HDTV"}
      - {id: 70, cat: Movies/HD, desc: "Films: MHD X265"}
      - {id: 57, cat: Movies/SD, desc: "Films: TS/CAM"}
      - {id: 59, cat: Movies, desc: "Films: Spectacle"}
      - {id: 55, cat: Movies/HD, desc: "Films: MHD 720P"}
      - {id: 54, cat: Movies/HD, desc: "Films: MHD 1080P"}
      - {id: 1, cat: Movies/HD, desc: "Films: HD720P"}
      - {id: 2, cat: Movies/HD, desc: "Films: HD1080P"}
      - {id: 90, cat: Movies/HD, desc: "Films: HD X265"}
      - {id: 92, cat: Movies/HD, desc: "Films: 4K"}
      - {id: 69, cat: Movies/3D, desc: "Films: Film 3D"}
      - {id: 3, cat: Movies/DVD, desc: "Films: DVDRIP"}
      - {id: 4, cat: Movies/DVD, desc: "Films: DVD5"}
      - {id: 5, cat: Movies/DVD, desc: "Films: DVD9"}
      - {id: 91, cat: Movies/HD, desc: "Films: RemuX"}
      - {id: 89, cat: Movies/HD, desc: "Films: BD/BR Rip"}
      - {id: 88, cat: Movies/BluRay, desc: "Films: Full BD/BR"}
      - {id: 77, cat: Other, desc: "GPS: Cartes"}
      - {id: 78, cat: Other, desc: "GPS: Radars"}
      - {id: 79, cat: TV/Anime, desc: "Mangas: HD"}
      - {id: 80, cat: TV/Anime, desc: "Mangas: HD VO"}
      - {id: 81, cat: TV/Anime, desc: "Mangas: HD VOSTFR"}
      - {id: 82, cat: TV/Anime, desc: "Mangas: DVDRIP"}
      - {id: 83, cat: TV/Anime, desc: "Mangas: DVDRIP VO"}
      - {id: 84, cat: TV/Anime, desc: "Mangas: DVDRIP VOSTFR"}
      - {id: 85, cat: TV/Anime, desc: "Mangas: Web-DL"}
      - {id: 86, cat: TV/Anime, desc: "Mangas: TV-RIP"}
      - {id: 75, cat: Audio, desc: "Musique: Concert TVRip"}
      - {id: 25, cat: Audio/MP3, desc: "Musique: Single MP3"}
      - {id: 24, cat: Audio/Lossless, desc: "Musique: Single Flac"}
      - {id: 22, cat: Audio/MP3, desc: "Musique: Album MP3"}
      - {id: 23, cat: Audio/Lossless, desc: "Musique: Album Flac"}
      - {id: 64, cat: Audio, desc: "Musique: Mégamix Maison"}
      - {id: 94, cat: Audio, desc: "Musique: Podcast"}
      - {id: 58, cat: Audio, desc: "Musique: Concert"}
      - {id: 93, cat: TV, desc: "Serie TV: Saison VOSTFR"}
      - {id: 61, cat: TV, desc: "Serie TV: Episode VOSTFR"}
      - {id: 63, cat: TV, desc: "Serie TV: Episode VO"}
      - {id: 12, cat: TV/Anime, desc: "Serie TV: Animation"}
      - {id: 74, cat: TV, desc: "Serie TV: TVRip"}
      - {id: 73, cat: TV/WEB-DL, desc: "Serie TV: WEB-DL"}
      - {id: 7, cat: TV, desc: "Serie TV: Episode FR"}
      - {id: 6, cat: TV, desc: "Serie TV: Saison FR"}

    modes:
      search: [q]
      tv-search: [q, season, ep]

  login:
    path: account-login.php
    method: post
    inputs:
      username: "{{ .Config.username }}"
      password: "{{ .Config.password }}"
    error:
      - selector: form:contains("Erreur")
        message:
          selector: form
          remove: table
    test:
      path: torrents-search.php

  search:
    paths:
      - path: torrents-search.php
    inputs:
      $raw: "{{range .Categories}}c{{.}}=1&{{end}}"
      search: "{{ .Keywords }}"
      incldead: "1"
    keywordsfilters:
      - name: re_replace
        args: ["^$", "%"] # replace empty search string with %
    rows:
      selector: table.ttable_headinner > tbody > tr[class^="t-row"]
    fields:
      download:
        selector: a[href^="torrents-details.php?id="]
        attribute: href
        filters:
          - name: replace
            args: ["torrents-details.php", "download.php"]
      title:
        selector: a[href^="torrents-details.php?id="]
        filters:
          - name: replace
            args: [" - (Nouveau!)", ""]
      category:
        selector: a[href^="torrents.php?cat="]
        attribute: href
        filters:
          - name: querystring
            args: cat
      details:
        selector: a[href^="torrents-details.php?id="]
        attribute: href
      banner:
        selector: img.rounded-img
        attribute: src
      size:
        selector: td:nth-child(5)
      seeders:
        selector: td:nth-child(6)
      leechers:
        selector: td:nth-child(7)
      downloadvolumefactor:
        case:
          img[title="freeleech"]: "0"
          "*": "1"
      uploadvolumefactor:
        case:
          "*": "1"
