com.aelitis.azureus.core.metasearch.impl.web
Class WebResult
java.lang.Object
com.aelitis.azureus.core.metasearch.Result
com.aelitis.azureus.core.metasearch.impl.web.WebResult
public class WebResult
- extends Result
WebResult
public WebResult(Engine engine,
String rootPageURL,
String basePageURL,
DateParser dateParser,
String searchQuery)
setName
public void setName(String name)
setNameFromHTML
public void setNameFromHTML(String name)
setCommentsFromHTML
public void setCommentsFromHTML(String comments)
setCategoryFromHTML
public void setCategoryFromHTML(String category)
setUID
public void setUID(String _uid)
getUID
public String getUID()
- Specified by:
getUID
in class Result
setNbPeersFromHTML
public void setNbPeersFromHTML(String nbPeers)
setNbSeedsFromHTML
public void setNbSeedsFromHTML(String nbSeeds)
setNbSuperSeedsFromHTML
public void setNbSuperSeedsFromHTML(String nbSuperSeeds)
setRankFromHTML
public void setRankFromHTML(String rank_str,
float divisor)
setRankFromHTML
public void setRankFromHTML(String rank_str)
getRank
public float getRank()
- Overrides:
getRank
in class Result
- Returns:
- a value between 0 and 1 representing the rank of the result
setPublishedDate
public void setPublishedDate(Date date)
setPublishedDateFromHTML
public void setPublishedDateFromHTML(String publishedDate)
setSizeFromHTML
public void setSizeFromHTML(String size)
setVotesFromHTML
public void setVotesFromHTML(String votes_str)
setVotesDownFromHTML
public void setVotesDownFromHTML(String votes_str)
setPrivateFromHTML
public void setPrivateFromHTML(String privateTorrent)
getVotes
public int getVotes()
- Specified by:
getVotes
in class Result
getVotesDown
public int getVotesDown()
- Specified by:
getVotesDown
in class Result
setCDPLink
public void setCDPLink(String cdpLink)
setDownloadButtonLink
public void setDownloadButtonLink(String downloadButtonLink)
setTorrentLink
public void setTorrentLink(String torrentLink)
getTorrentLink
public String getTorrentLink()
- Use this internally to get the current value set for the torrent link as opposed to
getDownloadLink that messes with the result
- Returns:
setPlayLink
public void setPlayLink(String playLink)
getContentType
public String getContentType()
- Specified by:
getContentType
in class Result
getPlayLink
public String getPlayLink()
- Specified by:
getPlayLink
in class Result
setCategory
public void setCategory(String category)
- Specified by:
setCategory
in class Result
setContentType
public void setContentType(String contentType)
- Specified by:
setContentType
in class Result
setDrmKey
public void setDrmKey(String drmKey)
setHash
public void setHash(String _hash)
getHash
public String getHash()
- Specified by:
getHash
in class Result
getCDPLink
public String getCDPLink()
- Specified by:
getCDPLink
in class Result
getCategory
public String getCategory()
- Specified by:
getCategory
in class Result
getDownloadLink
public String getDownloadLink()
- Specified by:
getDownloadLink
in class Result
getDownloadButtonLink
public String getDownloadButtonLink()
- Specified by:
getDownloadButtonLink
in class Result
getName
public String getName()
- Specified by:
getName
in class Result
getNbPeers
public int getNbPeers()
- Specified by:
getNbPeers
in class Result
getNbSeeds
public int getNbSeeds()
- Specified by:
getNbSeeds
in class Result
getNbSuperSeeds
public int getNbSuperSeeds()
- Specified by:
getNbSuperSeeds
in class Result
getPublishedDate
public Date getPublishedDate()
- Specified by:
getPublishedDate
in class Result
getSize
public long getSize()
- Specified by:
getSize
in class Result
getComments
public int getComments()
- Specified by:
getComments
in class Result
getSearchQuery
public String getSearchQuery()
- Specified by:
getSearchQuery
in class Result
isPrivate
public boolean isPrivate()
- Specified by:
isPrivate
in class Result
getDRMKey
public String getDRMKey()
- Specified by:
getDRMKey
in class Result
getAccuracy
public float getAccuracy()
- Specified by:
getAccuracy
in class Result