diff options
| author | Fuwn <[email protected]> | 2025-02-27 16:03:31 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-02-27 16:03:31 -0800 |
| commit | 2d49e952cf6dc13214a92d50a84ceee9f5bc5117 (patch) | |
| tree | 3256ee3312ab79db74f06d7e32efd5b9906ffb43 /Sora/Data/Booru/Post/BooruPostXMLParser.swift | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-2d49e952cf6dc13214a92d50a84ceee9f5bc5117.tar.xz sora-testing-2d49e952cf6dc13214a92d50a84ceee9f5bc5117.zip | |
feat: Development commit
Diffstat (limited to 'Sora/Data/Booru/Post/BooruPostXMLParser.swift')
| -rw-r--r-- | Sora/Data/Booru/Post/BooruPostXMLParser.swift | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Sora/Data/Booru/Post/BooruPostXMLParser.swift b/Sora/Data/Booru/Post/BooruPostXMLParser.swift index 41ad25d..fe14b7d 100644 --- a/Sora/Data/Booru/Post/BooruPostXMLParser.swift +++ b/Sora/Data/Booru/Post/BooruPostXMLParser.swift @@ -87,12 +87,10 @@ class BooruPostXMLParser: NSObject, XMLParserDelegate { change: change, md5: md5, creatorID: creatorId, - hasChildren: hasChildrenStr == "true", + authorID: attributeDict["author_id"], createdAt: parseCreatedAt(createdAt)!, status: status, source: source, - hasNotes: (attributeDict["has_notes"] ?? "false") == "true", - hasComments: (attributeDict["has_comments"] ?? "false") == "true", previewWidth: previewWidth, previewHeight: previewHeight ) @@ -139,7 +137,6 @@ class BooruPostXMLParser: NSObject, XMLParserDelegate { let change = currentPostData["change"], let md5 = currentPostData["md5"], let creatorId = currentPostData["creator_id"], - let hasChildrenStr = currentPostData["has_children"], let createdAtStr = currentPostData["created_at"], let createdAt = parseCreatedAt(createdAtStr), let status = currentPostData["status"], @@ -170,12 +167,10 @@ class BooruPostXMLParser: NSObject, XMLParserDelegate { change: change, md5: md5, creatorID: creatorId, - hasChildren: hasChildrenStr == "true", + authorID: currentPostData["author_id"], createdAt: createdAt, status: status, source: source, - hasNotes: (currentPostData["has_notes"] ?? "false") == "true", - hasComments: (currentPostData["has_comments"] ?? "false") == "true", previewWidth: previewWidth, previewHeight: previewHeight ) |