Fix readTerrestrials broken with 4a2fd0ee
authorAthanasios Oikonomou <athoik@gmail.com>
Mon, 3 Aug 2015 09:17:04 +0000 (12:17 +0300)
committerAthanasios Oikonomou <athoik@gmail.com>
Mon, 3 Aug 2015 09:17:04 +0000 (12:17 +0300)
Fix readTerrestrials by parsing attribute value not the name

lib/dvb/db.cpp

index c49e59c..876d11a 100644 (file)
@@ -1457,7 +1457,7 @@ PyObject *eDVBDB::readTerrestrials(ePyObject ter_list, ePyObject tp_dict)
 
                                        if (dest)
                                        {
-                                               tmp = strtol((const char*)attr->name, &end_ptr, 10);
+                                               tmp = strtol((const char*)attr->children->content, &end_ptr, 10);
                                                if (!*end_ptr)
                                                {
                                                        *dest = tmp;