summaryrefslogtreecommitdiff
path: root/Sora/Data
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-02-25 21:22:39 -0800
committerFuwn <[email protected]>2025-02-25 21:22:39 -0800
commit6ccdd0fa1c0063e8f3a5ee7d8e754f2012f1dcdd (patch)
tree1ff49cd2094035fd8f5a2d34c95af9d0fb67ac6c /Sora/Data
parentfeat: Development commit (diff)
downloadsora-testing-6ccdd0fa1c0063e8f3a5ee7d8e754f2012f1dcdd.tar.xz
sora-testing-6ccdd0fa1c0063e8f3a5ee7d8e754f2012f1dcdd.zip
feat: Development commit
Diffstat (limited to 'Sora/Data')
-rw-r--r--Sora/Data/Booru/BooruManager.swift13
1 files changed, 5 insertions, 8 deletions
diff --git a/Sora/Data/Booru/BooruManager.swift b/Sora/Data/Booru/BooruManager.swift
index 25a507d..b3cd6c7 100644
--- a/Sora/Data/Booru/BooruManager.swift
+++ b/Sora/Data/Booru/BooruManager.swift
@@ -175,15 +175,12 @@ class BooruManager: ObservableObject {
}
private func urlForTags(limit: Int) -> URL? {
- switch provider {
- case .yandere:
- URL(string: "https://yande.re/tag.xml?limit=\(limit)")
-
- case .safebooru:
- URL(string: "https://safebooru.org/index.php?page=dapi&s=tag&q=index&limit=\(limit)")
+ switch flavor {
+ case .moebooru:
+ URL(string: "https://\(domain)/tag.xml?limit=\(limit)")
- default:
- nil
+ case .gelbooru:
+ URL(string: "https://\(domain)/index.php?page=dapi&s=tag&q=index&limit=\(limit)")
}
}