CjTUI update
This commit is contained in:
+4
-4
@@ -1848,7 +1848,7 @@ fn ui(frame: &mut Frame, app: &App) {
|
||||
|
||||
// Top
|
||||
//frame.render_widget(
|
||||
// Paragraph::new("cj-jftui").block(Block::bordered()),
|
||||
// Paragraph::new("cjtui").block(Block::bordered()),
|
||||
// panes.top,
|
||||
//);
|
||||
|
||||
@@ -1859,7 +1859,7 @@ fn ui(frame: &mut Frame, app: &App) {
|
||||
let [top_l, top_r] = Layout::horizontal([Constraint::Fill(1), Constraint::Length(40)])
|
||||
.areas(top_inner);
|
||||
|
||||
frame.render_widget(Paragraph::new("cj-jftui"), top_l);
|
||||
frame.render_widget(Paragraph::new("cjtui"), top_l);
|
||||
let server = app
|
||||
.config
|
||||
.as_ref()
|
||||
@@ -2170,7 +2170,7 @@ fn open_children(app: &mut App, title: String, query: core::jellyfin::LibraryQue
|
||||
fn mpv_socket_path() -> PathBuf {
|
||||
let mut p = std::env::temp_dir();
|
||||
let pid = std::process::id();
|
||||
p.push(format!("cj-jftui-mpv-{}.sock", pid));
|
||||
p.push(format!("cjtui-mpv-{}.sock", pid));
|
||||
p
|
||||
}
|
||||
|
||||
@@ -3570,7 +3570,7 @@ fn offline_list_dir(dir: &std::path::Path) -> Vec<OfflineEntry> {
|
||||
|
||||
|
||||
fn is_hidden_sidecar(name: &str) -> bool {
|
||||
name.ends_with(".cj-jftui.json") || name.ends_with(".aria2") || name.ends_with(".part")
|
||||
name.ends_with(".cjtui.json") || name.ends_with(".aria2") || name.ends_with(".part")
|
||||
}
|
||||
|
||||
// Returns true if this directory contains any "visible" file or any subdir that does.
|
||||
|
||||
Reference in New Issue
Block a user