mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-10 14:31:04 -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();
|
Episode e = getEpisode();
|
||||||
XEM origin = XEM.forName(e.getSeriesInfo().getDatabase());
|
XEM origin = XEM.forName(e.getSeriesInfo().getDatabase());
|
||||||
XEM destination = XEM.forName(k);
|
XEM destination = XEM.forName(k);
|
||||||
|
if (origin == destination) {
|
||||||
|
return e;
|
||||||
|
}
|
||||||
return origin.map(e, destination).orElse(e);
|
return origin.map(e, destination).orElse(e);
|
||||||
}
|
}
|
||||||
return undefined(k);
|
return undefined(k);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user