Mercurial > minori
comparison src/services/anilist.cc @ 393:963047512d34
*: clang-format
| author | Paper <paper@tflc.us> |
|---|---|
| date | Fri, 07 Nov 2025 07:16:15 -0500 |
| parents | 47c9f8502269 |
| children |
comparison
equal
deleted
inserted
replaced
| 392:a72d6d7b3568 | 393:963047512d34 |
|---|---|
| 137 { | 137 { |
| 138 if (anime.GetUserIsRewatching() && anime.GetUserStatus() == Anime::ListStatus::Current) | 138 if (anime.GetUserIsRewatching() && anime.GetUserStatus() == Anime::ListStatus::Current) |
| 139 return "REWATCHING"; | 139 return "REWATCHING"; |
| 140 | 140 |
| 141 switch (anime.GetUserStatus()) { | 141 switch (anime.GetUserStatus()) { |
| 142 case Anime::ListStatus::Planning: return "PLANNING"; | 142 case Anime::ListStatus::Planning: |
| 143 case Anime::ListStatus::Completed: return "COMPLETED"; | 143 return "PLANNING"; |
| 144 case Anime::ListStatus::Dropped: return "DROPPED"; | 144 case Anime::ListStatus::Completed: |
| 145 case Anime::ListStatus::Paused: return "PAUSED"; | 145 return "COMPLETED"; |
| 146 default: break; | 146 case Anime::ListStatus::Dropped: |
| 147 return "DROPPED"; | |
| 148 case Anime::ListStatus::Paused: | |
| 149 return "PAUSED"; | |
| 150 default: | |
| 151 break; | |
| 147 } | 152 } |
| 148 return "CURRENT"; | 153 return "CURRENT"; |
| 149 } | 154 } |
| 150 | 155 |
| 151 static void ParseTitle(const nlohmann::json &json, Anime::Anime &anime) | 156 static void ParseTitle(const nlohmann::json &json, Anime::Anime &anime) |
