Package Model

Examples of Model.VideoFileVO


   
    public static VideoFileVO fileToMovieVO(File diskFile, SubTitleLanguage subTitleLanguage) {
        String regexTvShow = "(.*)\\.[sS](\\d{2})[eExX](\\d{2,4}).*(xvid|x264|h.264).(.[^\\.]*).*";
        Pattern patternTvShow = Pattern.compile(regexTvShow, Pattern.CASE_INSENSITIVE);

        VideoFileVO videoFileVO = new VideoFileVO();
        videoFileVO.setFileName(diskFile.getName());
        videoFileVO.setPathDir(FileUtils.getPathWithoutFileName(diskFile.getPath()));
        videoFileVO.setHasSubTitle(FileUtils.hasSubTitleFile(videoFileVO.getPathDir(), videoFileVO.getFileName(), subTitleLanguage));
        videoFileVO.setSize(diskFile.length());
        videoFileVO.setFile(diskFile);
        videoFileVO.setIsTvShow(patternTvShow.matcher(videoFileVO.getFileName()).find());
        return videoFileVO;
    }
View Full Code Here


        if (config.getUseLanguageOnSubtitle())
            subTitleLanguage = config.getLanguageOnSubtitle();

        for (DiskManagerFileInfo fileTorrent : download.getDiskManagerFileInfo()) {
            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)));
View Full Code Here

TOP

Related Classes of Model.VideoFileVO

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.