@leroy: thanks for reporting this!
@Raptor399: PMSEncoder modifies (i.e. replaces a Format in) the extensions List returned by PMS.getExtensions():
- Code: Select all
def extensions = pms.getExtensions()
extensions.set(0, new WEB()) // i.e. com.chocolatey.pmsencoder.WEB
https://github.com/chocolateboy/pmsenco ... roovy#L134If this List can no longer be modified in place (e.g. PMS.getExtensions() returns a copy), a) that's fine (see the comment in the link above and
here) b) there needs to be a way to (at least) replace or pre-empt a format - in this case the builtin WEB format and c) it's a breaking change.
If it's just the index change (i.e. sorting the formats in
alphabetical order, which moves WEB from 0 to 14), then it may or may not be a breaking change (I'm leaning towards it being a bug in PMSEncoder for relying on an implementation detail), but there should still be a sane way for plugins to replace/pre-empt builtin formats and/or add new formats.
If the WEB format is now matched last, it may break matching (i.e. be pre-empted by the extension matchers) for e.g.:
- Code: Select all
http://www.example.com/example.mp3
http://www.example.com/example.asf?format=.wmv
&c.