feat: Added TUI and CLI support for viewing Artist history in Lidarr
This commit is contained in:
1 parent
8b9467bd39
commit
d7f0dd5950
66 files changed
+1843
-256
No files matched your search
+1
-2
@@ -17,6 +17,7 @@ expression: output
|
||||
|
||||
|
||||
|
||||
|
||||
╭─────────────────────────────────── Details ───────────────────────────────────╮
|
||||
│Source Title: Test source │
|
||||
│Event Type: grabbed │
|
||||
@@ -34,6 +35,4 @@ expression: output
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
╰─────────────────────────────────────────────────────────────────────────────────╯
|
||||
+1
-2
@@ -17,6 +17,7 @@ expression: output
|
||||
|
||||
|
||||
|
||||
|
||||
╭─────────────────────────────────── Details ───────────────────────────────────╮
|
||||
│Source Title: │
|
||||
│Event Type: unknown │
|
||||
@@ -34,6 +35,4 @@ expression: output
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
╰─────────────────────────────────────────────────────────────────────────────────╯
|
||||
@@ -95,7 +95,7 @@ impl DrawUi for EpisodeDetailsUi {
|
||||
draw_manual_episode_search_confirm_prompt(f, app);
|
||||
}
|
||||
ActiveSonarrBlock::EpisodeHistoryDetails => {
|
||||
draw_history_item_details_popup(f, app, popup_area);
|
||||
draw_history_item_details_popup(f, app);
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
@@ -347,7 +347,7 @@ fn draw_episode_history_table(f: &mut Frame<'_>, app: &mut App<'_>, area: Rect)
|
||||
}
|
||||
}
|
||||
|
||||
fn draw_history_item_details_popup(f: &mut Frame<'_>, app: &mut App<'_>, area: Rect) {
|
||||
fn draw_history_item_details_popup(f: &mut Frame<'_>, app: &mut App<'_>) {
|
||||
let current_selection =
|
||||
if let Some(season_details_modal) = app.data.sonarr_data.season_details_modal.as_ref() {
|
||||
if let Some(episode_details_modal) = season_details_modal.episode_details_modal.as_ref() {
|
||||
@@ -374,7 +374,7 @@ fn draw_history_item_details_popup(f: &mut Frame<'_>, app: &mut App<'_>, area: R
|
||||
.style(secondary_style())
|
||||
.alignment(Alignment::Left);
|
||||
|
||||
f.render_widget(Popup::new(message).size(Size::NarrowLongMessage), area);
|
||||
f.render_widget(Popup::new(message).size(Size::NarrowLongMessage), f.area());
|
||||
}
|
||||
|
||||
fn draw_episode_releases(f: &mut Frame<'_>, app: &mut App<'_>, area: Rect) {
|
||||
|
||||
@@ -117,7 +117,7 @@ impl DrawUi for SeasonDetailsUi {
|
||||
draw_manual_season_search_confirm_prompt(f, app);
|
||||
}
|
||||
ActiveSonarrBlock::SeasonHistoryDetails => {
|
||||
draw_history_item_details_popup(f, app, popup_area);
|
||||
draw_history_item_details_popup(f, app);
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
@@ -527,7 +527,7 @@ fn draw_manual_season_search_confirm_prompt(f: &mut Frame<'_>, app: &mut App<'_>
|
||||
}
|
||||
}
|
||||
|
||||
fn draw_history_item_details_popup(f: &mut Frame<'_>, app: &mut App<'_>, area: Rect) {
|
||||
fn draw_history_item_details_popup(f: &mut Frame<'_>, app: &mut App<'_>) {
|
||||
let current_selection =
|
||||
if let Some(season_details_modal) = app.data.sonarr_data.season_details_modal.as_ref() {
|
||||
if season_details_modal.season_history.is_empty() {
|
||||
@@ -550,7 +550,7 @@ fn draw_history_item_details_popup(f: &mut Frame<'_>, app: &mut App<'_>, area: R
|
||||
.style(secondary_style())
|
||||
.alignment(Alignment::Left);
|
||||
|
||||
f.render_widget(Popup::new(message).size(Size::NarrowLongMessage), area);
|
||||
f.render_widget(Popup::new(message).size(Size::NarrowLongMessage), f.area());
|
||||
}
|
||||
|
||||
fn decorate_with_row_style<'a>(
|
||||
|
||||
@@ -96,7 +96,7 @@ impl DrawUi for SeriesDetailsUi {
|
||||
);
|
||||
}
|
||||
ActiveSonarrBlock::SeriesHistoryDetails => {
|
||||
draw_history_item_details_popup(f, app, popup_area);
|
||||
draw_history_item_details_popup(f, app);
|
||||
}
|
||||
_ => (),
|
||||
};
|
||||
@@ -388,7 +388,7 @@ fn draw_series_history_table(f: &mut Frame<'_>, app: &mut App<'_>, area: Rect) {
|
||||
}
|
||||
}
|
||||
|
||||
fn draw_history_item_details_popup(f: &mut Frame<'_>, app: &mut App<'_>, area: Rect) {
|
||||
fn draw_history_item_details_popup(f: &mut Frame<'_>, app: &mut App<'_>) {
|
||||
let current_selection =
|
||||
if let Some(series_history_items) = app.data.sonarr_data.series_history.as_ref() {
|
||||
if series_history_items.is_empty() {
|
||||
@@ -408,5 +408,5 @@ fn draw_history_item_details_popup(f: &mut Frame<'_>, app: &mut App<'_>, area: R
|
||||
.style(secondary_style())
|
||||
.alignment(Alignment::Left);
|
||||
|
||||
f.render_widget(Popup::new(message).size(Size::NarrowLongMessage), area);
|
||||
f.render_widget(Popup::new(message).size(Size::NarrowLongMessage), f.area());
|
||||
}
|
||||
+18
-18
@@ -18,24 +18,24 @@ expression: output
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ ╭──────────────────────── Details ─────────────────────────╮ │
|
||||
│ │Source Title: │ │
|
||||
│ │Event Type: unknown │ │
|
||||
│ │ │ │
|
||||
│ │No additional data available │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ ╰────────────────────────────────────────────────────────────╯ │
|
||||
│ │
|
||||
│ ╭─────────────────────────────────── Details ───────────────────────────────────╮ │
|
||||
│ │Source Title: │ │
|
||||
│ │Event Type: unknown │ │
|
||||
│ │ │ │
|
||||
│ │No additional data available │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ ╰─────────────────────────────────────────────────────────────────────────────────╯ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
|
||||
+18
-18
@@ -18,24 +18,24 @@ expression: output
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ ╭──────────────────────── Details ─────────────────────────╮ │
|
||||
│ │Source Title: Test source │ │
|
||||
│ │Event Type: grabbed │ │
|
||||
│ │Indexer: │ │
|
||||
│ │Release Group: │ │
|
||||
│ │Series Match Type: │ │
|
||||
│ │NZB Info URL: │ │
|
||||
│ │Download Client Name: │ │
|
||||
│ │Age: 0 days │ │
|
||||
│ │Published Date: 1970-01-01 00:00:00 UTC │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ ╰────────────────────────────────────────────────────────────╯ │
|
||||
│ │
|
||||
│ ╭─────────────────────────────────── Details ───────────────────────────────────╮ │
|
||||
│ │Source Title: Test source │ │
|
||||
│ │Event Type: grabbed │ │
|
||||
│ │Indexer: │ │
|
||||
│ │Release Group: │ │
|
||||
│ │Series Match Type: │ │
|
||||
│ │NZB Info URL: │ │
|
||||
│ │Download Client Name: │ │
|
||||
│ │Age: 0 days │ │
|
||||
│ │Published Date: 1970-01-01 00:00:00 UTC │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ ╰─────────────────────────────────────────────────────────────────────────────────╯ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
|
||||
+18
-18
@@ -18,24 +18,24 @@ expression: output
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ ╭──────────────────────────── Details ────────────────────────────╮ │
|
||||
│ │Source Title: │ │
|
||||
│ │Event Type: unknown │ │
|
||||
│ │ │ │
|
||||
│ │No additional data available │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ ╰───────────────────────────────────────────────────────────────────╯ │
|
||||
│ │
|
||||
│ ╭─────────────────────────────────── Details ───────────────────────────────────╮ │
|
||||
│ │Source Title: │ │
|
||||
│ │Event Type: unknown │ │
|
||||
│ │ │ │
|
||||
│ │No additional data available │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ ╰─────────────────────────────────────────────────────────────────────────────────╯ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
|
||||
+18
-18
@@ -18,24 +18,24 @@ expression: output
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ ╭──────────────────────────── Details ────────────────────────────╮ │
|
||||
│ │Source Title: │ │
|
||||
│ │Event Type: unknown │ │
|
||||
│ │ │ │
|
||||
│ │No additional data available │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ ╰───────────────────────────────────────────────────────────────────╯ │
|
||||
│ │
|
||||
│ ╭─────────────────────────────────── Details ───────────────────────────────────╮ │
|
||||
│ │Source Title: │ │
|
||||
│ │Event Type: unknown │ │
|
||||
│ │ │ │
|
||||
│ │No additional data available │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ ╰─────────────────────────────────────────────────────────────────────────────────╯ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
|
||||
+18
-18
@@ -18,24 +18,24 @@ expression: output
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ ╭──────────────────────────── Details ────────────────────────────╮ │
|
||||
│ │Source Title: Test source │ │
|
||||
│ │Event Type: grabbed │ │
|
||||
│ │Indexer: │ │
|
||||
│ │Release Group: │ │
|
||||
│ │Series Match Type: │ │
|
||||
│ │NZB Info URL: │ │
|
||||
│ │Download Client Name: │ │
|
||||
│ │Age: 0 days │ │
|
||||
│ │Published Date: 1970-01-01 00:00:00 UTC │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ ╰───────────────────────────────────────────────────────────────────╯ │
|
||||
│ │
|
||||
│ ╭─────────────────────────────────── Details ───────────────────────────────────╮ │
|
||||
│ │Source Title: Test source │ │
|
||||
│ │Event Type: grabbed │ │
|
||||
│ │Indexer: │ │
|
||||
│ │Release Group: │ │
|
||||
│ │Series Match Type: │ │
|
||||
│ │NZB Info URL: │ │
|
||||
│ │Download Client Name: │ │
|
||||
│ │Age: 0 days │ │
|
||||
│ │Published Date: 1970-01-01 00:00:00 UTC │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ │ │ │
|
||||
│ ╰─────────────────────────────────────────────────────────────────────────────────╯ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
|
||||
+19
-19
@@ -18,25 +18,25 @@ expression: output
|
||||
│Quality Profile: Bluray-1080p │
|
||||
│Language Profile: English │
|
||||
│Monitored: Yes │
|
||||
│Size on Disk: 59.51 GB │
|
||||
│ ╭─────────────────────────────── Details ───────────────────────────────╮ │
|
||||
│ │Source Title: │ │
|
||||
│ │Event Type: unknown │ │
|
||||
│╭ Series Details ─────────────────│ │───────────────────────────────────╮│
|
||||
││ Seasons │ History │No additional data available │ ││
|
||||
││───────────────────────────────────│ │───────────────────────────────────││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ ╰─────────────────────────────────────────────────────────────────────────╯ ││
|
||||
│Size on Disk: 59.51 GB ╭─────────────────────────────────── Details ───────────────────────────────────╮ │
|
||||
│ │Source Title: │ │
|
||||
│ │Event Type: unknown │ │
|
||||
│ │ │ │
|
||||
│╭ Series Details ─────────────│No additional data available │───────────────────────────────╮│
|
||||
││ Seasons │ History │ │ ││
|
||||
││───────────────────────────────│ │───────────────────────────────││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ ╰─────────────────────────────────────────────────────────────────────────────────╯ ││
|
||||
││ ││
|
||||
││ ││
|
||||
││ ││
|
||||
││ ││
|
||||
|
||||
+19
-19
@@ -18,25 +18,25 @@ expression: output
|
||||
│Quality Profile: Bluray-1080p │
|
||||
│Language Profile: English │
|
||||
│Monitored: Yes │
|
||||
│Size on Disk: 59.51 GB │
|
||||
│ ╭─────────────────────────────── Details ───────────────────────────────╮ │
|
||||
│ │Source Title: Test source │ │
|
||||
│ │Event Type: grabbed │ │
|
||||
│╭ Series Details ─────────────────│Indexer: │───────────────────────────────────╮│
|
||||
││ Seasons │ History │Release Group: │ ││
|
||||
││───────────────────────────────────│Series Match Type: │───────────────────────────────────││
|
||||
││ Source Title ▼ │NZB Info URL: │ Date ││
|
||||
││=> Test source │Download Client Name: │ 2024-02-10 07:28:45 UTC ││
|
||||
││ │Age: 0 days │ ││
|
||||
││ │Published Date: 1970-01-01 00:00:00 UTC │ ││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ ╰─────────────────────────────────────────────────────────────────────────╯ ││
|
||||
│Size on Disk: 59.51 GB ╭─────────────────────────────────── Details ───────────────────────────────────╮ │
|
||||
│ │Source Title: Test source │ │
|
||||
│ │Event Type: grabbed │ │
|
||||
│ │Indexer: │ │
|
||||
│╭ Series Details ─────────────│Release Group: │───────────────────────────────╮│
|
||||
││ Seasons │ History │Series Match Type: │ ││
|
||||
││───────────────────────────────│NZB Info URL: │───────────────────────────────││
|
||||
││ Source Title ▼ │Download Client Name: │ Date ││
|
||||
││=> Test source │Age: 0 days │ 2024-02-10 07:28:45 UTC ││
|
||||
││ │Published Date: 1970-01-01 00:00:00 UTC │ ││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ │ │ ││
|
||||
││ ╰─────────────────────────────────────────────────────────────────────────────────╯ ││
|
||||
││ ││
|
||||
││ ││
|
||||
││ ││
|
||||
││ ││
|
||||
|
||||
Reference in new issue
Block a user