A seasoned podcast runs in its own order, and a season downloads whole (#482)

Asked for on the issue: lowest to highest, by season and then episode,
and a way to download every episode of a season.

sort=episode orders by season, episode, then date, with the episodes in
none last either way round; a podcast told in seasons opens in it until a
heading is clicked, and its seasons are offered lowest first.
download-latest takes a season and queues every file of it not on iPX,
first episode first, up to 300; the page asks first, since a season can
be gigabytes. The picked season scrolls into view in the picker, and the
count under the list is the season's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVAJFkEgz9cXG3jG1Zy
This commit is contained in:
2026-11-19 09:21:50 -05:00
parent 4eb6fbb286
commit c441215c62
12 changed files with 168 additions and 44 deletions

View File

@@ -780,11 +780,22 @@ nonisolated struct Ipx_HowMany: Sendable {
/// Clears the value of `count`. Subsequent reads from it will return its default value.
mutating func clearCount() {self._count = nil}
/// One season, all of it (#482): its number, or "none" for the episodes naming none.
var season: String {
get {_season ?? String()}
set {_season = newValue}
}
/// Returns true if `season` has been explicitly set.
var hasSeason: Bool {self._season != nil}
/// Clears the value of `season`. Subsequent reads from it will return its default value.
mutating func clearSeason() {self._season = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _count: Int64? = nil
fileprivate var _season: String? = nil
}
/// POST /api/feeds/{id}/download-latest, the answer.
@@ -3353,7 +3364,7 @@ nonisolated extension Ipx_FeedPatch: SwiftProtobuf.Message, SwiftProtobuf._Messa
nonisolated extension Ipx_HowMany: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".HowMany"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}count\0")
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}count\0\u{1}season\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
@@ -3362,6 +3373,7 @@ nonisolated extension Ipx_HowMany: SwiftProtobuf.Message, SwiftProtobuf._Message
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularInt64Field(value: &self._count) }()
case 2: try { try decoder.decodeSingularStringField(value: &self._season) }()
default: break
}
}
@@ -3375,11 +3387,15 @@ nonisolated extension Ipx_HowMany: SwiftProtobuf.Message, SwiftProtobuf._Message
try { if let v = self._count {
try visitor.visitSingularInt64Field(value: v, fieldNumber: 1)
} }()
try { if let v = self._season {
try visitor.visitSingularStringField(value: v, fieldNumber: 2)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: Ipx_HowMany, rhs: Ipx_HowMany) -> Bool {
if lhs._count != rhs._count {return false}
if lhs._season != rhs._season {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}