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
2f682ca5
Commit
2f682ca5
authored
Jan 20, 2016
by
flightlevel
Browse files
Options
Downloads
Patches
Plain Diff
SpeedCd: Fix Query String
SpeedCd: Fix Query String
parent
7b74f981
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/SpeedCD.cs
+6
-25
6 additions, 25 deletions
src/Jackett/Indexers/SpeedCD.cs
with
6 additions
and
25 deletions
src/Jackett/Indexers/SpeedCD.cs
+
6
−
25
View file @
2f682ca5
...
@@ -92,9 +92,9 @@ namespace Jackett.Indexers
...
@@ -92,9 +92,9 @@ namespace Jackett.Indexers
NameValueCollection
qParams
=
new
NameValueCollection
();
NameValueCollection
qParams
=
new
NameValueCollection
();
if
(!
string
.
IsNullOrEmpty
(
query
.
SanitizedSearchTerm
))
if
(!
string
.
IsNullOrEmpty
(
query
.
GetQueryString
()
))
{
{
qParams
.
Add
(
"search"
,
query
.
SanitizedSearchTerm
);
qParams
.
Add
(
"search"
,
query
.
GetQueryString
()
);
}
}
List
<
string
>
catList
=
MapTorznabCapsToTrackers
(
query
);
List
<
string
>
catList
=
MapTorznabCapsToTrackers
(
query
);
...
@@ -113,7 +113,6 @@ namespace Jackett.Indexers
...
@@ -113,7 +113,6 @@ namespace Jackett.Indexers
try
try
{
{
CQ
dom
=
response
.
Content
;
CQ
dom
=
response
.
Content
;
var
rows
=
dom
[
"div[id='torrentTable'] > div[class='box torrentBox'] > div[class='boxContent'] > table > tbody > tr"
];
var
rows
=
dom
[
"div[id='torrentTable'] > div[class='box torrentBox'] > div[class='boxContent'] > table > tbody > tr"
];
...
@@ -125,27 +124,9 @@ namespace Jackett.Indexers
...
@@ -125,27 +124,9 @@ namespace Jackett.Indexers
string
title
=
torrentData
.
Find
(
"a[class='torrent']"
).
First
().
Text
().
Trim
();
string
title
=
torrentData
.
Find
(
"a[class='torrent']"
).
First
().
Text
().
Trim
();
Uri
link
=
new
Uri
(
SiteLink
+
torrentData
.
Find
(
"img[class='icos save']"
).
First
().
Parent
().
Attr
(
"href"
).
Trim
());
Uri
link
=
new
Uri
(
SiteLink
+
torrentData
.
Find
(
"img[class='icos save']"
).
First
().
Parent
().
Attr
(
"href"
).
Trim
());
Uri
guid
=
new
Uri
(
SiteLink
+
torrentData
.
Find
(
"a[class='torrent']"
).
First
().
Attr
(
"href"
).
Trim
().
TrimStart
(
'/'
));
Uri
guid
=
new
Uri
(
SiteLink
+
torrentData
.
Find
(
"a[class='torrent']"
).
First
().
Attr
(
"href"
).
Trim
().
TrimStart
(
'/'
));
long
size
=
ReleaseInfo
.
GetBytes
(
cells
.
Elements
.
ElementAt
(
4
).
InnerText
);
long
size
=
ReleaseInfo
.
GetBytes
(
cells
.
Elements
.
ElementAt
(
4
).
Cq
().
Text
());
int
seeders
=
ParseUtil
.
CoerceInt
(
cells
.
Elements
.
ElementAt
(
5
).
Cq
().
Text
());
int
seeders
=
0
;
int
leechers
=
ParseUtil
.
CoerceInt
(
cells
.
Elements
.
ElementAt
(
6
).
Cq
().
Text
());
if
(
cells
.
Elements
.
ElementAt
(
5
).
FirstChild
.
HasChildren
)
{
seeders
=
ParseUtil
.
CoerceInt
(
cells
.
Elements
.
ElementAt
(
5
).
FirstChild
.
InnerText
);
}
else
{
seeders
=
ParseUtil
.
CoerceInt
(
cells
.
Elements
.
ElementAt
(
5
).
InnerText
);
};
int
leechers
=
0
;
if
(
cells
.
Elements
.
ElementAt
(
6
).
FirstChild
.
HasChildren
)
{
leechers
=
ParseUtil
.
CoerceInt
(
cells
.
Elements
.
ElementAt
(
6
).
FirstChild
.
InnerText
);
}
else
{
leechers
=
ParseUtil
.
CoerceInt
(
cells
.
Elements
.
ElementAt
(
6
).
InnerText
);
}
string
pubDateStr
=
torrentData
.
Find
(
"span[class^='elapsedDate']"
).
First
().
Attr
(
"title"
).
Trim
().
Replace
(
" at"
,
""
);
string
pubDateStr
=
torrentData
.
Find
(
"span[class^='elapsedDate']"
).
First
().
Attr
(
"title"
).
Trim
().
Replace
(
" at"
,
""
);
DateTime
publishDate
=
DateTime
.
ParseExact
(
pubDateStr
,
"dddd, MMMM d, yyyy h:mmtt"
,
CultureInfo
.
InvariantCulture
,
DateTimeStyles
.
AssumeUniversal
).
ToLocalTime
();
DateTime
publishDate
=
DateTime
.
ParseExact
(
pubDateStr
,
"dddd, MMMM d, yyyy h:mmtt"
,
CultureInfo
.
InvariantCulture
,
DateTimeStyles
.
AssumeUniversal
).
ToLocalTime
();
...
...
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
sign in
to comment