コード例 #1
0
 @Override
 protected SearchResult fromRssItemToSearchResult(Item item) {
   BitSnoopItem theItem = (BitSnoopItem) item;
   return new SearchResult(
       item.getTitle(),
       theItem.getEnclosureUrl(),
       item.getLink(),
       FileSizeConverter.getSize(theItem.getSize()),
       item.getPubdate(),
       theItem.getSeeders(),
       theItem.getLeechers());
 }
コード例 #2
0
  protected SearchResult fromRssItemToSearchResult(Item item) {

    LimeTorrentsItem theItem = (LimeTorrentsItem) item;
    return new SearchResult(
        item.getTitle(),
        item.getEnclosureUrl(),
        item.getLink(),
        FileSizeConverter.getSize(theItem.size),
        item.getPubdate(),
        theItem.seeders,
        theItem.leechers);
  }