display IMDB id for movies

This commit is contained in:
2021-05-19 09:27:44 +02:00
parent 5a6f32fc7d
commit 24ba0f4545
10 changed files with 17 additions and 9 deletions
@@ -38,7 +38,7 @@ public class indexForwardComposer extends GenericForwardComposer<Component>
try
{
File file = new File("redir");
File file = new File(System.getProperty("java.io.tmpdir") + "/redir");
BufferedReader reader = new BufferedReader(new FileReader(file));
redir = reader.readLine();
reader.close();
@@ -70,6 +70,9 @@ public class movieDetailsForwardComposer extends GenericForwardComposer<Componen
@Wire
protected Radiogroup progress;
@Wire
protected Textbox imdbID;
@Wire
protected Hbox buttons;
@@ -258,5 +261,6 @@ public class movieDetailsForwardComposer extends GenericForwardComposer<Componen
localPath.setValue(m_movie.getLocalPath());
resolution.setValue(m_movie.getResolution());
progress.setSelectedIndex(m_movie.getState() - 1);
imdbID.setValue(m_movie.getIMDBID());
}
}
@@ -119,7 +119,7 @@ public class movieDiscoverSelectorComposer extends SelectorComposer<Component>
}
}
}
OutputStream tempFile = new FileOutputStream("redir");
OutputStream tempFile = new FileOutputStream(System.getProperty("java.io.tmpdir") + "/redir");
PrintStream printStream = new PrintStream(tempFile);
printStream.print("movie");
printStream.close();
@@ -108,7 +108,7 @@ public class movieSearchSelectorComposer extends SelectorComposer<Component>
}
}
}
OutputStream tempFile = new FileOutputStream("redir");
OutputStream tempFile = new FileOutputStream(System.getProperty("java.io.tmpdir") + "/redir");
PrintStream printStream = new PrintStream(tempFile);
printStream.print("movie");
printStream.close();
@@ -196,7 +196,7 @@ public class movieUpdateSelectorComposer extends SelectorComposer<Component>
movieProgressLabel.setValue("Finish!");
updateMovie.detach();
OutputStream tempFile = new FileOutputStream("redir");
OutputStream tempFile = new FileOutputStream(System.getProperty("java.io.tmpdir") + "/redir");
PrintStream printStream = new PrintStream(tempFile);
printStream.print("movie");
printStream.close();
@@ -97,7 +97,7 @@ public class movieUtils
movie.setOverview(rs.getString("overview"));
movie.setReleaseDate(rs.getDate("releaseDate"));
movie.setGenre(rs.getString("genre"));
movie.setIMDBID(rs.getString("IMDBID"));
movie.setIMDBID(rs.getString("imdbid"));
movie.setOriginalLanguage(rs.getString("originalLanguage"));
movie.setPopularity(rs.getDouble("popularity"));
movie.setProductionCompanies(rs.getString("productionCompanies"));
@@ -118,7 +118,7 @@ public class serieDiscoverSelectorComposer extends SelectorComposer<Component>
}
}
}
OutputStream tempFile = new FileOutputStream("redir");
OutputStream tempFile = new FileOutputStream(System.getProperty("java.io.tmpdir") + "/redir");
PrintStream printStream = new PrintStream(tempFile);
printStream.print("serie");
printStream.close();
@@ -101,7 +101,7 @@ public class serieSearchSelectorComposer extends SelectorComposer<Component>
}
}
}
OutputStream tempFile = new FileOutputStream("redir");
OutputStream tempFile = new FileOutputStream(System.getProperty("java.io.tmpdir") + "/redir");
PrintStream printStream = new PrintStream(tempFile);
printStream.print("serie");
printStream.close();
@@ -218,7 +218,7 @@ public class serieUpdateSelectorComposer extends SelectorComposer<Component>
serieProgressLabel.setValue("Finish!");
updateSerie.detach();
OutputStream tempFile = new FileOutputStream("redir");
OutputStream tempFile = new FileOutputStream(System.getProperty("java.io.tmpdir") + "/redir");
PrintStream printStream = new PrintStream(tempFile);
printStream.print("serie");
printStream.close();
+5 -1
View File
@@ -10,7 +10,7 @@
<style>
.grid {
display: grid;
grid-template-columns: 4fr 1fr 1fr;
grid-template-columns: 4fr 1fr 1fr 1fr;
grid-gap: 10px;
justify-items: center;
}
@@ -93,6 +93,7 @@
<label value="Local Path"/>
<label value="Resolution"/>
<label value="State"/>
<label value="IMDB-ID"/>
<textbox id="localPath"
width="100%"
tabindex="2"/>
@@ -106,6 +107,9 @@
<radio label="done"/>
</radiogroup>
</vlayout>
<textbox id="imdbID"
width="100%"
tabindex="5"/>
</div>
</nodom>
</groupbox>