Package Model

Examples of Model.TorrentVO


        List<TorrentVO> listaTorrentVO = new ArrayList<TorrentVO>();
        // Filtra somente os que estão completos
        List<Download> listaTorrent = filter(having(on(Download.class).isComplete(), Matchers.equalTo(true)), pluginInterface.getDownloadManager().getDownloads());
        // Pega somente o que tem Video
        for (Download item : listaTorrent) {
            TorrentVO torrentVO = torrentMovieToTorrentVO(item, pluginInterface);
            if (torrentVO != null)
                listaTorrentVO.add(torrentMovieToTorrentVO(item, pluginInterface));
        }
        return listaTorrentVO;
    }
View Full Code Here


            if ((!fileTorrent.isSkipped()) && (!fileTorrent.isDeleted()) && (FileUtils.isMovieFile(fileTorrent.getFile().getName()))) {
                VideoFileVO movieVO = VoUtils.fileToMovieVO(fileTorrent.getFile(), subTitleLanguage);
                movieList.add(movieVO);
            }
        }
        TorrentVO torrentVO = new TorrentVO();
        torrentVO.setCategory(download.getAttribute(getCategoryAttr(pluginInterface)));
        torrentVO.setTorrentName(download.getTorrent().getName());
        torrentVO.setVideoFileList(movieList);
        return torrentVO;
    }
View Full Code Here

    }

    @Override
    public void onCompletion(Download download) {
        // Terminou de baixar o torrent, agora pego as legendas
        TorrentVO torrentVO = TorrentUtils.torrentMovieToTorrentVO(download, _pluginInterface);
        DownloadThread downloadThread = new DownloadThread(_pluginInterface, torrentVO);
        new Thread(downloadThread).start();
    }
View Full Code Here

        // Se mudou de categoria e estã completo, vejo se agora tenho que pegar legenda
        // Se não tem filtro por categoria ou não está completo cai fora, o evento onCompletion vai fazer o trabalho
        if ((_configManager.getCategoryAll()) || (!download.isComplete()))
            return;
        // Se estiver completo pego as legendas
        TorrentVO torrentVO = TorrentUtils.torrentMovieToTorrentVO(download, _pluginInterface);
        DownloadThread downloadThread = new DownloadThread(_pluginInterface, torrentVO);
        new Thread(downloadThread).start();
    }
View Full Code Here

TOP

Related Classes of Model.TorrentVO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.