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
ccc2441a
Commit
ccc2441a
authored
9 years ago
by
flightlevel
Browse files
Options
Downloads
Plain Diff
Merge pull request #243 from flightlevel/scenetime
SceneTime: Add category mapping and fix search
parents
97849dfc
5aaa4022
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Jackett/Indexers/SceneTime.cs
+41
-7
41 additions, 7 deletions
src/Jackett/Indexers/SceneTime.cs
with
41 additions
and
7 deletions
src/Jackett/Indexers/SceneTime.cs
+
41
−
7
View file @
ccc2441a
...
...
@@ -11,7 +11,6 @@ using System.Linq;
using
System.Threading.Tasks
;
using
Jackett.Models.IndexerConfig
;
using
System.Text.RegularExpressions
;
using
System.Collections.Specialized
;
namespace
Jackett.Indexers
{
...
...
@@ -38,8 +37,45 @@ namespace Jackett.Indexers
p
:
ps
,
configData
:
new
ConfigurationDataBasicLogin
(
"For best results, change the 'Torrents per page' setting to the maximum in your profile on the SceneTime webpage."
))
{
AddCategoryMapping
(
77
,
TorznabCatType
.
TVSD
);
AddCategoryMapping
(
1
,
TorznabCatType
.
MoviesSD
);
AddCategoryMapping
(
3
,
TorznabCatType
.
MoviesDVD
);
AddCategoryMapping
(
47
,
TorznabCatType
.
MoviesSD
);
AddCategoryMapping
(
57
,
TorznabCatType
.
MoviesSD
);
AddCategoryMapping
(
59
,
TorznabCatType
.
MoviesHD
);
AddCategoryMapping
(
61
,
TorznabCatType
.
MoviesSD
);
AddCategoryMapping
(
64
,
TorznabCatType
.
Movies3D
);
AddCategoryMapping
(
80
,
TorznabCatType
.
MoviesForeign
);
AddCategoryMapping
(
81
,
TorznabCatType
.
MoviesBluRay
);
AddCategoryMapping
(
82
,
TorznabCatType
.
MoviesOther
);
AddCategoryMapping
(
102
,
TorznabCatType
.
MoviesOther
);
AddCategoryMapping
(
103
,
TorznabCatType
.
MoviesWEBDL
);
AddCategoryMapping
(
105
,
TorznabCatType
.
Movies
);
AddCategoryMapping
(
6
,
TorznabCatType
.
PCGames
);
AddCategoryMapping
(
48
,
TorznabCatType
.
ConsoleXbox
);
AddCategoryMapping
(
49
,
TorznabCatType
.
ConsolePSP
);
AddCategoryMapping
(
50
,
TorznabCatType
.
ConsolePS3
);
AddCategoryMapping
(
51
,
TorznabCatType
.
ConsoleWii
);
AddCategoryMapping
(
55
,
TorznabCatType
.
ConsoleNDS
);
AddCategoryMapping
(
107
,
TorznabCatType
.
ConsolePS4
);
AddCategoryMapping
(
2
,
TorznabCatType
.
TVSD
);
AddCategoryMapping
(
43
,
TorznabCatType
.
TV
);
AddCategoryMapping
(
9
,
TorznabCatType
.
TVHD
);
AddCategoryMapping
(
63
,
TorznabCatType
.
TV
);
AddCategoryMapping
(
77
,
TorznabCatType
.
TVSD
);
AddCategoryMapping
(
79
,
TorznabCatType
.
TVSport
);
AddCategoryMapping
(
100
,
TorznabCatType
.
TVFOREIGN
);
AddCategoryMapping
(
83
,
TorznabCatType
.
TVWEBDL
);
AddCategoryMapping
(
5
,
TorznabCatType
.
PC0day
);
AddCategoryMapping
(
7
,
TorznabCatType
.
Books
);
AddCategoryMapping
(
52
,
TorznabCatType
.
PCMac
);
AddCategoryMapping
(
65
,
TorznabCatType
.
BooksComics
);
AddCategoryMapping
(
53
,
TorznabCatType
.
PC
);
AddCategoryMapping
(
4
,
TorznabCatType
.
Audio
);
AddCategoryMapping
(
11
,
TorznabCatType
.
AudioVideo
);
}
public
async
Task
<
IndexerConfigurationStatus
>
ApplyConfiguration
(
JToken
configJson
)
...
...
@@ -64,7 +100,7 @@ namespace Jackett.Indexers
public
async
Task
<
IEnumerable
<
ReleaseInfo
>>
PerformQuery
(
TorznabQuery
query
)
{
NameValueCollection
qParams
=
new
NameValueCollection
();
Dictionary
<
string
,
string
>
qParams
=
new
Dictionary
<
string
,
string
>
();
qParams
.
Add
(
"cata"
,
"yes"
);
qParams
.
Add
(
"sec"
,
"jax"
);
...
...
@@ -79,9 +115,7 @@ namespace Jackett.Indexers
qParams
.
Add
(
"search"
,
query
.
GetQueryString
());
}
string
torrentSearchUrl
=
$"
{
SearchUrl
}
?
{
qParams
.
GetQueryString
()}
"
;
var
results
=
await
RequestStringWithCookiesAndRetry
(
torrentSearchUrl
);
var
results
=
await
PostDataWithCookiesAndRetry
(
SearchUrl
,
qParams
);
List
<
ReleaseInfo
>
releases
=
ParseResponse
(
results
.
Content
);
return
releases
;
...
...
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