mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 16:28:51 -05:00
* fix local file script call
* stop any unnecessary scraping of subscene
This commit is contained in:
parent
32b2d35e0c
commit
ec796fc478
@ -9,6 +9,7 @@ import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.net.URI;
|
||||
import java.net.URISyntaxException;
|
||||
import java.net.URL;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
@ -145,8 +146,8 @@ public class ArgumentBean {
|
||||
|
||||
public URI getScriptLocation() {
|
||||
try {
|
||||
return new URI(script);
|
||||
} catch (URISyntaxException eu) {
|
||||
return new URL(script).toURI();
|
||||
} catch (Exception eu) {
|
||||
if (script.startsWith("script://")) {
|
||||
try {
|
||||
return new URI("script", script.substring(9), null, null, null);
|
||||
|
@ -87,7 +87,7 @@ public class SubsceneSubtitleDescriptor implements SubtitleDescriptor {
|
||||
|
||||
@Override
|
||||
public String getPath() {
|
||||
return String.format("%s.%s", getName(), getSubtitleInfo().get("typeId"));
|
||||
return String.format("%s.%s", getName(), subtitleInfo == null ? null : subtitleInfo.get("typeId"));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user