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
06266e2c
Commit
06266e2c
authored
Sep 21, 2015
by
KZ
Browse files
Options
Downloads
Patches
Plain Diff
#183 T411 Category mapping
parent
e8bb1680
No related branches found
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/T411.cs
+249
-183
249 additions, 183 deletions
src/Jackett/Indexers/T411.cs
with
249 additions
and
183 deletions
src/Jackett/Indexers/T411.cs
+
249
−
183
View file @
06266e2c
...
@@ -53,6 +53,72 @@ namespace Jackett.Indexers
...
@@ -53,6 +53,72 @@ namespace Jackett.Indexers
AllowAutoRedirect
=
true
AllowAutoRedirect
=
true
};
};
client
=
new
HttpClient
(
handler
);
client
=
new
HttpClient
(
handler
);
AddCategoryMapping
(
"Film\\/Vidéo"
,
TorznabCatType
.
Movies
);
AddCategoryMapping
(
"Vidéo-clips"
,
TorznabCatType
.
Other
);
AddCategoryMapping
(
"Série TV"
,
TorznabCatType
.
TV
);
AddCategoryMapping
(
"Animation"
,
TorznabCatType
.
TVAnime
);
AddCategoryMapping
(
"Film"
,
TorznabCatType
.
Movies
);
AddCategoryMapping
(
"Concert"
,
TorznabCatType
.
AudioVideo
);
AddCategoryMapping
(
"Documentaire"
,
TorznabCatType
.
Audio
);
AddCategoryMapping
(
"Spectacle"
,
TorznabCatType
.
TV
);
AddCategoryMapping
(
"Sport"
,
TorznabCatType
.
TVSport
);
AddCategoryMapping
(
"Animation Série"
,
TorznabCatType
.
TVAnime
);
AddCategoryMapping
(
"Emission TV"
,
TorznabCatType
.
TV
);
AddCategoryMapping
(
"Application"
,
TorznabCatType
.
PC0day
);
AddCategoryMapping
(
"Linux"
,
TorznabCatType
.
PC
);
AddCategoryMapping
(
"MacOS"
,
TorznabCatType
.
PCMac
);
AddCategoryMapping
(
"Windows"
,
TorznabCatType
.
PC
);
AddCategoryMapping
(
"Smartphone"
,
TorznabCatType
.
PCPhoneOther
);
AddCategoryMapping
(
"Tablette"
,
TorznabCatType
.
PCPhoneOther
);
AddCategoryMapping
(
"Autre"
,
TorznabCatType
.
PC
);
AddCategoryMapping
(
"Formation"
,
TorznabCatType
.
PC
);
AddCategoryMapping
(
"Emulation"
,
TorznabCatType
.
PC
);
AddCategoryMapping
(
"Emulateurs"
,
TorznabCatType
.
PC
);
AddCategoryMapping
(
"Roms"
,
TorznabCatType
.
PC
);
AddCategoryMapping
(
"GPS"
,
TorznabCatType
.
Other
);
AddCategoryMapping
(
"Applications"
,
TorznabCatType
.
Other
);
AddCategoryMapping
(
"Cartes"
,
TorznabCatType
.
Other
);
AddCategoryMapping
(
"Divers"
,
TorznabCatType
.
Other
);
AddCategoryMapping
(
"Audio"
,
TorznabCatType
.
Audio
);
AddCategoryMapping
(
"Karaoke"
,
TorznabCatType
.
Audio
);
AddCategoryMapping
(
"Samples"
,
TorznabCatType
.
Audio
);
AddCategoryMapping
(
"Musique"
,
TorznabCatType
.
Audio
);
AddCategoryMapping
(
"Podcast Radio"
,
TorznabCatType
.
Audio
);
AddCategoryMapping
(
"eBook"
,
TorznabCatType
.
BooksEbook
);
AddCategoryMapping
(
"Audio"
,
TorznabCatType
.
AudioAudiobook
);
AddCategoryMapping
(
"Bds"
,
TorznabCatType
.
AudioVideo
);
AddCategoryMapping
(
"Comics"
,
TorznabCatType
.
BooksComics
);
AddCategoryMapping
(
"Livres"
,
TorznabCatType
.
Books
);
AddCategoryMapping
(
"Mangas"
,
TorznabCatType
.
BooksForeign
);
AddCategoryMapping
(
"Presse"
,
TorznabCatType
.
BooksMagazines
);
AddCategoryMapping
(
"xXx"
,
TorznabCatType
.
XXX
);
AddCategoryMapping
(
"eBooks"
,
TorznabCatType
.
XXXImageset
);
AddCategoryMapping
(
"Jeux vidéo"
,
TorznabCatType
.
XXX
);
AddCategoryMapping
(
"Video"
,
TorznabCatType
.
XXXDVD
);
//AddCategoryMapping("Animation", TorznabCatType.XXX); Used above :/
AddCategoryMapping
(
"Jeu vidéo"
,
TorznabCatType
.
PCGames
);
AddCategoryMapping
(
"Linux"
,
TorznabCatType
.
PCGames
);
AddCategoryMapping
(
"MacOS"
,
TorznabCatType
.
PCGames
);
// AddCategoryMapping("Windows", TorznabCatType.PCGames); Used above :/
AddCategoryMapping
(
"Nintendo"
,
TorznabCatType
.
Console
);
AddCategoryMapping
(
"Sony"
,
TorznabCatType
.
Console
);
AddCategoryMapping
(
"Microsoft"
,
TorznabCatType
.
PCGames
);
AddCategoryMapping
(
"Smartphone"
,
TorznabCatType
.
PCPhoneOther
);
AddCategoryMapping
(
"Tablette"
,
TorznabCatType
.
PCPhoneOther
);
AddCategoryMapping
(
"Autre"
,
TorznabCatType
.
Other
);
AddCategoryMapping
(
"Jeux vidéo"
,
TorznabCatType
.
Other
);
}
}
async
Task
<
string
>
GetAuthToken
(
bool
forceFetch
=
false
)
async
Task
<
string
>
GetAuthToken
(
bool
forceFetch
=
false
)
...
@@ -156,8 +222,8 @@ namespace Jackett.Indexers
...
@@ -156,8 +222,8 @@ namespace Jackett.Indexers
release
.
Seeders
=
ParseUtil
.
CoerceInt
((
string
)
item
[
"seeders"
]);
release
.
Seeders
=
ParseUtil
.
CoerceInt
((
string
)
item
[
"seeders"
]);
release
.
Peers
=
ParseUtil
.
CoerceInt
((
string
)
item
[
"leechers"
])
+
release
.
Seeders
;
release
.
Peers
=
ParseUtil
.
CoerceInt
((
string
)
item
[
"leechers"
])
+
release
.
Seeders
;
release
.
Size
=
ParseUtil
.
CoerceLong
((
string
)
item
[
"size"
]);
release
.
Size
=
ParseUtil
.
CoerceLong
((
string
)
item
[
"size"
]);
release
.
Category
=
MapTrackerCatToNewznab
((
string
)
item
[
"categoryname"
]);
releases
.
Add
(
release
);
releases
.
Add
(
release
);
}
}
...
...
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