git://git.nikiroo.be
/
nikiroo-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve new conversion tests
[nikiroo-utils.git]
/
src
/
be
/
nikiroo
/
fanfix
/
reader
/
BasicReader.java
diff --git
a/src/be/nikiroo/fanfix/reader/BasicReader.java
b/src/be/nikiroo/fanfix/reader/BasicReader.java
index 4b444940c11a07cfeb15a108171126c4bfe14baf..9d5d5bb80b1b9206ec2d918293c7ff23da5ab1eb 100644
(file)
--- a/
src/be/nikiroo/fanfix/reader/BasicReader.java
+++ b/
src/be/nikiroo/fanfix/reader/BasicReader.java
@@
-71,7
+71,7
@@
public abstract class BasicReader implements Reader {
}
@Override
}
@Override
- public MetaData getMeta() {
+ public
synchronized
MetaData getMeta() {
return meta;
}
return meta;
}
@@
-98,7
+98,7
@@
public abstract class BasicReader implements Reader {
throw new IOException("URL not supported: " + source.toString());
}
throw new IOException("URL not supported: " + source.toString());
}
- story = support.process(
source,
pg);
+ story = support.process(pg);
if (story == null) {
throw new IOException(
"Cannot retrieve story from external source: "
if (story == null) {
throw new IOException(
"Cannot retrieve story from external source: "
@@
-264,7
+264,8
@@
public abstract class BasicReader implements Reader {
protected void start(File target, String program) throws IOException {
if (program == null) {
boolean ok = false;
protected void start(File target, String program) throws IOException {
if (program == null) {
boolean ok = false;
- for (String starter : new String[] { "xdg-open", "start", "run" }) {
+ for (String starter : new String[] { "xdg-open", "open", "see",
+ "start", "run" }) {
try {
Runtime.getRuntime().exec(
new String[] { starter, target.getAbsolutePath() });
try {
Runtime.getRuntime().exec(
new String[] { starter, target.getAbsolutePath() });