From d53f325afb383da3c4de39cbf6d8fec9b207183a Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Thu, 27 Jun 2019 13:38:40 +1200 Subject: [PATCH] add music-master a Romanian Private Music site. resolves #5547 --- README.md | 1 + .../Definitions/music-master.yml | 83 +++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 src/Jackett.Common/Definitions/music-master.yml diff --git a/README.md b/README.md index 3e53a94b4..5579c0691 100644 --- a/README.md +++ b/README.md @@ -270,6 +270,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/ * Mega-Bliz * Mononoké-BT * MoreThanTV (MTV) + * Music-Master * MyAnonamouse (MAM) * myAmity * MySpleen diff --git a/src/Jackett.Common/Definitions/music-master.yml b/src/Jackett.Common/Definitions/music-master.yml new file mode 100644 index 000000000..a8edcee37 --- /dev/null +++ b/src/Jackett.Common/Definitions/music-master.yml @@ -0,0 +1,83 @@ +--- + site: music-master + name: Music-Master + description: "Music-Master is a ROMANIAN Private Torrent Tracker for MUSIC" + language: en-us + type: private + encoding: UTF-8 + links: + - https://music-master.ro/ + + caps: + categories: + Music: Audio + + modes: + search: [q] + music-search: [q, album, artist, label, year] + + login: + path: takelogin.php + method: post + inputs: + username: "{{ .Config.username }}" + password: "{{ .Config.password }}" + error: + - selector: td.text:contains("Error") + message: + selector: td.text + test: + path: my.php + selector: a[href="logout.php"] + + search: + paths: + - path: browse.php + method: get + inputs: + search: "{{if .Query.Artist}}{{ .Query.Artist }}{{else}}{{ .Keywords }}{{end}}" + # 0 active 1 incldead 2 onlydead + incldead: 1 + rows: + selector: table.browser tr:has(a[href^="details.php?id="]) + fields: + category: + text: "Music" + title: + selector: td a[href^="details.php?id="] + details: + selector: td a[href^="details.php?id="] + attribute: href + download: + selector: td a[href^="dwn.php?id="] + attribute: href + banner: + optional: true + selector: td a[href^="details.php?id="] + attribute: onmouseover + filters: + - name: regexp + args: "src=(.+?) width" + date: + selector: td:nth-child(4) + filters: + - name: dateparse + args: "02-01-200615:04:05" + size: + selector: td:nth-child(5) + grabs: + selector: td:nth-child(6) + filters: + - name: regexp + args: "([\\d]+)time" + seeders: + selector: td:nth-child(7) + leechers: + selector: td:nth-child(8) + downloadvolumefactor: + case: + img[src="pic/freedownload.png"]: "0" + "*": "1" + uploadvolumefactor: + case: + "*": "1"