Lines 814-820
Link Here
|
814 |
#visibility_unit = self.getText(head_n, 'ud') |
814 |
#visibility_unit = self.getText(head_n, 'ud') |
815 |
|
815 |
|
816 |
location_n = self.getChild(weather_n, 'loc') |
816 |
location_n = self.getChild(weather_n, 'loc') |
817 |
city, country = self.getText(location_n, 'dnam').split(',') |
817 |
location_items = self.getText(location_n, 'dnam').split(',') |
|
|
818 |
city, country = location_items[0], location_items[-1] |
818 |
country = country.strip() |
819 |
country = country.strip() |
819 |
|
820 |
|
820 |
# current conditions data |
821 |
# current conditions data |