From 56a26dd265f89843d7581e860f3a7480f6224ddd Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Sun, 10 Feb 2019 17:42:04 +1300 Subject: [PATCH] add nostalgic, a private tracker for movies and tv. resolves #3795 has a bot detection I could not work around. had to resort to using cookie. --- README.md | 1 + src/Jackett.Common/Definitions/nostalgic.yml | 145 +++++++++++++++++++ 2 files changed, 146 insertions(+) create mode 100644 src/Jackett.Common/Definitions/nostalgic.yml diff --git a/README.md b/README.md index e3120b857..d65979329 100644 --- a/README.md +++ b/README.md @@ -244,6 +244,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/ * New Real World * Norbits * NordicBits (NB) + * Nostalgic (The Archive) * notwhat.cd * Orpheus * Ourbits (HDPter) diff --git a/src/Jackett.Common/Definitions/nostalgic.yml b/src/Jackett.Common/Definitions/nostalgic.yml new file mode 100644 index 000000000..c708f7ec3 --- /dev/null +++ b/src/Jackett.Common/Definitions/nostalgic.yml @@ -0,0 +1,145 @@ +--- + site: nostalgic + name: Nostalgic + description: "Nostalgic Torrents (The Archive) is a Private Torrent Tracker for MOVIES / TV / GENERAL NOSTALGIA" + language: en-us + type: private + encoding: UTF-8 + links: + - https://nostalgic.to/ + + caps: + categorymappings: + - {id: 28, cat: TV, desc: "AdultSwim"} + - {id: 29, cat: TV, desc: "AdultSwim WOC"} + - {id: 24, cat: TV/Anime, desc: "Anime-x264"} + - {id: 20, cat: TV/Anime, desc: "Anime-x265/AV1"} + - {id: 32, cat: Movies/Foreign, desc: "Asian Movies"} + - {id: 31, cat: TV/FOREIGN, desc: "Asian TV (ENGSUB)"} + - {id: 6, cat: Audio/Audiobook, desc: "Audio / E-Books"} + - {id: 9, cat: Books/Comics, desc: "Comics / Manga"} + - {id: 22, cat: TV, desc: "Current TV"} + - {id: 17, cat: TV/Documentary, desc: "Documentaries"} + - {id: 27, cat: Movies, desc: "Movies"} + - {id: 25, cat: Audio/Video, desc: "Music / Video"} + - {id: 23, cat: PC/Games, desc: "PC GAMES"} + - {id: 8, cat: TV/WEB-DL, desc: "Podcasts"} + - {id: 16, cat: PC/0day, desc: "Roms / Emulation"} + - {id: 12, cat: TV, desc: "TV - PRE 2009 W/O/C"} + - {id: 11, cat: TV, desc: "TV - PRE 2013"} + - {id: 10, cat: TV, desc: "TV Animation"} + - {id: 18, cat: TV, desc: "TV Animation W/O/C"} + + modes: + search: [q] + tv-search: [q, season, ep] + movie-search: [q] + + settings: + - name: cookie + type: text + label: Cookie + - name: info + type: info + label: How to get the Cookie + default: "
  1. Login to this tracker in your browser
  2. Open the DevTools panel by pressing F12
  3. Select the Network tab
  4. Click on the Doc button
  5. Refresh the page by pressing F5
  6. Select the Headers tab
  7. Find 'cookie:' in the Request Headers section
  8. Copy & paste the whole cookie string to here
" + +# getting error: bots are forbidden +# login: +# path: login +# method: form +# form: form[action="/login"] +# inputs: +# username: "{{ .Config.username }}" +# password: "{{ .Config.password }}" +# cinfo: "auth" +# iplocked: 0 +# keeploggedin: 1 +# submit: "login" +# selectorinputs: +# token: +# selector: input[name="token"] +# attribute: value +# error: +# - selector: table#maincontent tr td div div#messagebarA + login: + method: cookie + inputs: + cookie: "{{ .Config.cookie }}" + test: + path: / + selector: li#nav_logout + + ratio: + path: / + selector: td:has(a[href="/articles.php?topic=ratio"]) > td + filters: + - name: replace + args: ["∞", "2147483647"] # max int32 + + search: + paths: + #https://nostalgic.to/torrents.php?filter_cat%5B32%5D=1&filter_cat%5B27%5D=1&order_by=time&order_way=desc&searchtext=&action=advanced&title=terminator&sizeall=&sizetype=gb&sizerange=0.01&filelist=&taglist=&autocomplete_toggle=1 + - path: torrents.php + inputs: + $raw: "{{range .Categories}}filter_cat[{{.}}]=1&{{end}}" + order_by: "time" + order_way: "desc" + searchtext: "" + action: "advanced" + title: "{{ .Keywords }}" + sizeall: "" + sizetype: "gb" + sizerange: 0.01 + filelist: "" + taglist: "" + autocomplete_toggle: 1 + rows: + selector: table#torrent_table tr:not(:first-child) +# filters: +# - name: andmatch + fields: + title: + selector: a[href^="/torrents.php?id="] + category: + selector: td.cats_col div a + attribute: href + filters: + - name: strdump + - name: regexp + args: "(\\d+)]=1" + - name: strdump + details: + selector: a[href^="/torrents.php?id="] + attribute: href + download: + selector: a[href^="torrents.php?action=download"] + attribute: href + files: + selector: td:nth-last-child(8) + date: + selector: td:nth-last-child(6) + filters: + - name: timeago + size: + selector: td:nth-last-child(5) + filters: + - name: replace + args: ["GiB", "GB"] + - name: replace + args: ["MiB", "MB"] + - name: replace + args: ["KiB", "KB"] + grabs: + selector: td:nth-last-child(4) + seeders: + selector: td:nth-last-child(3) + leechers: + selector: td:nth-last-child(2) + downloadvolumefactor: + case: + "img[alt=\"Freeleech\"]": "0" + "*": "1" + uploadvolumefactor: + case: + "*": "1"