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
ea4d0fe7
Commit
ea4d0fe7
authored
9 years ago
by
Azerelat
Browse files
Options
Downloads
Patches
Plain Diff
AnimeBytes Sonarr Fix (Will only fix season 1 but we don't have season info).
parent
02a57533
Branches
Branches containing commit
Tags
v0.7.137
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Jackett/Indexers/AnimeBytes.cs
+17
-1
17 additions, 1 deletion
src/Jackett/Indexers/AnimeBytes.cs
src/Jackett/Models/IndexerConfig/Bespoke/ConfigurationDataAnimeBytes.cs
+2
-0
2 additions, 0 deletions
...dels/IndexerConfig/Bespoke/ConfigurationDataAnimeBytes.cs
with
19 additions
and
1 deletion
src/Jackett/Indexers/AnimeBytes.cs
+
17
−
1
View file @
ea4d0fe7
...
@@ -27,6 +27,7 @@ namespace Jackett.Indexers
...
@@ -27,6 +27,7 @@ namespace Jackett.Indexers
private
string
LoginUrl
{
get
{
return
SiteLink
+
"user/login"
;
}
}
private
string
LoginUrl
{
get
{
return
SiteLink
+
"user/login"
;
}
}
private
string
SearchUrl
{
get
{
return
SiteLink
+
"torrents.php?"
;
}
}
private
string
SearchUrl
{
get
{
return
SiteLink
+
"torrents.php?"
;
}
}
public
bool
AllowRaws
{
get
{
return
configData
.
IncludeRaw
.
Value
;
}
}
public
bool
AllowRaws
{
get
{
return
configData
.
IncludeRaw
.
Value
;
}
}
public
bool
InsertSeason
{
get
{
return
configData
.
InsertSeason
!=
null
&&
configData
.
InsertSeason
.
Value
;
}
}
new
ConfigurationDataAnimeBytes
configData
new
ConfigurationDataAnimeBytes
configData
{
{
...
@@ -53,6 +54,13 @@ namespace Jackett.Indexers
...
@@ -53,6 +54,13 @@ namespace Jackett.Indexers
}
}
public
IEnumerable
<
ReleaseInfo
>
FilterResults
(
TorznabQuery
query
,
IEnumerable
<
ReleaseInfo
>
input
)
{
// Prevent filtering
return
input
;
}
public
async
Task
<
IndexerConfigurationStatus
>
ApplyConfiguration
(
JToken
configJson
)
public
async
Task
<
IndexerConfigurationStatus
>
ApplyConfiguration
(
JToken
configJson
)
{
{
configData
.
LoadValuesFromJson
(
configJson
);
configData
.
LoadValuesFromJson
(
configJson
);
...
@@ -122,7 +130,9 @@ namespace Jackett.Indexers
...
@@ -122,7 +130,9 @@ namespace Jackett.Indexers
private
string
StripEpisodeNumber
(
string
term
)
private
string
StripEpisodeNumber
(
string
term
)
{
{
// Tracer does not support searching with episode number so strip it if we have one
// Tracer does not support searching with episode number so strip it if we have one
return
Regex
.
Replace
(
term
,
@"\W(\dx)?\d?\d$"
,
string
.
Empty
);
term
=
Regex
.
Replace
(
term
,
@"\W(\dx)?\d?\d$"
,
string
.
Empty
);
term
=
Regex
.
Replace
(
term
,
@"\W(S\d\d?E)?\d?\d$"
,
string
.
Empty
);
return
term
;
}
}
public
async
Task
<
IEnumerable
<
ReleaseInfo
>>
PerformQuery
(
TorznabQuery
query
)
public
async
Task
<
IEnumerable
<
ReleaseInfo
>>
PerformQuery
(
TorznabQuery
query
)
...
@@ -242,6 +252,12 @@ namespace Jackett.Indexers
...
@@ -242,6 +252,12 @@ namespace Jackett.Indexers
releaseInfo
=
releaseInfo
.
Replace
(
"Episode "
,
""
);
releaseInfo
=
releaseInfo
.
Replace
(
"Episode "
,
""
);
releaseInfo
=
releaseInfo
.
Replace
(
"Season "
,
"S"
);
releaseInfo
=
releaseInfo
.
Replace
(
"Season "
,
"S"
);
releaseInfo
=
releaseInfo
.
Trim
();
releaseInfo
=
releaseInfo
.
Trim
();
int
test
=
0
;
if
(
InsertSeason
&&
int
.
TryParse
(
releaseInfo
,
out
test
)
&&
releaseInfo
.
Length
==
1
)
{
releaseInfo
=
"S01E0"
+
releaseInfo
;
}
}
}
else
if
(
rowCq
.
HasClass
(
"torrent"
))
else
if
(
rowCq
.
HasClass
(
"torrent"
))
{
{
...
...
This diff is collapsed.
Click to expand it.
src/Jackett/Models/IndexerConfig/Bespoke/ConfigurationDataAnimeBytes.cs
+
2
−
0
View file @
ea4d0fe7
...
@@ -11,12 +11,14 @@ namespace Jackett.Models.IndexerConfig.Bespoke
...
@@ -11,12 +11,14 @@ namespace Jackett.Models.IndexerConfig.Bespoke
{
{
public
BoolItem
IncludeRaw
{
get
;
private
set
;
}
public
BoolItem
IncludeRaw
{
get
;
private
set
;
}
public
DisplayItem
DateWarning
{
get
;
private
set
;
}
public
DisplayItem
DateWarning
{
get
;
private
set
;
}
public
BoolItem
InsertSeason
{
get
;
private
set
;
}
public
ConfigurationDataAnimeBytes
()
public
ConfigurationDataAnimeBytes
()
:
base
()
:
base
()
{
{
IncludeRaw
=
new
BoolItem
()
{
Name
=
"IncludeRaw"
,
Value
=
false
};
IncludeRaw
=
new
BoolItem
()
{
Name
=
"IncludeRaw"
,
Value
=
false
};
DateWarning
=
new
DisplayItem
(
"This tracker does not supply upload dates so they are based off year of release."
)
{
Name
=
"DateWarning"
};
DateWarning
=
new
DisplayItem
(
"This tracker does not supply upload dates so they are based off year of release."
)
{
Name
=
"DateWarning"
};
InsertSeason
=
new
BoolItem
()
{
Name
=
"Prefix episode number with S01 for Sonarr Compatability"
,
Value
=
false
};
}
}
}
}
}
}
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