Schedule: "waiting · searched N min ago" and "release rejected" (with AnimeFlow's reason) from its new episode fields
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a407d3cbb0
commit
572104f49e
5 files changed
+37
-7
No files matched your search
@@ -210,8 +210,11 @@ class AnimeFlowEpisode {
|
||||
final EpisodeStatus status;
|
||||
/// 0..1, only while downloading.
|
||||
final double? progress;
|
||||
/// Only when failed.
|
||||
/// Why it failed; for a missing one with rejected releases, a
|
||||
/// ready-to-show sentence ("2 release(s) found, rejected: …").
|
||||
final String? reason;
|
||||
/// Last search for a monitored, not yet downloaded episode.
|
||||
final DateTime? lastSearchedAt;
|
||||
|
||||
const AnimeFlowEpisode({
|
||||
required this.season,
|
||||
@@ -224,6 +227,7 @@ class AnimeFlowEpisode {
|
||||
required this.status,
|
||||
this.progress,
|
||||
this.reason,
|
||||
this.lastSearchedAt,
|
||||
});
|
||||
|
||||
static AnimeFlowEpisode fromJson(Map j) => AnimeFlowEpisode(
|
||||
@@ -239,6 +243,7 @@ class AnimeFlowEpisode {
|
||||
status: EpisodeStatus.parse(j['status']),
|
||||
progress: (j['progress'] as num?)?.toDouble(),
|
||||
reason: _str(j['reason']),
|
||||
lastSearchedAt: _time(j['last_searched_at']),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user