mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Core: correct Other as 8000 and Books as 7000 (#9986)
as documented in https://newznab.readthedocs.io/en/latest/misc/api/#predefined-categories and update any indexers affected
This commit is contained in:
@@ -10,9 +10,7 @@ links:
|
|||||||
|
|
||||||
caps:
|
caps:
|
||||||
categories:
|
categories:
|
||||||
1: TV
|
Other: Other
|
||||||
2: Movies
|
|
||||||
3: Other
|
|
||||||
|
|
||||||
modes:
|
modes:
|
||||||
search: [q]
|
search: [q]
|
||||||
@@ -20,14 +18,10 @@ caps:
|
|||||||
movie-search: [q]
|
movie-search: [q]
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
- name: category-id
|
- name: info_8000
|
||||||
type: select
|
type: info
|
||||||
label: The 7torrents web site does not provide categories. Select the category you want Jackett to set on all results returned.
|
label: About 7torrents Categories
|
||||||
default: 3
|
default: 7torrents does not return categories in its search results page. To add to Sonarr or Radarr replace all categories with 8000(Other).
|
||||||
options:
|
|
||||||
1: TV
|
|
||||||
2: Movies
|
|
||||||
3: Other
|
|
||||||
- name: sort
|
- name: sort
|
||||||
type: select
|
type: select
|
||||||
label: Sort requested from site
|
label: Sort requested from site
|
||||||
@@ -50,7 +44,7 @@ search:
|
|||||||
|
|
||||||
fields:
|
fields:
|
||||||
category:
|
category:
|
||||||
text: "{{ .Config.category-id }}"
|
text: Other
|
||||||
title:
|
title:
|
||||||
selector: div.media
|
selector: div.media
|
||||||
attribute: data-name
|
attribute: data-name
|
||||||
|
@@ -10,9 +10,7 @@ links:
|
|||||||
|
|
||||||
caps:
|
caps:
|
||||||
categories:
|
categories:
|
||||||
1: TV
|
Other: Other
|
||||||
2: Movies
|
|
||||||
3: Other
|
|
||||||
|
|
||||||
modes:
|
modes:
|
||||||
search: [q]
|
search: [q]
|
||||||
@@ -26,14 +24,10 @@ settings:
|
|||||||
- name: password
|
- name: password
|
||||||
type: password
|
type: password
|
||||||
label: Password
|
label: Password
|
||||||
- name: category-id
|
- name: info_8000
|
||||||
type: select
|
type: info
|
||||||
label: The BrasilTracker web site does not provide categories. Select the category you want Jackett to set on all results returned.
|
label: About BrasilTracker Categores
|
||||||
default: 3
|
default: BrasilTracker does not return categories in its search results page. To add to Sonarr or Radarr replace all categories with 8000(Other).
|
||||||
options:
|
|
||||||
1: TV
|
|
||||||
2: Movies
|
|
||||||
3: Other
|
|
||||||
- name: freeleech
|
- name: freeleech
|
||||||
type: checkbox
|
type: checkbox
|
||||||
label: Search freeleech only
|
label: Search freeleech only
|
||||||
@@ -91,7 +85,7 @@ search:
|
|||||||
|
|
||||||
fields:
|
fields:
|
||||||
category:
|
category:
|
||||||
text: "{{ .Config.category-id }}"
|
text: Other
|
||||||
details:
|
details:
|
||||||
selector: a[href^="torrents.php?id="]
|
selector: a[href^="torrents.php?id="]
|
||||||
attribute: href
|
attribute: href
|
||||||
|
@@ -10,9 +10,7 @@ links:
|
|||||||
|
|
||||||
caps:
|
caps:
|
||||||
categories:
|
categories:
|
||||||
1: TV
|
Other: Other
|
||||||
2: Movies
|
|
||||||
3: Other
|
|
||||||
|
|
||||||
modes:
|
modes:
|
||||||
search: [q]
|
search: [q]
|
||||||
@@ -20,14 +18,10 @@ caps:
|
|||||||
movie-search: [q]
|
movie-search: [q]
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
- name: category-id
|
- name: info_8000
|
||||||
type: select
|
type: info
|
||||||
label: The BTDigg web site does not provide categories. Select the category you want Jackett to set on all results returned.
|
label: About BTDigg Categores
|
||||||
default: 3
|
default: BTDigg does not return categories in its search results page. To add to Sonarr or Radarr replace all categories with 8000(Other).
|
||||||
options:
|
|
||||||
1: TV
|
|
||||||
2: Movies
|
|
||||||
3: Other
|
|
||||||
- name: sort
|
- name: sort
|
||||||
type: select
|
type: select
|
||||||
label: Sort requested from site
|
label: Sort requested from site
|
||||||
@@ -54,7 +48,7 @@ search:
|
|||||||
|
|
||||||
fields:
|
fields:
|
||||||
category:
|
category:
|
||||||
text: "{{ .Config.category-id }}"
|
text: Other
|
||||||
title:
|
title:
|
||||||
selector: div.torrent_name a
|
selector: div.torrent_name a
|
||||||
details:
|
details:
|
||||||
|
@@ -23,9 +23,7 @@ legacylinks:
|
|||||||
|
|
||||||
caps:
|
caps:
|
||||||
categories:
|
categories:
|
||||||
tv: TV
|
Other: Other
|
||||||
movies: Movies
|
|
||||||
other: Other
|
|
||||||
|
|
||||||
modes:
|
modes:
|
||||||
search: [q]
|
search: [q]
|
||||||
@@ -33,14 +31,10 @@ caps:
|
|||||||
movie-search: [q]
|
movie-search: [q]
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
- name: category-id
|
- name: info_8000
|
||||||
type: select
|
type: info
|
||||||
label: The BTSOW web site does not provide categories. Select the category you want Jackett to set on all results returned.
|
label: About BTSOW Categores
|
||||||
default: other
|
default: BTSOW does not return categories in its search results page. To add to Sonarr or Radarr replace all categories with 8000(Other).
|
||||||
options:
|
|
||||||
tv: TV
|
|
||||||
movies: Movies
|
|
||||||
other: Other
|
|
||||||
|
|
||||||
download:
|
download:
|
||||||
selector: a#magnetOpen
|
selector: a#magnetOpen
|
||||||
@@ -53,7 +47,7 @@ search:
|
|||||||
selector: div.row:has(a[href*="/detail/hash/"])
|
selector: div.row:has(a[href*="/detail/hash/"])
|
||||||
fields:
|
fields:
|
||||||
category:
|
category:
|
||||||
text: "{{ .Config.category-id }}"
|
text: Other
|
||||||
title:
|
title:
|
||||||
selector: a[href*="/detail/hash/"]
|
selector: a[href*="/detail/hash/"]
|
||||||
attribute: title
|
attribute: title
|
||||||
|
@@ -43,9 +43,7 @@ legacylinks:
|
|||||||
|
|
||||||
caps:
|
caps:
|
||||||
categories:
|
categories:
|
||||||
1: TV
|
Other: Other
|
||||||
2: Movies
|
|
||||||
3: Other
|
|
||||||
|
|
||||||
modes:
|
modes:
|
||||||
search: [q]
|
search: [q]
|
||||||
@@ -68,14 +66,10 @@ settings:
|
|||||||
type: info
|
type: info
|
||||||
label: How to get the User-Agent
|
label: How to get the User-Agent
|
||||||
default: "<ol><li>From the same place you fetched the cookie,<li>Find <b>'user-agent:'</b> in the <b>Request Headers</b> section<li><b>Select</b> and <b>Copy</b> the whole user-agent string <i>(everything after 'user-agent: ')</i> and <b>Paste</b> here.</ol>"
|
default: "<ol><li>From the same place you fetched the cookie,<li>Find <b>'user-agent:'</b> in the <b>Request Headers</b> section<li><b>Select</b> and <b>Copy</b> the whole user-agent string <i>(everything after 'user-agent: ')</i> and <b>Paste</b> here.</ol>"
|
||||||
- name: category-id
|
- name: info_8000
|
||||||
type: select
|
type: info
|
||||||
label: The cpabien web site does not provide categories. Select the category you want Jackett to set on all results returned.
|
label: About cpasbien Categores
|
||||||
default: 3
|
default: cpasbien does not return categories in its search results page. To add to Sonarr or Radarr replace all categories with 8000(Other).
|
||||||
options:
|
|
||||||
1: TV
|
|
||||||
2: Movies
|
|
||||||
3: Other
|
|
||||||
- name: multilang
|
- name: multilang
|
||||||
type: checkbox
|
type: checkbox
|
||||||
label: Replace MULTI by another language in release name
|
label: Replace MULTI by another language in release name
|
||||||
@@ -125,7 +119,7 @@ search:
|
|||||||
|
|
||||||
fields:
|
fields:
|
||||||
category:
|
category:
|
||||||
text: "{{ .Config.category-id }}"
|
text: Other
|
||||||
site_date:
|
site_date:
|
||||||
selector: a
|
selector: a
|
||||||
filters:
|
filters:
|
||||||
|
@@ -22,9 +22,7 @@ legacylinks:
|
|||||||
|
|
||||||
caps:
|
caps:
|
||||||
categories:
|
categories:
|
||||||
1: TV
|
Other: Other
|
||||||
2: Movies
|
|
||||||
3: Other
|
|
||||||
|
|
||||||
modes:
|
modes:
|
||||||
search: [q]
|
search: [q]
|
||||||
@@ -32,14 +30,10 @@ caps:
|
|||||||
movie-search: [q]
|
movie-search: [q]
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
- name: category-id
|
- name: info_8000
|
||||||
type: select
|
type: info
|
||||||
label: The cpasbien clone web site does not provide categories. Select the category you want Jackett to set on all results returned.
|
label: About cpasbienclone Categores
|
||||||
default: 3
|
default: cpasbienclone does not return categories in its search results page. To add to Sonarr or Radarr replace all categories with 8000(Other).
|
||||||
options:
|
|
||||||
1: TV
|
|
||||||
2: Movies
|
|
||||||
3: Other
|
|
||||||
- name: multilang
|
- name: multilang
|
||||||
type: checkbox
|
type: checkbox
|
||||||
label: Replace MULTI by another language in release name
|
label: Replace MULTI by another language in release name
|
||||||
@@ -86,7 +80,7 @@ search:
|
|||||||
|
|
||||||
fields:
|
fields:
|
||||||
category:
|
category:
|
||||||
text: "{{ .Config.category-id }}"
|
text: Other
|
||||||
site_date:
|
site_date:
|
||||||
selector: a
|
selector: a
|
||||||
filters:
|
filters:
|
||||||
|
@@ -14,9 +14,7 @@ legacylinks:
|
|||||||
|
|
||||||
caps:
|
caps:
|
||||||
categories:
|
categories:
|
||||||
1: TV
|
Other: Other
|
||||||
2: Movies
|
|
||||||
3: Other
|
|
||||||
|
|
||||||
modes:
|
modes:
|
||||||
search: [q]
|
search: [q]
|
||||||
@@ -24,14 +22,10 @@ caps:
|
|||||||
movie-search: [q]
|
movie-search: [q]
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
- name: category-id
|
- name: info_8000
|
||||||
type: select
|
type: info
|
||||||
label: The ExtraTorrent web site does not provide categories. Select the category you want Jackett to set on all results returned.
|
label: About ExtraTorrent Categores
|
||||||
default: 3
|
default: ExtraTorrent does not return categories in its search results page. To add to Sonarr or Radarr replace all categories with 8000(Other).
|
||||||
options:
|
|
||||||
1: TV
|
|
||||||
2: Movies
|
|
||||||
3: Other
|
|
||||||
|
|
||||||
search:
|
search:
|
||||||
paths:
|
paths:
|
||||||
@@ -48,7 +42,7 @@ search:
|
|||||||
|
|
||||||
fields:
|
fields:
|
||||||
category:
|
category:
|
||||||
text: "{{ .Config.category-id }}"
|
text: Other
|
||||||
title:
|
title:
|
||||||
selector: a[href*="/torrent/"][title^="view"]
|
selector: a[href*="/torrent/"][title^="view"]
|
||||||
details:
|
details:
|
||||||
|
@@ -21,9 +21,7 @@ legacylinks:
|
|||||||
|
|
||||||
caps:
|
caps:
|
||||||
categories:
|
categories:
|
||||||
1: TV
|
Other: Other
|
||||||
2: Movies
|
|
||||||
3: Other
|
|
||||||
|
|
||||||
modes:
|
modes:
|
||||||
search: [q]
|
search: [q]
|
||||||
@@ -31,14 +29,10 @@ caps:
|
|||||||
movie-search: [q]
|
movie-search: [q]
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
- name: category-id
|
- name: info_8000
|
||||||
type: select
|
type: info
|
||||||
label: The Magnet4You web site does not provide categories. Select the category you want Jackett to set on all results returned.
|
label: About Magnet4You Categores
|
||||||
default: 3
|
default: Magnet4You does not return categories in its search results page. To add to Sonarr or Radarr replace all categories with 8000(Other).
|
||||||
options:
|
|
||||||
1: TV
|
|
||||||
2: Movies
|
|
||||||
3: Other
|
|
||||||
- name: sort
|
- name: sort
|
||||||
type: select
|
type: select
|
||||||
label: Sort requested from site
|
label: Sort requested from site
|
||||||
@@ -58,7 +52,7 @@ search:
|
|||||||
|
|
||||||
fields:
|
fields:
|
||||||
category:
|
category:
|
||||||
text: "{{ .Config.category-id }}"
|
text: Other
|
||||||
title:
|
title:
|
||||||
selector: a[href^="magnet/"]
|
selector: a[href^="magnet/"]
|
||||||
details:
|
details:
|
||||||
|
@@ -21,9 +21,7 @@ legacylinks:
|
|||||||
|
|
||||||
caps:
|
caps:
|
||||||
categories:
|
categories:
|
||||||
tv: TV
|
Other: Other
|
||||||
movies: Movies
|
|
||||||
other: Other
|
|
||||||
|
|
||||||
modes:
|
modes:
|
||||||
search: [q]
|
search: [q]
|
||||||
@@ -31,14 +29,10 @@ caps:
|
|||||||
movie-search: [q]
|
movie-search: [q]
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
- name: category-id
|
- name: info_8000
|
||||||
type: select
|
type: info
|
||||||
label: The MovCr web site does not provide categories. Select the category you want Jackett to set on all results returned.
|
label: About MovCr Categores
|
||||||
default: other
|
default: MovCr does not return categories in its search results page. To add to Sonarr or Radarr replace all categories with 8000(Other).
|
||||||
options:
|
|
||||||
tv: TV
|
|
||||||
movies: Movies
|
|
||||||
other: Other
|
|
||||||
|
|
||||||
download:
|
download:
|
||||||
selector: a[href^="/torrents/"]
|
selector: a[href^="/torrents/"]
|
||||||
@@ -55,7 +49,7 @@ search:
|
|||||||
|
|
||||||
fields:
|
fields:
|
||||||
category:
|
category:
|
||||||
text: "{{ .Config.category-id }}"
|
text: Other
|
||||||
title:
|
title:
|
||||||
selector: td.name a:nth-child(2)
|
selector: td.name a:nth-child(2)
|
||||||
details:
|
details:
|
||||||
|
@@ -12,9 +12,7 @@ legacylinks:
|
|||||||
|
|
||||||
caps:
|
caps:
|
||||||
categories:
|
categories:
|
||||||
1: TV
|
Other: Other
|
||||||
2: Movies
|
|
||||||
3: Other
|
|
||||||
|
|
||||||
modes:
|
modes:
|
||||||
search: [q]
|
search: [q]
|
||||||
@@ -28,14 +26,10 @@ settings:
|
|||||||
- name: password
|
- name: password
|
||||||
type: password
|
type: password
|
||||||
label: Password
|
label: Password
|
||||||
- name: category-id
|
- name: info_8000
|
||||||
type: select
|
type: info
|
||||||
label: The MVGroup web site does not provide categories. Select the category you want Jackett to set on all results returned.
|
label: About MVGroup Categores
|
||||||
default: 3
|
default: MVGroup does not return categories in its search results page. To add to Sonarr or Radarr replace all categories with 8000(Other).
|
||||||
options:
|
|
||||||
1: TV
|
|
||||||
2: Movies
|
|
||||||
3: Other
|
|
||||||
- name: hidef
|
- name: hidef
|
||||||
type: checkbox
|
type: checkbox
|
||||||
label: Show MVGroup HiDef Releases only
|
label: Show MVGroup HiDef Releases only
|
||||||
@@ -162,7 +156,7 @@ search:
|
|||||||
|
|
||||||
fields:
|
fields:
|
||||||
category:
|
category:
|
||||||
text: "{{ .Config.category-id }}"
|
text: Other
|
||||||
title:
|
title:
|
||||||
# fallback title (to prevent abend if optional is not found)
|
# fallback title (to prevent abend if optional is not found)
|
||||||
text: "title not found"
|
text: "title not found"
|
||||||
|
@@ -12,9 +12,7 @@ legacylinks:
|
|||||||
|
|
||||||
caps:
|
caps:
|
||||||
categories:
|
categories:
|
||||||
1: TV
|
Other: Other
|
||||||
2: Movies
|
|
||||||
3: Other
|
|
||||||
|
|
||||||
modes:
|
modes:
|
||||||
search: [q]
|
search: [q]
|
||||||
@@ -28,14 +26,10 @@ settings:
|
|||||||
- name: password
|
- name: password
|
||||||
type: password
|
type: password
|
||||||
label: Password
|
label: Password
|
||||||
- name: category-id
|
- name: info_8000
|
||||||
type: select
|
type: info
|
||||||
label: The MVGroup web site does not provide categories. Select the category you want Jackett to set on all results returned.
|
label: About MVGroup Categores
|
||||||
default: 3
|
default: MVGroup does not return categories in its search results page. To add to Sonarr or Radarr replace all categories with 8000(Other).
|
||||||
options:
|
|
||||||
1: TV
|
|
||||||
2: Movies
|
|
||||||
3: Other
|
|
||||||
- name: hidef
|
- name: hidef
|
||||||
type: checkbox
|
type: checkbox
|
||||||
label: Show MVGroup HiDef Releases only
|
label: Show MVGroup HiDef Releases only
|
||||||
@@ -162,7 +156,7 @@ search:
|
|||||||
|
|
||||||
fields:
|
fields:
|
||||||
category:
|
category:
|
||||||
text: "{{ .Config.category-id }}"
|
text: Other
|
||||||
title:
|
title:
|
||||||
# fallback title (to prevent abend if optional is not found)
|
# fallback title (to prevent abend if optional is not found)
|
||||||
text: "title not found"
|
text: "title not found"
|
||||||
|
@@ -12,9 +12,7 @@ legacylinks:
|
|||||||
|
|
||||||
caps:
|
caps:
|
||||||
categories:
|
categories:
|
||||||
1: TV
|
Other: Other
|
||||||
2: Movies
|
|
||||||
3: Other
|
|
||||||
|
|
||||||
modes:
|
modes:
|
||||||
search: [q]
|
search: [q]
|
||||||
@@ -22,14 +20,10 @@ caps:
|
|||||||
movie-search: [q]
|
movie-search: [q]
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
- name: category-id
|
- name: info_8000
|
||||||
type: select
|
type: info
|
||||||
label: The Torrent4You web site does not provide categories. Select the category you want Jackett to set on all results returned.
|
label: About Torrent4You Categores
|
||||||
default: 3
|
default: Torrent4You does not return categories in its search results page. To add to Sonarr or Radarr replace all categories with 8000(Other).
|
||||||
options:
|
|
||||||
1: TV
|
|
||||||
2: Movies
|
|
||||||
3: Other
|
|
||||||
- name: sort
|
- name: sort
|
||||||
type: select
|
type: select
|
||||||
label: Sort requested from site
|
label: Sort requested from site
|
||||||
@@ -53,7 +47,7 @@ search:
|
|||||||
|
|
||||||
fields:
|
fields:
|
||||||
category:
|
category:
|
||||||
text: "{{ .Config.category-id }}"
|
text: Other
|
||||||
title:
|
title:
|
||||||
selector: td:nth-child(1) a
|
selector: td:nth-child(1) a
|
||||||
details:
|
details:
|
||||||
|
@@ -14,9 +14,7 @@ links:
|
|||||||
|
|
||||||
caps:
|
caps:
|
||||||
categories:
|
categories:
|
||||||
tv: TV
|
Other: Other
|
||||||
movies: Movies
|
|
||||||
other: Other
|
|
||||||
|
|
||||||
modes:
|
modes:
|
||||||
search: [q]
|
search: [q]
|
||||||
@@ -24,14 +22,10 @@ caps:
|
|||||||
movie-search: [q]
|
movie-search: [q]
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
- name: category-id
|
- name: info_8000
|
||||||
type: select
|
type: info
|
||||||
label: The TorrentKitty web site does not provide categories. Select the category you want Jackett to set on all results returned.
|
label: About TorrentKitty Categores
|
||||||
default: other
|
default: TorrentKitty does not return categories in its search results page. To add to Sonarr or Radarr replace all categories with 8000(Other).
|
||||||
options:
|
|
||||||
tv: TV
|
|
||||||
movies: Movies
|
|
||||||
other: Other
|
|
||||||
|
|
||||||
search:
|
search:
|
||||||
paths:
|
paths:
|
||||||
@@ -42,7 +36,7 @@ search:
|
|||||||
|
|
||||||
fields:
|
fields:
|
||||||
category:
|
category:
|
||||||
text: "{{ .Config.category-id }}"
|
text: Other
|
||||||
title:
|
title:
|
||||||
selector: td.name
|
selector: td.name
|
||||||
details:
|
details:
|
||||||
|
@@ -61,10 +61,10 @@ settings:
|
|||||||
oldest: "created asc"
|
oldest: "created asc"
|
||||||
seeders: seeders
|
seeders: seeders
|
||||||
size: size
|
size: size
|
||||||
- name: info
|
- name: info_8000
|
||||||
type: info
|
type: info
|
||||||
label: A note about TP2
|
label: About TorrentProject2 Categories
|
||||||
default: TP2 does not display categories in its search results page. To add to Sonarr or Radarr replace all categories with 7000.
|
default: TorrentProject2 does not return categories in its search results page. To add to Sonarr or Radarr replace all categories with 8000(Other).
|
||||||
|
|
||||||
download:
|
download:
|
||||||
selector: "#download > div:nth-child(2) > div:nth-child(1) > a"
|
selector: "#download > div:nth-child(2) > div:nth-child(1) > a"
|
||||||
|
@@ -14,9 +14,7 @@ legacylinks:
|
|||||||
|
|
||||||
caps:
|
caps:
|
||||||
categories:
|
categories:
|
||||||
1: TV
|
Other: Other
|
||||||
2: Movies
|
|
||||||
3: Other
|
|
||||||
|
|
||||||
modes:
|
modes:
|
||||||
search: [q]
|
search: [q]
|
||||||
@@ -24,14 +22,10 @@ caps:
|
|||||||
movie-search: [q]
|
movie-search: [q]
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
- name: category-id
|
- name: info_8000
|
||||||
type: select
|
type: info
|
||||||
label: The zetorrents web site does not provide categories. Select the category you want Jackett to set on all results returned.
|
label: About zetorrents Categores
|
||||||
default: 3
|
default: zetorrents does not return categories in its search results page. To add to Sonarr or Radarr replace all categories with 8000(Other).
|
||||||
options:
|
|
||||||
1: TV
|
|
||||||
2: Movies
|
|
||||||
3: Other
|
|
||||||
- name: multilang
|
- name: multilang
|
||||||
type: checkbox
|
type: checkbox
|
||||||
label: Replace MULTI by another language in release name
|
label: Replace MULTI by another language in release name
|
||||||
@@ -71,7 +65,7 @@ search:
|
|||||||
|
|
||||||
fields:
|
fields:
|
||||||
category:
|
category:
|
||||||
text: "{{ .Config.category-id }}"
|
text: Other
|
||||||
site_date:
|
site_date:
|
||||||
selector: a[href^="/torrent/"]
|
selector: a[href^="/torrent/"]
|
||||||
filters:
|
filters:
|
||||||
|
@@ -7,163 +7,162 @@ namespace Jackett.Common.Models
|
|||||||
{
|
{
|
||||||
|
|
||||||
public static readonly TorznabCategory Console = new TorznabCategory(1000, "Console");
|
public static readonly TorznabCategory Console = new TorznabCategory(1000, "Console");
|
||||||
|
|
||||||
public static readonly TorznabCategory ConsoleNDS = new TorznabCategory(1010, "Console/NDS");
|
public static readonly TorznabCategory ConsoleNDS = new TorznabCategory(1010, "Console/NDS");
|
||||||
|
|
||||||
public static readonly TorznabCategory ConsolePSP = new TorznabCategory(1020, "Console/PSP");
|
public static readonly TorznabCategory ConsolePSP = new TorznabCategory(1020, "Console/PSP");
|
||||||
|
|
||||||
public static readonly TorznabCategory ConsoleWii = new TorznabCategory(1030, "Console/Wii");
|
public static readonly TorznabCategory ConsoleWii = new TorznabCategory(1030, "Console/Wii");
|
||||||
|
|
||||||
public static readonly TorznabCategory ConsoleXbox = new TorznabCategory(1040, "Console/Xbox");
|
public static readonly TorznabCategory ConsoleXbox = new TorznabCategory(1040, "Console/Xbox");
|
||||||
|
|
||||||
public static readonly TorznabCategory ConsoleXbox360 = new TorznabCategory(1050, "Console/Xbox 360");
|
public static readonly TorznabCategory ConsoleXbox360 = new TorznabCategory(1050, "Console/Xbox 360");
|
||||||
|
|
||||||
public static readonly TorznabCategory ConsoleWiiwareVC = new TorznabCategory(1060, "Console/Wiiware/VC");
|
public static readonly TorznabCategory ConsoleWiiwareVC = new TorznabCategory(1060, "Console/Wiiware/VC");
|
||||||
|
|
||||||
public static readonly TorznabCategory ConsoleXBOX360DLC = new TorznabCategory(1070, "Console/XBOX 360 DLC");
|
public static readonly TorznabCategory ConsoleXBOX360DLC = new TorznabCategory(1070, "Console/XBOX 360 DLC");
|
||||||
|
|
||||||
public static readonly TorznabCategory ConsolePS3 = new TorznabCategory(1080, "Console/PS3");
|
public static readonly TorznabCategory ConsolePS3 = new TorznabCategory(1080, "Console/PS3");
|
||||||
|
|
||||||
public static readonly TorznabCategory ConsoleOther = new TorznabCategory(1090, "Console/Other");
|
public static readonly TorznabCategory ConsoleOther = new TorznabCategory(1090, "Console/Other");
|
||||||
|
|
||||||
public static readonly TorznabCategory Console3DS = new TorznabCategory(1110, "Console/3DS");
|
public static readonly TorznabCategory Console3DS = new TorznabCategory(1110, "Console/3DS");
|
||||||
|
|
||||||
public static readonly TorznabCategory ConsolePSVita = new TorznabCategory(1120, "Console/PS Vita");
|
public static readonly TorznabCategory ConsolePSVita = new TorznabCategory(1120, "Console/PS Vita");
|
||||||
|
|
||||||
public static readonly TorznabCategory ConsoleWiiU = new TorznabCategory(1130, "Console/WiiU");
|
public static readonly TorznabCategory ConsoleWiiU = new TorznabCategory(1130, "Console/WiiU");
|
||||||
|
|
||||||
public static readonly TorznabCategory ConsoleXboxOne = new TorznabCategory(1140, "Console/Xbox One");
|
public static readonly TorznabCategory ConsoleXboxOne = new TorznabCategory(1140, "Console/Xbox One");
|
||||||
|
|
||||||
public static readonly TorznabCategory ConsolePS4 = new TorznabCategory(1180, "Console/PS4");
|
public static readonly TorznabCategory ConsolePS4 = new TorznabCategory(1180, "Console/PS4");
|
||||||
|
|
||||||
public static readonly TorznabCategory Movies = new TorznabCategory(2000, "Movies");
|
public static readonly TorznabCategory Movies = new TorznabCategory(2000, "Movies");
|
||||||
|
|
||||||
public static readonly TorznabCategory MoviesForeign = new TorznabCategory(2010, "Movies/Foreign");
|
public static readonly TorznabCategory MoviesForeign = new TorznabCategory(2010, "Movies/Foreign");
|
||||||
|
|
||||||
public static readonly TorznabCategory MoviesOther = new TorznabCategory(2020, "Movies/Other");
|
public static readonly TorznabCategory MoviesOther = new TorznabCategory(2020, "Movies/Other");
|
||||||
|
|
||||||
public static readonly TorznabCategory MoviesSD = new TorznabCategory(2030, "Movies/SD");
|
public static readonly TorznabCategory MoviesSD = new TorznabCategory(2030, "Movies/SD");
|
||||||
|
|
||||||
public static readonly TorznabCategory MoviesHD = new TorznabCategory(2040, "Movies/HD");
|
public static readonly TorznabCategory MoviesHD = new TorznabCategory(2040, "Movies/HD");
|
||||||
|
|
||||||
public static readonly TorznabCategory MoviesUHD = new TorznabCategory(2045, "Movies/UHD");
|
public static readonly TorznabCategory MoviesUHD = new TorznabCategory(2045, "Movies/UHD");
|
||||||
|
|
||||||
public static readonly TorznabCategory Movies3D = new TorznabCategory(2050, "Movies/3D");
|
public static readonly TorznabCategory Movies3D = new TorznabCategory(2050, "Movies/3D");
|
||||||
|
|
||||||
public static readonly TorznabCategory MoviesBluRay = new TorznabCategory(2060, "Movies/BluRay");
|
public static readonly TorznabCategory MoviesBluRay = new TorznabCategory(2060, "Movies/BluRay");
|
||||||
|
|
||||||
public static readonly TorznabCategory MoviesDVD = new TorznabCategory(2070, "Movies/DVD");
|
public static readonly TorznabCategory MoviesDVD = new TorznabCategory(2070, "Movies/DVD");
|
||||||
|
|
||||||
public static readonly TorznabCategory MoviesWEBDL = new TorznabCategory(2080, "Movies/WEBDL");
|
public static readonly TorznabCategory MoviesWEBDL = new TorznabCategory(2080, "Movies/WEBDL");
|
||||||
|
|
||||||
public static readonly TorznabCategory Audio = new TorznabCategory(3000, "Audio");
|
public static readonly TorznabCategory Audio = new TorznabCategory(3000, "Audio");
|
||||||
|
|
||||||
public static readonly TorznabCategory AudioMP3 = new TorznabCategory(3010, "Audio/MP3");
|
public static readonly TorznabCategory AudioMP3 = new TorznabCategory(3010, "Audio/MP3");
|
||||||
|
|
||||||
public static readonly TorznabCategory AudioVideo = new TorznabCategory(3020, "Audio/Video");
|
public static readonly TorznabCategory AudioVideo = new TorznabCategory(3020, "Audio/Video");
|
||||||
|
|
||||||
public static readonly TorznabCategory AudioAudiobook = new TorznabCategory(3030, "Audio/Audiobook");
|
public static readonly TorznabCategory AudioAudiobook = new TorznabCategory(3030, "Audio/Audiobook");
|
||||||
|
|
||||||
public static readonly TorznabCategory AudioLossless = new TorznabCategory(3040, "Audio/Lossless");
|
public static readonly TorznabCategory AudioLossless = new TorznabCategory(3040, "Audio/Lossless");
|
||||||
|
|
||||||
public static readonly TorznabCategory AudioOther = new TorznabCategory(3050, "Audio/Other");
|
public static readonly TorznabCategory AudioOther = new TorznabCategory(3050, "Audio/Other");
|
||||||
|
|
||||||
public static readonly TorznabCategory AudioForeign = new TorznabCategory(3060, "Audio/Foreign");
|
public static readonly TorznabCategory AudioForeign = new TorznabCategory(3060, "Audio/Foreign");
|
||||||
|
|
||||||
public static readonly TorznabCategory PC = new TorznabCategory(4000, "PC");
|
public static readonly TorznabCategory PC = new TorznabCategory(4000, "PC");
|
||||||
|
|
||||||
public static readonly TorznabCategory PC0day = new TorznabCategory(4010, "PC/0day");
|
public static readonly TorznabCategory PC0day = new TorznabCategory(4010, "PC/0day");
|
||||||
|
|
||||||
public static readonly TorznabCategory PCISO = new TorznabCategory(4020, "PC/ISO");
|
public static readonly TorznabCategory PCISO = new TorznabCategory(4020, "PC/ISO");
|
||||||
|
|
||||||
public static readonly TorznabCategory PCMac = new TorznabCategory(4030, "PC/Mac");
|
public static readonly TorznabCategory PCMac = new TorznabCategory(4030, "PC/Mac");
|
||||||
|
|
||||||
public static readonly TorznabCategory PCPhoneOther = new TorznabCategory(4040, "PC/Phone-Other");
|
public static readonly TorznabCategory PCPhoneOther = new TorznabCategory(4040, "PC/Phone-Other");
|
||||||
|
|
||||||
public static readonly TorznabCategory PCGames = new TorznabCategory(4050, "PC/Games");
|
public static readonly TorznabCategory PCGames = new TorznabCategory(4050, "PC/Games");
|
||||||
|
|
||||||
public static readonly TorznabCategory PCPhoneIOS = new TorznabCategory(4060, "PC/Phone-IOS");
|
public static readonly TorznabCategory PCPhoneIOS = new TorznabCategory(4060, "PC/Phone-IOS");
|
||||||
|
|
||||||
public static readonly TorznabCategory PCPhoneAndroid = new TorznabCategory(4070, "PC/Phone-Android");
|
public static readonly TorznabCategory PCPhoneAndroid = new TorznabCategory(4070, "PC/Phone-Android");
|
||||||
|
|
||||||
public static readonly TorznabCategory TV = new TorznabCategory(5000, "TV");
|
public static readonly TorznabCategory TV = new TorznabCategory(5000, "TV");
|
||||||
|
|
||||||
public static readonly TorznabCategory TVWEBDL = new TorznabCategory(5010, "TV/WEB-DL");
|
public static readonly TorznabCategory TVWEBDL = new TorznabCategory(5010, "TV/WEB-DL");
|
||||||
|
|
||||||
public static readonly TorznabCategory TVFOREIGN = new TorznabCategory(5020, "TV/FOREIGN");
|
public static readonly TorznabCategory TVFOREIGN = new TorznabCategory(5020, "TV/FOREIGN");
|
||||||
|
|
||||||
public static readonly TorznabCategory TVSD = new TorznabCategory(5030, "TV/SD");
|
public static readonly TorznabCategory TVSD = new TorznabCategory(5030, "TV/SD");
|
||||||
|
|
||||||
public static readonly TorznabCategory TVHD = new TorznabCategory(5040, "TV/HD");
|
public static readonly TorznabCategory TVHD = new TorznabCategory(5040, "TV/HD");
|
||||||
|
|
||||||
public static readonly TorznabCategory TVUHD = new TorznabCategory(5045, "TV/UHD");
|
public static readonly TorznabCategory TVUHD = new TorznabCategory(5045, "TV/UHD");
|
||||||
|
|
||||||
public static readonly TorznabCategory TVOTHER = new TorznabCategory(5050, "TV/OTHER");
|
public static readonly TorznabCategory TVOTHER = new TorznabCategory(5050, "TV/OTHER");
|
||||||
|
|
||||||
public static readonly TorznabCategory TVSport = new TorznabCategory(5060, "TV/Sport");
|
public static readonly TorznabCategory TVSport = new TorznabCategory(5060, "TV/Sport");
|
||||||
|
|
||||||
public static readonly TorznabCategory TVAnime = new TorznabCategory(5070, "TV/Anime");
|
public static readonly TorznabCategory TVAnime = new TorznabCategory(5070, "TV/Anime");
|
||||||
|
|
||||||
public static readonly TorznabCategory TVDocumentary = new TorznabCategory(5080, "TV/Documentary");
|
public static readonly TorznabCategory TVDocumentary = new TorznabCategory(5080, "TV/Documentary");
|
||||||
|
|
||||||
public static readonly TorznabCategory XXX = new TorznabCategory(6000, "XXX");
|
public static readonly TorznabCategory XXX = new TorznabCategory(6000, "XXX");
|
||||||
|
|
||||||
public static readonly TorznabCategory XXXDVD = new TorznabCategory(6010, "XXX/DVD");
|
public static readonly TorznabCategory XXXDVD = new TorznabCategory(6010, "XXX/DVD");
|
||||||
|
|
||||||
public static readonly TorznabCategory XXXWMV = new TorznabCategory(6020, "XXX/WMV");
|
public static readonly TorznabCategory XXXWMV = new TorznabCategory(6020, "XXX/WMV");
|
||||||
|
|
||||||
public static readonly TorznabCategory XXXXviD = new TorznabCategory(6030, "XXX/XviD");
|
public static readonly TorznabCategory XXXXviD = new TorznabCategory(6030, "XXX/XviD");
|
||||||
|
|
||||||
public static readonly TorznabCategory XXXx264 = new TorznabCategory(6040, "XXX/x264");
|
public static readonly TorznabCategory XXXx264 = new TorznabCategory(6040, "XXX/x264");
|
||||||
|
|
||||||
public static readonly TorznabCategory XXXOther = new TorznabCategory(6050, "XXX/Other");
|
public static readonly TorznabCategory XXXOther = new TorznabCategory(6050, "XXX/Other");
|
||||||
|
|
||||||
public static readonly TorznabCategory XXXImageset = new TorznabCategory(6060, "XXX/Imageset");
|
public static readonly TorznabCategory XXXImageset = new TorznabCategory(6060, "XXX/Imageset");
|
||||||
|
|
||||||
public static readonly TorznabCategory XXXPacks = new TorznabCategory(6070, "XXX/Packs");
|
public static readonly TorznabCategory XXXPacks = new TorznabCategory(6070, "XXX/Packs");
|
||||||
|
|
||||||
public static readonly TorznabCategory Other = new TorznabCategory(7000, "Other");
|
public static readonly TorznabCategory Books = new TorznabCategory(7000, "Books");
|
||||||
|
|
||||||
public static readonly TorznabCategory OtherMisc = new TorznabCategory(7010, "Other/Misc");
|
public static readonly TorznabCategory BooksEbook = new TorznabCategory(7010, "Books/Ebook");
|
||||||
|
|
||||||
public static readonly TorznabCategory OtherHashed = new TorznabCategory(7020, "Other/Hashed");
|
public static readonly TorznabCategory BooksComics = new TorznabCategory(7020, "Books/Comics");
|
||||||
|
|
||||||
public static readonly TorznabCategory Books = new TorznabCategory(8000, "Books");
|
public static readonly TorznabCategory BooksMagazines = new TorznabCategory(7030, "Books/Magazines");
|
||||||
|
|
||||||
public static readonly TorznabCategory BooksEbook = new TorznabCategory(8010, "Books/Ebook");
|
public static readonly TorznabCategory BooksTechnical = new TorznabCategory(7040, "Books/Technical");
|
||||||
|
|
||||||
public static readonly TorznabCategory BooksComics = new TorznabCategory(8020, "Books/Comics");
|
public static readonly TorznabCategory BooksOther = new TorznabCategory(7050, "Books/Other");
|
||||||
|
|
||||||
public static readonly TorznabCategory BooksMagazines = new TorznabCategory(8030, "Books/Magazines");
|
public static readonly TorznabCategory BooksForeign = new TorznabCategory(7060, "Books/Foreign");
|
||||||
|
|
||||||
public static readonly TorznabCategory BooksTechnical = new TorznabCategory(8040, "Books/Technical");
|
public static readonly TorznabCategory Other = new TorznabCategory(8000, "Other");
|
||||||
|
|
||||||
public static readonly TorznabCategory BooksOther = new TorznabCategory(8050, "Books/Other");
|
public static readonly TorznabCategory OtherMisc = new TorznabCategory(8010, "Other/Misc");
|
||||||
|
|
||||||
public static readonly TorznabCategory BooksForeign = new TorznabCategory(8060, "Books/Foreign");
|
public static readonly TorznabCategory OtherHashed = new TorznabCategory(8020, "Other/Hashed");
|
||||||
|
|
||||||
|
|
||||||
public static readonly TorznabCategory[] AllCats = new TorznabCategory[] { Console, ConsoleNDS, ConsolePSP, ConsoleWii, ConsoleXbox, ConsoleXbox360, ConsoleWiiwareVC, ConsoleXBOX360DLC, ConsolePS3, ConsoleOther, Console3DS, ConsolePSVita, ConsoleWiiU, ConsoleXboxOne, ConsolePS4, Movies, MoviesForeign, MoviesOther, MoviesSD, MoviesHD, MoviesUHD, Movies3D, MoviesBluRay, MoviesDVD, MoviesWEBDL, Audio, AudioMP3, AudioVideo, AudioAudiobook, AudioLossless, AudioOther, AudioForeign, PC, PC0day, PCISO, PCMac, PCPhoneOther, PCGames, PCPhoneIOS, PCPhoneAndroid, TV, TVWEBDL, TVFOREIGN, TVSD, TVHD, TVUHD, TVOTHER, TVSport, TVAnime, TVDocumentary, XXX, XXXDVD, XXXWMV, XXXXviD, XXXx264, XXXOther, XXXImageset, XXXPacks, Other, OtherMisc, OtherHashed, Books, BooksEbook, BooksComics, BooksMagazines, BooksTechnical, BooksOther, BooksForeign };
|
public static readonly TorznabCategory[] AllCats = new TorznabCategory[] { Console, ConsoleNDS, ConsolePSP, ConsoleWii, ConsoleXbox, ConsoleXbox360, ConsoleWiiwareVC, ConsoleXBOX360DLC, ConsolePS3, ConsoleOther, Console3DS, ConsolePSVita, ConsoleWiiU, ConsoleXboxOne, ConsolePS4, Movies, MoviesForeign, MoviesOther, MoviesSD, MoviesHD, MoviesUHD, Movies3D, MoviesBluRay, MoviesDVD, MoviesWEBDL, Audio, AudioMP3, AudioVideo, AudioAudiobook, AudioLossless, AudioOther, AudioForeign, PC, PC0day, PCISO, PCMac, PCPhoneOther, PCGames, PCPhoneIOS, PCPhoneAndroid, TV, TVWEBDL, TVFOREIGN, TVSD, TVHD, TVUHD, TVOTHER, TVSport, TVAnime, TVDocumentary, XXX, XXXDVD, XXXWMV, XXXXviD, XXXx264, XXXOther, XXXImageset, XXXPacks, Other, OtherMisc, OtherHashed, Books, BooksEbook, BooksComics, BooksMagazines, BooksTechnical, BooksOther, BooksForeign };
|
||||||
|
|
||||||
static TorznabCatType()
|
static TorznabCatType()
|
||||||
{
|
{
|
||||||
|
|
||||||
Console.SubCategories.AddRange(new List<TorznabCategory> { ConsoleNDS, ConsolePSP, ConsoleWii, ConsoleXbox, ConsoleXbox360, ConsoleWiiwareVC, ConsoleXBOX360DLC, ConsolePS3, ConsoleOther, Console3DS, ConsolePSVita, ConsoleWiiU, ConsoleXboxOne, ConsolePS4 });
|
Console.SubCategories.AddRange(new List<TorznabCategory> { ConsoleNDS, ConsolePSP, ConsoleWii, ConsoleXbox, ConsoleXbox360, ConsoleWiiwareVC, ConsoleXBOX360DLC, ConsolePS3, ConsoleOther, Console3DS, ConsolePSVita, ConsoleWiiU, ConsoleXboxOne, ConsolePS4 });
|
||||||
|
|
||||||
Movies.SubCategories.AddRange(new List<TorznabCategory> { MoviesForeign, MoviesOther, MoviesSD, MoviesHD, MoviesUHD, Movies3D, MoviesBluRay, MoviesDVD, MoviesWEBDL });
|
Movies.SubCategories.AddRange(new List<TorznabCategory> { MoviesForeign, MoviesOther, MoviesSD, MoviesHD, MoviesUHD, Movies3D, MoviesBluRay, MoviesDVD, MoviesWEBDL });
|
||||||
|
|
||||||
Audio.SubCategories.AddRange(new List<TorznabCategory> { AudioMP3, AudioVideo, AudioAudiobook, AudioLossless, AudioOther, AudioForeign });
|
Audio.SubCategories.AddRange(new List<TorznabCategory> { AudioMP3, AudioVideo, AudioAudiobook, AudioLossless, AudioOther, AudioForeign });
|
||||||
|
|
||||||
PC.SubCategories.AddRange(new List<TorznabCategory> { PC0day, PCISO, PCMac, PCPhoneOther, PCGames, PCPhoneIOS, PCPhoneAndroid });
|
PC.SubCategories.AddRange(new List<TorznabCategory> { PC0day, PCISO, PCMac, PCPhoneOther, PCGames, PCPhoneIOS, PCPhoneAndroid });
|
||||||
|
|
||||||
TV.SubCategories.AddRange(new List<TorznabCategory> { TVWEBDL, TVFOREIGN, TVSD, TVHD, TVUHD, TVOTHER, TVSport, TVAnime, TVDocumentary });
|
TV.SubCategories.AddRange(new List<TorznabCategory> { TVWEBDL, TVFOREIGN, TVSD, TVHD, TVUHD, TVOTHER, TVSport, TVAnime, TVDocumentary });
|
||||||
|
|
||||||
XXX.SubCategories.AddRange(new List<TorznabCategory> { XXXDVD, XXXWMV, XXXXviD, XXXx264, XXXOther, XXXImageset, XXXPacks });
|
XXX.SubCategories.AddRange(new List<TorznabCategory> { XXXDVD, XXXWMV, XXXXviD, XXXx264, XXXOther, XXXImageset, XXXPacks });
|
||||||
|
|
||||||
Other.SubCategories.AddRange(new List<TorznabCategory> { OtherMisc, OtherHashed });
|
Other.SubCategories.AddRange(new List<TorznabCategory> { OtherMisc, OtherHashed });
|
||||||
|
|
||||||
Books.SubCategories.AddRange(new List<TorznabCategory> { BooksEbook, BooksComics, BooksMagazines, BooksTechnical, BooksOther, BooksForeign });
|
Books.SubCategories.AddRange(new List<TorznabCategory> { BooksEbook, BooksComics, BooksMagazines, BooksTechnical, BooksOther, BooksForeign });
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -63,16 +63,16 @@
|
|||||||
6050: XXX/Other
|
6050: XXX/Other
|
||||||
6060: XXX/Imageset
|
6060: XXX/Imageset
|
||||||
6070: XXX/Packs
|
6070: XXX/Packs
|
||||||
7000: Other
|
7000: Books
|
||||||
7010: Other/Misc
|
7010: Books/Ebook
|
||||||
7020: Other/Hashed
|
7020: Books/Comics
|
||||||
8000: Books
|
7030: Books/Magazines
|
||||||
8010: Books/Ebook
|
7040: Books/Technical
|
||||||
8020: Books/Comics
|
7050: Books/Other
|
||||||
8030: Books/Magazines
|
7060: Books/Foreign
|
||||||
8040: Books/Technical
|
8000: Other
|
||||||
8050: Books/Other
|
8010: Other/Misc
|
||||||
8060: Books/Foreign
|
8020: Other/Hashed
|
||||||
|
|
||||||
"; #>
|
"; #>
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
@@ -74,7 +74,7 @@ namespace Jackett.Test.Torznab
|
|||||||
// add subcategory of books (child category)
|
// add subcategory of books (child category)
|
||||||
AddCategoryMapping(33, TorznabCatType.BooksComics);
|
AddCategoryMapping(33, TorznabCatType.BooksComics);
|
||||||
Assert.AreEqual(3, TorznabCaps.Categories.Count);
|
Assert.AreEqual(3, TorznabCaps.Categories.Count);
|
||||||
Assert.AreEqual(8020, TorznabCaps.Categories[2].ID);
|
Assert.AreEqual(7020, TorznabCaps.Categories[2].ID);
|
||||||
|
|
||||||
// add int category with description => custom category. it's converted into 2 different categories
|
// add int category with description => custom category. it's converted into 2 different categories
|
||||||
AddCategoryMapping(44, TorznabCatType.ConsoleXbox, "Console/Xbox_c");
|
AddCategoryMapping(44, TorznabCatType.ConsoleXbox, "Console/Xbox_c");
|
||||||
@@ -226,7 +226,7 @@ namespace Jackett.Test.Torznab
|
|||||||
Assert.AreEqual("1040", dtoCaps[3].ID);
|
Assert.AreEqual("1040", dtoCaps[3].ID);
|
||||||
Assert.AreEqual("2000", dtoCaps[4].ID);
|
Assert.AreEqual("2000", dtoCaps[4].ID);
|
||||||
Assert.AreEqual("2030", dtoCaps[5].ID);
|
Assert.AreEqual("2030", dtoCaps[5].ID);
|
||||||
Assert.AreEqual("8020", dtoCaps[6].ID);
|
Assert.AreEqual("7020", dtoCaps[6].ID);
|
||||||
|
|
||||||
// test Torznab caps (XML) => more in Common.Model.TorznabCapabilitiesTests
|
// test Torznab caps (XML) => more in Common.Model.TorznabCapabilitiesTests
|
||||||
var xDocument = TorznabCaps.GetXDocument();
|
var xDocument = TorznabCaps.GetXDocument();
|
||||||
@@ -238,7 +238,7 @@ namespace Jackett.Test.Torznab
|
|||||||
Assert.AreEqual("1040", xDoumentCategories?[3].Attribute("id")?.Value);
|
Assert.AreEqual("1040", xDoumentCategories?[3].Attribute("id")?.Value);
|
||||||
Assert.AreEqual("2000", xDoumentCategories?[4].Attribute("id")?.Value); // Movies
|
Assert.AreEqual("2000", xDoumentCategories?[4].Attribute("id")?.Value); // Movies
|
||||||
Assert.AreEqual("2030", xDoumentCategories?[5].Attribute("id")?.Value);
|
Assert.AreEqual("2030", xDoumentCategories?[5].Attribute("id")?.Value);
|
||||||
Assert.AreEqual("8020", xDoumentCategories?[6].Attribute("id")?.Value);
|
Assert.AreEqual("7020", xDoumentCategories?[6].Attribute("id")?.Value);
|
||||||
Assert.AreEqual(9, xDoumentCategories?[4]?.Elements("subcat").ToList().Count); // Movies
|
Assert.AreEqual(9, xDoumentCategories?[4]?.Elements("subcat").ToList().Count); // Movies
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -328,7 +328,7 @@ namespace Jackett.Test.Torznab
|
|||||||
Assert.AreEqual(7, indexer.TorznabCaps.Categories.Count);
|
Assert.AreEqual(7, indexer.TorznabCaps.Categories.Count);
|
||||||
Assert.AreEqual(2000, indexer.TorznabCaps.Categories[0].ID);
|
Assert.AreEqual(2000, indexer.TorznabCaps.Categories[0].ID);
|
||||||
Assert.AreEqual(2030, indexer.TorznabCaps.Categories[1].ID);
|
Assert.AreEqual(2030, indexer.TorznabCaps.Categories[1].ID);
|
||||||
Assert.AreEqual(8020, indexer.TorznabCaps.Categories[2].ID);
|
Assert.AreEqual(7020, indexer.TorznabCaps.Categories[2].ID);
|
||||||
Assert.AreEqual(1040, indexer.TorznabCaps.Categories[3].ID);
|
Assert.AreEqual(1040, indexer.TorznabCaps.Categories[3].ID);
|
||||||
Assert.AreEqual(100044, indexer.TorznabCaps.Categories[4].ID);
|
Assert.AreEqual(100044, indexer.TorznabCaps.Categories[4].ID);
|
||||||
Assert.AreEqual(1030, indexer.TorznabCaps.Categories[5].ID);
|
Assert.AreEqual(1030, indexer.TorznabCaps.Categories[5].ID);
|
||||||
|
Reference in New Issue
Block a user