Class WebResult
java.lang.Object
com.biglybt.core.metasearch.Result
com.biglybt.core.metasearch.impl.web.WebResult
- All Implemented Interfaces:
FilterableResult
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Date
(package private) String
(package private) String
(package private) String
(package private) int
(package private) String
(package private) DateParser
(package private) String
(package private) String
(package private) String
(package private) String
(package private) int
(package private) int
(package private) int
(package private) int
(package private) String
(package private) boolean
(package private) Date
(package private) float
(package private) String
(package private) String
(package private) long
(package private) String
(package private) String
(package private) int
(package private) int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTagFromHTML
(String tag) float
int
getHash()
getName()
int
int
int
int
float
getRank()
long
getSize()
String[]
getTags()
Use this internally to get the current value set for the torrent link as opposed to getDownloadLink that messes with the resultgetUID()
int
getVotes()
int
boolean
private String
reConstructLink
(String link) void
setAssetDate
(String str) void
setCategory
(String category) void
setCategoryFromHTML
(String category) void
setCDPLink
(String cdpLink) void
setCommentsFromHTML
(String comments) void
setContentType
(String contentType) void
setDownloadButtonLink
(String downloadButtonLink) void
void
void
void
setNameFromHTML
(String name) void
setNbCompleted
(int num) void
setNbPeersFromHTML
(String nbPeers) void
setNbSeedsFromHTML
(String nbSeeds) void
setNbSuperSeedsFromHTML
(String nbSuperSeeds) void
setPlayLink
(String playLink) void
setPrivateFromHTML
(String privateTorrent) void
setPublishedDate
(Date date) void
setPublishedDateFromHTML
(String publishedDate) void
setRankFromHTML
(String rank_str) void
setRankFromHTML
(String rank_str, float divisor) void
setSizeFromHTML
(String size, long minAcceptable) void
setTorrentLink
(String torrentLink) void
void
setVotesDownFromHTML
(String votes_str) void
setVotesFromHTML
(String votes_str) Methods inherited from class com.biglybt.core.metasearch.Result
adjustLink, adjustRelativeTerms, applyRankBias, getEngine, getTime, guessContentTypeFromCategory, removeHTMLTags, toJSONMap, toString, unescapeEntities
-
Field Details
-
searchQuery
String searchQuery -
rootPageURL
String rootPageURL -
basePageURL
String basePageURL -
dateParser
DateParser dateParser -
contentType
String contentType -
name
String name -
category
String category -
tags
-
drmKey
String drmKey -
publishedDate
Date publishedDate -
assetDate
Date assetDate -
size
long size -
nbPeers
int nbPeers -
nbSeeds
int nbSeeds -
nbSuperSeeds
int nbSuperSeeds -
nbCompleted
int nbCompleted -
comments
int comments -
votes
int votes -
votesDown
int votesDown -
rank
float rank -
privateTorrent
boolean privateTorrent -
cdpLink
String cdpLink -
torrentLink
String torrentLink -
downloadButtonLink
String downloadButtonLink -
playLink
String playLink -
uid
String uid -
hash
String hash
-
-
Constructor Details
-
WebResult
public WebResult(Engine engine, String rootPageURL, String basePageURL, DateParser dateParser, String searchQuery)
-
-
Method Details
-
setName
-
setNameFromHTML
-
setCommentsFromHTML
-
getDescription
- Specified by:
getDescription
in classResult
-
setCategoryFromHTML
-
addTagFromHTML
-
setUID
-
getUID
-
setNbPeersFromHTML
-
setNbSeedsFromHTML
-
setNbSuperSeedsFromHTML
-
setNbCompleted
public void setNbCompleted(int num) -
setRankFromHTML
-
setRankFromHTML
-
getRank
public float getRank() -
setPublishedDate
-
setPublishedDateFromHTML
-
getAssetDate
- Specified by:
getAssetDate
in classResult
-
setAssetDate
-
setSizeFromHTML
-
setVotesFromHTML
-
setVotesDownFromHTML
-
setPrivateFromHTML
-
getVotes
public int getVotes() -
getVotesDown
public int getVotesDown()- Specified by:
getVotesDown
in classResult
-
setCDPLink
-
setDownloadButtonLink
-
setTorrentLink
-
getTorrentLinkRaw
Use this internally to get the current value set for the torrent link as opposed to getDownloadLink that messes with the result- Returns:
-
setPlayLink
-
getContentType
- Specified by:
getContentType
in classResult
-
getPlayLink
- Specified by:
getPlayLink
in classResult
-
setCategory
- Specified by:
setCategory
in classResult
-
setContentType
- Specified by:
setContentType
in classResult
-
setDrmKey
-
setHash
-
getHash
-
getCDPLink
- Specified by:
getCDPLink
in classResult
-
getCategory
- Specified by:
getCategory
in interfaceFilterableResult
- Specified by:
getCategory
in classResult
-
getTags
-
getDownloadLink
- Specified by:
getDownloadLink
in classResult
-
getDownloadButtonLink
- Specified by:
getDownloadButtonLink
in classResult
-
getTorrentLink
- Specified by:
getTorrentLink
in classResult
-
reConstructLink
-
getName
- Specified by:
getName
in interfaceFilterableResult
- Specified by:
getName
in classResult
-
getNbPeers
public int getNbPeers()- Specified by:
getNbPeers
in interfaceFilterableResult
- Specified by:
getNbPeers
in classResult
-
getNbSeeds
public int getNbSeeds()- Specified by:
getNbSeeds
in interfaceFilterableResult
- Specified by:
getNbSeeds
in classResult
-
getNbSuperSeeds
public int getNbSuperSeeds()- Specified by:
getNbSuperSeeds
in classResult
-
getNbCompleted
public int getNbCompleted()- Specified by:
getNbCompleted
in classResult
-
getPublishedDate
- Specified by:
getPublishedDate
in classResult
-
getSize
public long getSize()- Specified by:
getSize
in interfaceFilterableResult
- Specified by:
getSize
in classResult
-
getComments
public int getComments()- Specified by:
getComments
in classResult
-
getSearchQuery
- Specified by:
getSearchQuery
in classResult
-
isPrivate
public boolean isPrivate() -
getDRMKey
-
getAccuracy
public float getAccuracy()- Specified by:
getAccuracy
in classResult
-