145 |
if (table != null) { |
if (table != null) { |
146 |
Elements tableRows = table.getElementsByTag("tr"); |
Elements tableRows = table.getElementsByTag("tr"); |
147 |
|
|
148 |
boolean tidsstregExists = (table.getElementsByAttributeValue("class", "Tidsstreg").size() > 0); |
//boolean tidsstregExists = (table.getElementsByAttributeValue("class", "Tidsstreg").size() > 0); |
149 |
boolean passedTidsstreg = false; |
//boolean passedTidsstreg = false; |
150 |
|
|
151 |
for (Element currentRow : tableRows) { |
for (Element currentRow : tableRows) { |
152 |
String rowClass = currentRow.attr("class"); |
String rowClass = currentRow.attr("class"); |
153 |
|
/* |
154 |
if (tidsstregExists == true && passedTidsstreg == false) { |
if (tidsstregExists == true && passedTidsstreg == false) { |
155 |
if (currentRow.getElementsByAttributeValue("class", "Tidsstreg").size() > 0) { |
if (currentRow.getElementsByAttributeValue("class", "Tidsstreg").size() > 0) { |
156 |
passedTidsstreg = true; |
passedTidsstreg = true; |
157 |
} else { |
} else { |
158 |
continue; |
continue; |
159 |
} |
} |
160 |
} |
}*/ |
161 |
|
|
162 |
if (rowClass != null && rowClass.toLowerCase().contains("station") ) { |
if (rowClass != null && rowClass.toLowerCase().contains("station") ) { |
163 |
|
|
253 |
if (table != null) { |
if (table != null) { |
254 |
Elements tableRows = table.getElementsByTag("tr"); |
Elements tableRows = table.getElementsByTag("tr"); |
255 |
|
|
256 |
boolean passedTidsstreg = false; |
//boolean passedTidsstreg = false; |
257 |
boolean tidsstregExists = (table.getElementsByAttributeValue("class", "Tidsstreg").size() > 0); |
//boolean tidsstregExists = (table.getElementsByAttributeValue("class", "Tidsstreg").size() > 0); |
258 |
|
|
259 |
for (Element currentRow : tableRows) { |
for (Element currentRow : tableRows) { |
260 |
String rowClass = currentRow.attr("class"); |
String rowClass = currentRow.attr("class"); |
261 |
|
/* |
262 |
if (tidsstregExists == true && passedTidsstreg == false) { |
if (tidsstregExists == true && passedTidsstreg == false) { |
263 |
if (currentRow.getElementsByAttributeValue("class", "Tidsstreg").size() > 0) { |
if (currentRow.getElementsByAttributeValue("class", "Tidsstreg").size() > 0) { |
264 |
passedTidsstreg = true; |
passedTidsstreg = true; |
265 |
} else { |
} else { |
266 |
continue; |
continue; |
267 |
} |
} |
268 |
} |
}*/ |
269 |
|
|
270 |
|
|
271 |
if (rowClass != null && rowClass.toLowerCase().contains("station") ) { |
if (rowClass != null && rowClass.toLowerCase().contains("station") ) { |