We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06fe582 commit 78189d6Copy full SHA for 78189d6
iHW-iOS/iHW/iHW/IHWDownloadScheduleViewController.m
@@ -172,6 +172,10 @@ - (void)connectionDidFinishLoading:(NSURLConnection *)connection {
172
} else if ([[div getAttributeNamed:@"id"] isEqualToString:@"sectTitle1"]) {
173
//Found a course name
174
lastName = [[[div findChildTags:@"span"] objectAtIndex:0] contents];
175
+ if (lastName == nil) {
176
+ //For long class names like "French V: Contemporary Culture and Communication", the name is in a double nested span tag
177
+ lastName = [[[div findChildTags:@"span"] objectAtIndex:1] contents];
178
+ }
179
} else if ([[div getAttributeNamed:@"id"] isEqualToString:@"sectPeriodList1"]) {
180
//Found a course period list
181
lastPeriodList = [[[div findChildTags:@"span"] objectAtIndex:0] contents];
0 commit comments