Cockatrice/oracle/src
Lukas Brübach 4aab93f3b6 [Oracle] Fix Scryfall tag requests and the retry loop
api.scryfall.com rejects requests that lack an Accept header with HTTP 400, and QNetworkAccessManager does not add one. Send application/json for the bulk metadata request and */* for the tag file, and surface the URL plus Scryfall's JSON error body when a request fails.

A failed tag load used to call next(), which re-ran validatePage() and started the same failing download again, trapping the user in an error loop. Stay on the page instead, drop the unusable database, and tell the user they can retry, change the source, or untick the option to import without tags. Also explain parent tags inline with a real Scryfall hierarchy example.
2026-11-08 20:13:45 +01:00
..
lzma [WIP] Basic mtgjsonv4 support (#3458) 2018-12-20 18:05:03 -05:00
zip Docs: Use Doxygen \todo comments (#6421) 2025-12-15 00:13:16 +01:00
main.cpp [Oracle] Don't report a cancelled card database update as successful (#7082) 2026-10-15 15:21:07 +02:00
main.h workaround for foreign card arts getting priority by default (#3652) 2019-03-12 10:12:31 +01:00
oracleimporter.cpp [Oracle] Load card tags from a tag database during import 2026-11-08 19:59:04 +01:00
oracleimporter.h [Oracle] Load card tags from a tag database during import 2026-11-08 19:59:04 +01:00
oraclewizard.cpp [Oracle] Add a tag data step to the import wizard 2026-11-08 19:59:14 +01:00
oraclewizard.h [Oracle] Add a tag data step to the import wizard 2026-11-08 19:59:14 +01:00
pages.cpp [Oracle] Fix Scryfall tag requests and the retry loop 2026-11-08 20:13:45 +01:00
pages.h [Oracle] Fix Scryfall tag requests and the retry loop 2026-11-08 20:13:45 +01:00
pagetemplates.cpp [Oracle] Don't report a cancelled card database update as successful (#7082) 2026-10-15 15:21:07 +02:00
pagetemplates.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
parsehelpers.cpp [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
parsehelpers.h Update cipt parsing (#5712) 2025-03-14 21:44:13 -04:00
raw_json_scanner.cpp [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
raw_json_scanner.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
tag_database.cpp [Oracle] Load card tags from a tag database during import 2026-11-08 19:59:04 +01:00
tag_database.h [Oracle] Load card tags from a tag database during import 2026-11-08 19:59:04 +01:00