Skip to content

Commit

Permalink
Disallow subtitle files to generate NFO
Browse files Browse the repository at this point in the history
  • Loading branch information
nattadasu committed Nov 22, 2024
1 parent a84bef0 commit 8428c8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion post_xmbcnfo.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ source, target, metadata ->
// sanity check, fail when its not an episode and video file
if (type.toString() != "Episode" || !vf) {
if (type.toString() != "Episode" || !vf || ext =~ /(ass|srt|ssa|vtt)/) {
return null
}
def tdir = target.dir
Expand Down

0 comments on commit 8428c8e

Please sign in to comment.