git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some fixes: output types, libraries, remote
[fanfix.git]
/
src
/
be
/
nikiroo
/
fanfix
/
reader
/
TuiReader.java
diff --git
a/src/be/nikiroo/fanfix/reader/TuiReader.java
b/src/be/nikiroo/fanfix/reader/TuiReader.java
index 8456da3f29d1b02ad0f05958c774925a81d443de..c71cf95f5be244914eda25cd46e4d69493452852 100644
(file)
--- a/
src/be/nikiroo/fanfix/reader/TuiReader.java
+++ b/
src/be/nikiroo/fanfix/reader/TuiReader.java
@@
-1,12
+1,10
@@
package be.nikiroo.fanfix.reader;
import java.io.IOException;
package be.nikiroo.fanfix.reader;
import java.io.IOException;
-import java.util.List;
import jexer.TApplication;
import jexer.TApplication.BackendType;
import be.nikiroo.fanfix.Instance;
import jexer.TApplication;
import jexer.TApplication.BackendType;
import be.nikiroo.fanfix.Instance;
-import be.nikiroo.fanfix.data.MetaData;
/**
* This {@link Reader}is based upon the TUI widget library 'jexer'
/**
* This {@link Reader}is based upon the TUI widget library 'jexer'
@@
-49,6
+47,7
@@
class TuiReader extends BasicReader {
return backendType;
}
return backendType;
}
+ @Override
public void read() throws IOException {
try {
TuiReaderApplication app = new TuiReaderApplication(this,
public void read() throws IOException {
try {
TuiReaderApplication app = new TuiReaderApplication(this,
@@
-59,10
+58,10
@@
class TuiReader extends BasicReader {
}
}
}
}
+ @Override
public void browse(String source) {
public void browse(String source) {
- List<MetaData> metas = getLibrary().getListBySource(source);
try {
try {
- TuiReaderApplication app = new TuiReaderApplication(
metas, this
,
+ TuiReaderApplication app = new TuiReaderApplication(
this, source
,
guessBackendType());
new Thread(app).start();
} catch (Exception e) {
guessBackendType());
new Thread(app).start();
} catch (Exception e) {