forked from Furumi/furumi-tui
Recognize subscriptions under a feed's newer address
Subscribing to an older address whose feed announces a newer one this device already follows (itunes:new-feed-url without a redirect) reports the existing subscription instead of adding a second one, and a card whose feed moved to a followed address reads «Уже подписан» once its episodes were read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
744d56e06b
commit
fd6827126f
8 files changed
+198
-25
No files matched your search
@@ -351,6 +351,7 @@ mod tests {
|
||||
duration_ms: Some(2_700_000),
|
||||
}],
|
||||
moved_to: None,
|
||||
subscribed_as: None,
|
||||
})),
|
||||
scroll: 0,
|
||||
});
|
||||
|
||||
@@ -24,7 +24,8 @@ pub(super) fn draw(
|
||||
preview: Option<&Loadable<FeedPreview>>,
|
||||
scroll: u16,
|
||||
) {
|
||||
let subscribed = state.podcasts.subscribed_to(hit);
|
||||
let subscribed =
|
||||
crate::app::update::podcast_discovery::subscribed_id(state, hit, preview).is_some();
|
||||
let subscribing = state.podcasts.subscribing;
|
||||
let lines = card_lines(state, hit, preview, subscribed, subscribing);
|
||||
|
||||
|
||||
Reference in new issue
Block a user