示例#1
0
 public static List<Path> getFullSeasonEpisodes(String show, Range range) throws IOException {
   List<Path> list = new ArrayList<>(NUM_EPISODES * (range.getEnd() - range.getStart() + 1));
   for (Integer season : range) {
     list.addAll(TV_PATH.listPaths(show, season));
   }
   return list;
 }
示例#2
0
 public static List<EpisodeMatch> getFullSeasonEpisodeMatches(String show, Range range) {
   List<EpisodeMatch> list =
       new ArrayList<>(NUM_EPISODES * (range.getEnd() - range.getStart() + 1));
   for (Integer season : range) {
     for (int i = 1; i <= NUM_EPISODES; i++) {
       list.add(getEpisodeMatch(show, season, i));
     }
   }
   return list;
 }