Fix published date handling in Piped API

Clear the published string when a proper publishedAt date is extracted from uploadDate to prevent duplicate or inconsistent date display. Only fallback to string-based published date when no structured date is available.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Arkadiusz Fal
2025-11-09 14:04:07 +01:00
parent 874b976da9
commit 735fc0cb6c

View File

@@ -556,7 +556,8 @@ final class PipedAPI: Service, ObservableObject, VideosAPI {
let formattedDate = dateFormatter.date(from: date)
{
publishedAt = formattedDate
} else {
published = ""
} else if published.isNil {
published = (details["uploadedDate"] ?? details["uploadDate"])?.string ?? ""
}