1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-04 08:25:03 -05:00

* fix local file script call

* stop any unnecessary scraping of subscene
This commit is contained in:
Reinhard Pointner 2012-04-09 14:37:16 +00:00
parent 32b2d35e0c
commit ec796fc478
2 changed files with 15 additions and 14 deletions

View File

@ -9,6 +9,7 @@ import java.io.File;
import java.io.FileNotFoundException; import java.io.FileNotFoundException;
import java.net.URI; import java.net.URI;
import java.net.URISyntaxException; import java.net.URISyntaxException;
import java.net.URL;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Locale; import java.util.Locale;
@ -145,8 +146,8 @@ public class ArgumentBean {
public URI getScriptLocation() { public URI getScriptLocation() {
try { try {
return new URI(script); return new URL(script).toURI();
} catch (URISyntaxException eu) { } catch (Exception eu) {
if (script.startsWith("script://")) { if (script.startsWith("script://")) {
try { try {
return new URI("script", script.substring(9), null, null, null); return new URI("script", script.substring(9), null, null, null);

View File

@ -87,7 +87,7 @@ public class SubsceneSubtitleDescriptor implements SubtitleDescriptor {
@Override @Override
public String getPath() { public String getPath() {
return String.format("%s.%s", getName(), getSubtitleInfo().get("typeId")); return String.format("%s.%s", getName(), subtitleInfo == null ? null : subtitleInfo.get("typeId"));
} }