|
| 1 | +--- |
| 2 | +id: hqmusic |
| 3 | +name: HQMusic |
| 4 | +description: "HQMusic is a VIETNAMESE Private Torrent Tracker for MUSIC" |
| 5 | +language: vi-VN |
| 6 | +type: private |
| 7 | +encoding: UTF-8 |
| 8 | +links: |
| 9 | + - https://tracker.hqmusic.info/ |
| 10 | + |
| 11 | +caps: |
| 12 | + categorymappings: |
| 13 | + - {id: 1, cat: Audio, desc: "Music"} |
| 14 | + |
| 15 | + modes: |
| 16 | + search: [q] |
| 17 | + |
| 18 | +settings: |
| 19 | + - name: cookie |
| 20 | + type: text |
| 21 | + label: Cookie |
| 22 | + - name: info_cookie |
| 23 | + type: info_cookie |
| 24 | + - name: freeleech |
| 25 | + type: checkbox |
| 26 | + label: Search freeleech only |
| 27 | + default: false |
| 28 | + - name: sort |
| 29 | + type: select |
| 30 | + label: Sort requested from site |
| 31 | + default: 4 |
| 32 | + options: |
| 33 | + 4: created |
| 34 | + 7: seeders |
| 35 | + 5: size |
| 36 | + 1: title |
| 37 | + - name: type |
| 38 | + type: select |
| 39 | + label: Order requested from site |
| 40 | + default: desc |
| 41 | + options: |
| 42 | + desc: desc |
| 43 | + asc: asc |
| 44 | + |
| 45 | +login: |
| 46 | + # switched from the form method to the cookie method due to https://github.com/Prowlarr/Prowlarr/issues/792 |
| 47 | + method: cookie |
| 48 | + inputs: |
| 49 | + cookie: "{{ .Config.cookie }}" |
| 50 | + test: |
| 51 | + path: index.php |
| 52 | + selector: a[href="logout.php"] |
| 53 | + |
| 54 | +search: |
| 55 | + paths: |
| 56 | + - path: torrents.php |
| 57 | + inputs: |
| 58 | + $raw: "{{ range .Categories }}source{{.}}=1&{{end}}" |
| 59 | + search: "{{ if .Query.Artist }}{{ .Query.Artist }}{{ else }}{{ .Keywords }}{{ end }}" |
| 60 | + # 0 incldead, 1 active, 2 dead |
| 61 | + incldead: 0 |
| 62 | + # 0 all, 1 normal, 2 free, 3 2x, 4 2xfree, 5 50%, 6 2x50%, 7 30% |
| 63 | + spstate: "{{ if .Config.freeleech }}2{{ else }}0{{ end }}" |
| 64 | + # 0 title, 1 descr, 3 uploader, 4 imdburl, 5 traklist, 6 artistname |
| 65 | + search_area: "{{ if .Query.Artist }}6{{ else }}0{{ end }}" |
| 66 | + # 0 AND, 1 OR, 2 exact |
| 67 | + search_mode: 0 |
| 68 | + sort: "{{ .Config.sort }}" |
| 69 | + type: "{{ .Config.type }}" |
| 70 | + notnewword: 1 |
| 71 | + |
| 72 | + rows: |
| 73 | + selector: table.torrents > tbody > tr:has(table.torrentname) |
| 74 | + |
| 75 | + fields: |
| 76 | + category: |
| 77 | + text: 1 |
| 78 | + title_default: |
| 79 | + selector: a[href*="details.php?id="] |
| 80 | + title: |
| 81 | + selector: a[title][href*="details.php?id="] |
| 82 | + attribute: title |
| 83 | + optional: true |
| 84 | + default: "{{ .Result.title_default }}" |
| 85 | + details: |
| 86 | + selector: a[href*="details.php?id="] |
| 87 | + attribute: href |
| 88 | + download: |
| 89 | + selector: a[href^="download.php?id="] |
| 90 | + attribute: href |
| 91 | + poster: |
| 92 | + selector: img[src^="imagescover"] |
| 93 | + attribute: src |
| 94 | + filters: |
| 95 | + - name: prepend |
| 96 | + args: "https://images.weserv.nl/?url={{ .Config.sitelink }}" # for display on dashboard |
| 97 | + - name: append |
| 98 | + args: "&w=180&h=270" # for display on dashboard |
| 99 | + date_elapsed: |
| 100 | + # time type: time elapsed (default) |
| 101 | + selector: td:nth-child(4) > span[title] |
| 102 | + attribute: title |
| 103 | + optional: true |
| 104 | + filters: |
| 105 | + - name: append |
| 106 | + args: " +07:00" # CST |
| 107 | + - name: dateparse |
| 108 | + args: "yyyy-MM-dd HH:mm:ss zzz" |
| 109 | + date_added: |
| 110 | + # time added |
| 111 | + selector: td:nth-child(4):not(:has(span)) |
| 112 | + optional: true |
| 113 | + filters: |
| 114 | + - name: append |
| 115 | + args: " +07:00" # CST |
| 116 | + - name: dateparse |
| 117 | + args: "yyyy-MM-ddHH:mm:ss zzz" |
| 118 | + date: |
| 119 | + text: "{{ if or .Result.date_elapsed .Result.date_added }}{{ or .Result.date_elapsed .Result.date_added }}{{ else }}now{{ end }}" |
| 120 | + size: |
| 121 | + selector: td:nth-child(5) |
| 122 | + seeders: |
| 123 | + selector: td:nth-child(6) |
| 124 | + leechers: |
| 125 | + selector: td:nth-child(7) |
| 126 | + grabs: |
| 127 | + selector: td:nth-child(8) |
| 128 | + downloadvolumefactor: |
| 129 | + case: |
| 130 | + img.pro_free: 0 |
| 131 | + img.pro_free2up: 0 |
| 132 | + img.pro_50pctdown: 0.5 |
| 133 | + img.pro_50pctdown2up: 0.5 |
| 134 | + img.pro_30pctdown: 0.3 |
| 135 | + "*": 1 |
| 136 | + uploadvolumefactor: |
| 137 | + case: |
| 138 | + img.pro_50pctdown2up: 2 |
| 139 | + img.pro_free2up: 2 |
| 140 | + img.pro_2up: 2 |
| 141 | + "*": 1 |
| 142 | + minimumratio: |
| 143 | + text: 1.0 |
| 144 | + minimumseedtime: |
| 145 | + # 36 hours (as seconds = 36 x 60 x 60) |
| 146 | + text: 129600 |
| 147 | + description: |
| 148 | + selector: td:nth-child(1) |
| 149 | + remove: a, b, font, img, span |
0 commit comments