-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility with multi-page plans #10
Comments
That's actually on purpose, because all timetable JSONs I ever had the chance of looking at didn't have multiple [
{
"Id": "c9fb6314-cda8-4c4c-93fe-328580dc3502",
"Date": "31.03.2020 17:18",
"Title": "Homeschooling-Stundenplan",
"Detail": "",
"Tags": "",
"ConType": 2,
"Prio": 0,
"Index": 0,
"Childs": [
{
"Id": "c9fb6314-cda8-4c4c-93fe-328580dc3502_76",
"Date": "31.03.2020 17:18",
"Title": "Homeschooling-Stundenplan",
"Detail": "https://light.dsbcontrol.de/DSBlightWebsite/Data/13ccccbb-e6a8-466a-addc-00bba830c6cf/c9fb6314-cda8-4c4c-93fe-328580dc3502/c9fb6314-cda8-4c4c-93fe-328580dc3502_000.jpg",
"Tags": "",
"ConType": 4,
"Prio": 0,
"Index": 76,
"Childs": [],
"Preview": "13ccccbb-e6a8-466a-addc-00bba830c6cf/c9fb6314-cda8-4c4c-93fe-328580dc3502/c9fb6314-cda8-4c4c-93fe-328580dc3502_000.jpg"
}
],
"Preview": ""
}
] The same holds true for GymPeg plans: The elements of the outer list represent plans, the Could you please outline, how yours looks? Are the |
Hmm, I see. In my case the outer Element also represents a plan, while the Iterable<DownloadingPlan> downloadPlans(
List json, {
bool downloadPreviews = false,
}) =>
json.map((p) => p['Childs'][0]).map((p) => DownloadingPlan(
p['Detail'],
p['Preview'],
http.get(p['Detail'],
ttl: Duration(days: 4),
defaultCharset: (x) => String.fromCharCodes(x)),
downloadPreviews
? http.getBin('$previewEndpoint/${p['Preview']}')
: null)); The login info I used is generally considered public, so if you want to replicate it yourself: username: "152321" password: "krsmrz21". |
Ok, I think I understand everything now. 7.1.1 mitigates this by making every "page" its own By the way: Another interesting problem is the info field at the top of the first page of these plans. I hope, I can also get parser support for them working as well. |
#13 is now concerned with extending the compatibility across different orderings. |
Only the first page of the table seems to be processed properly. All the substitutions belonging to the page circled in green show up, the red ones do not.
.
The result of getAllData()
The text was updated successfully, but these errors were encountered: