mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-09 22:09:47 -04:00
Short-circuit if origin and destination is the same
This commit is contained in:
parent
658c940c45
commit
2b5e2a0785
@ -798,6 +798,9 @@ public class MediaBindingBean {
|
||||
Episode e = getEpisode();
|
||||
XEM origin = XEM.forName(e.getSeriesInfo().getDatabase());
|
||||
XEM destination = XEM.forName(k);
|
||||
if (origin == destination) {
|
||||
return e;
|
||||
}
|
||||
return origin.map(e, destination).orElse(e);
|
||||
}
|
||||
return undefined(k);
|
||||
|
Loading…
x
Reference in New Issue
Block a user