---
id: mesevilag
name: MeseVilág
description: "MeseVilág (Fairytale World) is a Hungarian Private site for fairy tales, family movies and comedies"
language: hu-HU
type: private
encoding: UTF-8
links:
  - https://mese-vilag.net/

caps:
  categorymappings:
    - {id: 1, cat: TV/Anime, desc: "Anime/Cam"}
    - {id: 2, cat: TV/Anime, desc: "Anime/Eng"}
    - {id: 21, cat: TV/Anime, desc: "Anime/HD"}
    - {id: 3, cat: TV/Anime, desc: "Anime/Hun"}
    - {id: 13, cat: TV/Anime, desc: "Anime/Sorozat(Series)"}
    - {id: 4, cat: Movies, desc: "Családi/Cam(Family)"}
    - {id: 5, cat: Movies, desc: "Családi/Eng(Family)"}
    - {id: 19, cat: Movies/HD, desc: "Családi/HD(Family)"}
    - {id: 6, cat: Movies, desc: "Családi/Hun(Family)"}
    - {id: 17, cat: Movies, desc: "Családi/Romantikus/Cam(Family Romantic)"}
    - {id: 16, cat: Movies, desc: "Családi/Romantikus/Eng(Family Romantic)"}
    - {id: 15, cat: Movies, desc: "Családi/Romantikus/Hun(Family Romantic)"}
    - {id: 18, cat: TV, desc: "Családi/Romantikus/Sorozat(Family Romantic Series)"}
    - {id: 14, cat: TV, desc: "Családi/Sorozat(Family Series)"}
    - {id: 8, cat: Audio/Audiobook, desc: "Hangoskönyv(Audiobooks)"}
    - {id: 9, cat: PC/Games, desc: "Játék/ISO(Games)"}
    - {id: 11, cat: Console, desc: "Játék/Konzol(Console)"}
    - {id: 10, cat: PC/Games, desc: "Játék/RIP(Games)"}
    - {id: 7, cat: Books, desc: "Könyv(Books)"}
    - {id: 20, cat: Movies/HD, desc: "Romantikus/HD(Romantic)"}
    - {id: 12, cat: Audio, desc: "Zene/Hun(Music)"}

  modes:
    search: [q]
    tv-search: [q, season, ep]
    movie-search: [q]
    music-search: [q]
    book-search: [q]

settings:
  - name: username
    type: text
    label: Username
  - name: password
    type: password
    label: Password
  - name: freeleech
    type: checkbox
    label: Search freeleech only
    default: false
  - name: sort
    type: select
    label: Sort requested from site
    default: 4
    options:
      4: created
      7: seeders
      5: size
  - name: type
    type: select
    label: Order requested from site
    default: desc
    options:
      desc: desc
      asc: asc
  - name: info
    type: info
    label: Results Per Page
    default: For best results, change the <b>Torrents per page:</b> setting to <b>100</b> on your account profile.

login:
  path: login.php
  method: form
  form: form#loginForm
  inputs:
    username: "{{ .Config.username }}"
    password: "{{ .Config.password }}"
  # error: using some kind of JS popup that can not be trapped :-(
  test:
    path: index.php
    selector: a[href="logout.php"]

search:
  paths:
    - path: letoltes.php
  inputs:
    $raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
    search: "{{ .Keywords }}"
    # 0 active, 1 all, 2 dead, 3 freeleech, 4 2x, 5 mesevilag releases, 6 mytorrents, 7 bybookmarks
    incldead: "{{ if .Config.freeleech }}3{{ else }}1{{ end }}"
    # 0 name, 1 descr, 2 both
    sort: "{{ .Config.sort }}"
    type: "{{ .Config.type }}"
    # does not support imdbid search
  keywordsfilters:
    - name: re_replace # replace special characters with "%" (wildcard)
      args: ["[^a-zA-Z0-9]+", "%"]

  rows:
    selector: table[cellpadding="5"] > tbody > tr:has(a[onmouseover])

  fields:
    category:
      selector: a[href^="letoltes.php?cat="]
      attribute: href
      filters:
        - name: querystring
          args: cat
    title:
      selector: a[href^="javascript:"]
      attribute: title
    details:
      selector: span
      attribute: id
      filters:
        - name: replace
          args: ["span_bookmark_", "details.php?id="]
    download:
      selector: span
      attribute: id
      filters:
        - name: replace
          args: ["span_bookmark_", "download.php?id="]
    imdbid:
      selector: a[href*="imdb.com/title/tt"]
      attribute: href
    poster:
      selector: a[onmouseover]
      attribute: onmouseover
      filters:
        - name: regexp
          args: "src=(.+?) "
    date:
      selector: td:nth-last-child(6)
      filters:
        - name: regexp
          args: (\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2})
        - name: replace
          args: ["\xA0", " "]
        - name: append
          args: " +01:00" # CET
        - name: dateparse
          args: "yyyy-MM-dd HH:mm:ss zzz"
    seeders:
      selector: td:nth-last-child(4)
    leechers:
      selector: td:nth-last-child(3)
    grabs:
      selector: td:nth-last-child(2)
    description:
      case:
        img[src="pic/yes.png"]: Verified
        img[src="pic/nincs.png"]: Unverified
    downloadvolumefactor:
      selector: td:nth-last-child(5) > font
      case:
        "font:contains(\"x0\")": 0
        "*": 1
    uploadvolumefactor:
      selector: td:nth-last-child(5) > font
      case:
        "font:contains(\"x2\")": 2
        "font:contains(\"x3\")": 3
        "font:contains(\"x4\")": 4
        "*": 1
    size:
      selector: td:nth-last-child(5)
      remove: font
    minimumratio:
      text: 1.0
    minimumseedtime:
      # 2 days (as seconds = 2 x 24 x 60 x 60)
      text: 172800
# engine n/a
