Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
Jackett
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vlbox
Jackett
Commits
75bb3db9
Commit
75bb3db9
authored
7 years ago
by
Garfield69
Committed by
vlbox
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
mvgroup: optionally strip S01E01 from torznab searches. resolves #2488
parent
8f434552
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Jackett.Common/Definitions/mvgroupforum.yml
+9
-0
9 additions, 0 deletions
src/Jackett.Common/Definitions/mvgroupforum.yml
src/Jackett.Common/Definitions/mvgroupmain.yml
+9
-0
9 additions, 0 deletions
src/Jackett.Common/Definitions/mvgroupmain.yml
with
18 additions
and
0 deletions
src/Jackett.Common/Definitions/mvgroupforum.yml
+
9
−
0
View file @
75bb3db9
...
@@ -92,6 +92,10 @@
...
@@ -92,6 +92,10 @@
type
:
checkbox
type
:
checkbox
label
:
Drop "BBC " from the front of result titles
label
:
Drop "BBC " from the front of result titles
default
:
false
default
:
false
-
name
:
stripS01E01
type
:
checkbox
label
:
Strip the S01E01 from the Torznab search requests
default
:
false
-
name
:
info
-
name
:
info
type
:
info
type
:
info
label
:
Category for Sonarr and Radarr
label
:
Category for Sonarr and Radarr
...
@@ -125,6 +129,9 @@
...
@@ -125,6 +129,9 @@
"
seed"
:
"
{{
if
.Config.seed
}}1{{else}}0{{end}}"
"
seed"
:
"
{{
if
.Config.seed
}}1{{else}}0{{end}}"
"
withsubs"
:
"
{{
re_replace
.Config.withsubs
\"
_
\"
\"\"
}}"
"
withsubs"
:
"
{{
re_replace
.Config.withsubs
\"
_
\"
\"\"
}}"
"
filter"
:
"
{{
if
.Config.hidef
}}hd+{{else}}{{end}}{{
.Keywords
}}"
"
filter"
:
"
{{
if
.Config.hidef
}}hd+{{else}}{{end}}{{
.Keywords
}}"
keywordsfilters
:
-
name
:
re_replace
args
:
[
"
S01E01"
,
"
{{
if
.Config.stripS01E01
}}{{else}}S01E01{{end}}"
]
# optionally remove S01E01 from search
rows
:
rows
:
selector
:
tr:has(a.magnetlink)
selector
:
tr:has(a.magnetlink)
...
@@ -138,6 +145,8 @@
...
@@ -138,6 +145,8 @@
filters
:
filters
:
-
name
:
re_replace
-
name
:
re_replace
args
:
[
"
^BBC
(.*)"
,
"
{{
if
.Config.dropbbc
}}{{
else
}}BBC
{{
end
}}$1"
]
args
:
[
"
^BBC
(.*)"
,
"
{{
if
.Config.dropbbc
}}{{
else
}}BBC
{{
end
}}$1"
]
-
name
:
append
args
:
"
{{
if
.Config.stripS01E01
}}
S01E01{{else}}{{end}}"
details
:
details
:
optional
:
true
optional
:
true
selector
:
td.singleindent a[href^="/index.php?showtopic="]
selector
:
td.singleindent a[href^="/index.php?showtopic="]
...
...
This diff is collapsed.
Click to expand it.
src/Jackett.Common/Definitions/mvgroupmain.yml
+
9
−
0
View file @
75bb3db9
...
@@ -92,6 +92,10 @@
...
@@ -92,6 +92,10 @@
type
:
checkbox
type
:
checkbox
label
:
Drop "BBC " from the front of result titles
label
:
Drop "BBC " from the front of result titles
default
:
false
default
:
false
-
name
:
stripS01E01
type
:
checkbox
label
:
Strip the S01E01 from the Torznab search requests
default
:
false
-
name
:
info
-
name
:
info
type
:
info
type
:
info
label
:
Category for Sonarr and Radarr
label
:
Category for Sonarr and Radarr
...
@@ -125,6 +129,9 @@
...
@@ -125,6 +129,9 @@
"
seed"
:
"
{{
if
.Config.seed
}}1{{else}}0{{end}}"
"
seed"
:
"
{{
if
.Config.seed
}}1{{else}}0{{end}}"
"
withsubs"
:
"
{{
re_replace
.Config.withsubs
\"
_
\"
\"\"
}}"
"
withsubs"
:
"
{{
re_replace
.Config.withsubs
\"
_
\"
\"\"
}}"
"
filter"
:
"
{{
if
.Config.hidef
}}hd+{{else}}{{end}}{{
.Keywords
}}"
"
filter"
:
"
{{
if
.Config.hidef
}}hd+{{else}}{{end}}{{
.Keywords
}}"
keywordsfilters
:
-
name
:
re_replace
args
:
[
"
S01E01"
,
"
{{
if
.Config.stripS01E01
}}{{else}}S01E01{{end}}"
]
# optionally remove S01E01 from search
rows
:
rows
:
selector
:
tr:has(a.magnetlink)
selector
:
tr:has(a.magnetlink)
...
@@ -138,6 +145,8 @@
...
@@ -138,6 +145,8 @@
filters
:
filters
:
-
name
:
re_replace
-
name
:
re_replace
args
:
[
"
^BBC
(.*)"
,
"
{{
if
.Config.dropbbc
}}{{
else
}}BBC
{{
end
}}$1"
]
args
:
[
"
^BBC
(.*)"
,
"
{{
if
.Config.dropbbc
}}{{
else
}}BBC
{{
end
}}$1"
]
-
name
:
append
args
:
"
{{
if
.Config.stripS01E01
}}
S01E01{{else}}{{end}}"
details
:
details
:
optional
:
true
optional
:
true
selector
:
td.singleindent a[href^="/index.php?showtopic="]
selector
:
td.singleindent a[href^="/index.php?showtopic="]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment