Skip to content

Commit

Permalink
Merge branch 'master' into feature/cloudproxy
Browse files Browse the repository at this point in the history
  • Loading branch information
abeloin committed Nov 25, 2020
2 parents 7cd835f + f4f1458 commit 7d8ea05
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 22 deletions.
15 changes: 4 additions & 11 deletions src/Jackett.Common/Definitions/beyond-hd-oneurl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ search:
qty: 100

rows:
selector: div.table-torrents > table > tbody > tr
after: 1
selector: div.table-torrents > table > tbody > tr[id^="torrentposter"]

fields:
_category:
Expand All @@ -79,18 +78,12 @@ search:
text: "{{ if .Result._category }}{{ .Result._category }}{{ else }}1{{ end }}"
title:
selector: a.torrent-name
download:
selector: a[href*="/download/"]
attribute: href
details:
selector: a.torrent-name
attribute: href
poster:
selector: div.torrent-poster img
attribute: src
filters:
- name: replace
args: ["/img/person.png", ""]
download:
selector: a[href*="/download/"]
attribute: href
date:
selector: td:not(a[href$="/history"]) span.text-orange
filters:
Expand Down
15 changes: 4 additions & 11 deletions src/Jackett.Common/Definitions/beyond-hd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ search:
qty: 100

rows:
selector: div.table-torrents > table > tbody > tr
after: 1
selector: div.table-torrents > table > tbody > tr[id^="torrentposter"]

fields:
_category:
Expand All @@ -99,18 +98,12 @@ search:
text: "{{ if .Result._category }}{{ .Result._category }}{{ else }}1{{ end }}"
title:
selector: a.torrent-name
download:
selector: a[href*="/download/"]
attribute: href
details:
selector: a.torrent-name
attribute: href
poster:
selector: div.torrent-poster img
attribute: src
filters:
- name: replace
args: ["/img/person.png", ""]
download:
selector: a[href*="/download/"]
attribute: href
date:
selector: td:not(a[href$="/history"]) span.text-orange
filters:
Expand Down
1 change: 1 addition & 0 deletions src/Jackett.Common/Indexers/NewPCT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,7 @@ private List<NewpctRelease> ParseSearchJsonContent(string content, string year)

// we have to guess the language (words DUAL or MULTI are not supported in Radarr)
var language = "spanish";
if (titleLower.Contains("latino")) language += " latino";
if ((titleLower.Contains("castellano") && titleLower.Contains("ingles")) ||
(titleLower.Contains("spanish") && titleLower.Contains("english")) ||
titleLower.Contains("[es-en]") || titleLower.Contains("multilenguaje"))
Expand Down

0 comments on commit 7d8ea05

Please sign in to comment.