lib/mkv2m4v/track_ranker.rb in mkv2m4v-0.3.0 vs lib/mkv2m4v/track_ranker.rb in mkv2m4v-0.3.1
- old
+ new
@@ -50,9 +50,10 @@
score += 4 if ["DTS", "AC-3"].include?(track.format)
score += 2 if track.format == "AAC"
score += (track.channel_count || 0) / 8.0 * 2.0
score += (track.bit_rate_kbps || 0) / 1500.0 * 2.0
score += 4 if language_match?(track)
+ score *= -1 unless ["DTS", "AC-3", "AAC"].include?(track.format)
score
end
end
class TextRanker < TrackRanker