filebot

Print Missing Episodes

Aug 6th, 2013
443
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.42 KB | None | 0 0
  1. args.getFiles{ it.isVideo() && parseEpisodeNumber(it) && detectSeriesName(it) }.groupBy{ detectSeriesName(it) }.each{ series, files ->
  2.    fetchEpisodeList(query:series, format:'{n}\t{sxe}\t{t}')?.collect{ it.split('\t') }.each{ elf ->
  3.       if (!(elf[0] == series && files.find{ parseEpisodeNumber(elf[1]) == parseEpisodeNumber(it)}) && parseEpisodeNumber(elf[1]).season > 0) {
  4.          println elf.join(' - ')
  5.       }
  6.    }
  7. }
Add Comment
Please, Sign In to add comment