Class WebResult

java.lang.Object
com.biglybt.core.metasearch.Result
com.biglybt.core.metasearch.impl.web.WebResult
All Implemented Interfaces:
FilterableResult

public class WebResult extends Result
  • Field Details

    • searchQuery

      String searchQuery
    • rootPageURL

      String rootPageURL
    • basePageURL

      String basePageURL
    • dateParser

      DateParser dateParser
    • contentType

      String contentType
    • name

      String name
    • category

      String category
    • tags

      List<String> 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
    • uid

      String uid
    • hash

      String hash
  • Constructor Details

  • Method Details

    • setName

      public void setName(String name)
    • setNameFromHTML

      public void setNameFromHTML(String name)
    • setCommentsFromHTML

      public void setCommentsFromHTML(String comments)
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in class Result
    • setCategoryFromHTML

      public void setCategoryFromHTML(String category)
    • addTagFromHTML

      public void addTagFromHTML(String tag)
    • 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)
    • setNbCompleted

      public void setNbCompleted(int num)
    • 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)
    • getAssetDate

      public Date getAssetDate()
      Specified by:
      getAssetDate in class Result
    • setAssetDate

      public void setAssetDate(String str)
    • setSizeFromHTML

      public void setSizeFromHTML(String size, long minAcceptable)
    • 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)
    • getTorrentLinkRaw

      public String 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

      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 interface FilterableResult
      Specified by:
      getCategory in class Result
    • getTags

      public String[] getTags()
    • getDownloadLink

      public String getDownloadLink()
      Specified by:
      getDownloadLink in class Result
    • getDownloadButtonLink

      public String getDownloadButtonLink()
      Specified by:
      getDownloadButtonLink in class Result
    • getTorrentLink

      public String getTorrentLink()
      Specified by:
      getTorrentLink in class Result
    • reConstructLink

      private String reConstructLink(String link)
    • getName

      public String getName()
      Specified by:
      getName in interface FilterableResult
      Specified by:
      getName in class Result
    • getNbPeers

      public int getNbPeers()
      Specified by:
      getNbPeers in interface FilterableResult
      Specified by:
      getNbPeers in class Result
    • getNbSeeds

      public int getNbSeeds()
      Specified by:
      getNbSeeds in interface FilterableResult
      Specified by:
      getNbSeeds in class Result
    • getNbSuperSeeds

      public int getNbSuperSeeds()
      Specified by:
      getNbSuperSeeds in class Result
    • getNbCompleted

      public int getNbCompleted()
      Specified by:
      getNbCompleted in class Result
    • getPublishedDate

      public Date getPublishedDate()
      Specified by:
      getPublishedDate in class Result
    • getSize

      public long getSize()
      Specified by:
      getSize in interface FilterableResult
      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