
Ohne Gewähr:
/apps/tuxbox/neutrino/daemons/sectionsd.cpp
/apps/tuxbox/neutrino/daemons/SIevents.cpp
/apps/tuxbox/neutrino/daemons/SIevents.hpp
/apps/tuxbox/neutrino/src/neutrino.cpp
/apps/tuxbox/neutrino/src/system/settings.h
Code: Alles auswählen
static void addBouquetToCurrentXML(xmlNodePtr bouquet, t_bouquet_id bouquet_id)
{
FILE * dst = NULL;
std::string name;
xmlNodePtr node;
if (!(dst = fopen(CURRENTBOUQUETS_TMP, "w"))) {
dprintf("unable to open %s for writing", CURRENTSERVICES_TMP);
return;
}
[neutrino] event INITID_SECTIONSD - unknown eventID 0x4
terminate called after throwing an instance of 'std::length_error'
terminate called recursively
Aborted
Code: Alles auswählen
static void *insertEventsfromFile(void *)
....
if (xmlGetNextOccurence(node, "description") != NULL) {
if (xmlGetAttribute(node, "name") != NULL) {
e.name = std::string(UTF8_to_Latin1(xmlGetAttribute(node, "name")));
}
//printf("Name: %s\n", e->name);
if (xmlGetAttribute(node, "text") != NULL) {
e.text = std::string(UTF8_to_Latin1(xmlGetAttribute(node, "text")));
}
if (xmlGetAttribute(node, "item") != NULL) {
e.item = std::string(UTF8_to_Latin1(xmlGetAttribute(node, "item")));
}
if (xmlGetAttribute(node, "item_description") != NULL) {
e.itemDescription = std::string(UTF8_to_Latin1(xmlGetAttribute(node,"item_description")));
}
if (xmlGetAttribute(node, "extended_text") != NULL) {
e.extendedText = std::string(UTF8_to_Latin1(xmlGetAttribute(node, "extended_text")));
}
node = node->xmlNextNode;
...
Du musst überall ein 'lang' dazu edieren.mb405 hat geschrieben:@Nirvana
kommt da was neues von Dir ? wenn du wieder da bist ?
Artzka hat ja in der sectionsd.cpp was geändert, wodurch dein zeugs da nicht mehr geht![]()
in der funktion meckert er rumCode: Alles auswählen
static void *insertEventsfromFile(void *) .... if (xmlGetNextOccurence(node, "description") != NULL) { if (xmlGetAttribute(node, "name") != NULL) { e.name = std::string(UTF8_to_Latin1(xmlGetAttribute(node, "name"))); } //printf("Name: %s\n", e->name); if (xmlGetAttribute(node, "text") != NULL) { e.text = std::string(UTF8_to_Latin1(xmlGetAttribute(node, "text"))); } if (xmlGetAttribute(node, "item") != NULL) { e.item = std::string(UTF8_to_Latin1(xmlGetAttribute(node, "item"))); } if (xmlGetAttribute(node, "item_description") != NULL) { e.itemDescription = std::string(UTF8_to_Latin1(xmlGetAttribute(node,"item_description"))); } if (xmlGetAttribute(node, "extended_text") != NULL) { e.extendedText = std::string(UTF8_to_Latin1(xmlGetAttribute(node, "extended_text"))); } node = node->xmlNextNode; ...
http://wetter.rtl.de/welt/uebersicht.ph ... ort=GeorgePauleFoul hat geschrieben:@ Nirvana
Wo drückst Du Dich denn rum?? So schön is das Wetter doch noch
garnicht...![]()
![]()
Gruß
____Paule
Naja Artzka hat doch nur die Namen der Attribute geändert, diese passt du einfach an bei Nirvana zusätzlichen Sachen.mb405 hat geschrieben:jep Houdini. genau so isses
@Nico 77
????????? verstehe ich nicht, was du da gepostet hast ??
So einfach ist das leider nicht! Die Variablen sind private und müssen über eigene Funktionen geschrieben und gelesen werden.Nico 77 hat geschrieben: Du musst überall ein 'lang' dazu edieren.
z.B. - alt, + neu
- name=e.name;
- text=e.text;
+ langName=e.langName;
+ langText=e.langText;
- extendedText=e.extendedText;
+ langExtendedText=e.langExtendedText;
zeile 3218sectionsd.cpp: In function `void* insertEventsfromFile(void*)':
sectionsd.cpp:3218: error: 'class SIevent' has no member named 'name'
sectionsd.cpp:3222: error: 'class SIevent' has no member named 'text'
sectionsd.cpp:3231: error: 'class SIevent' has no member named 'extendedText'
Code: Alles auswählen
e.name = std::string(UTF8_to_Latin1(xmlGetAttribute(node, "name")));
Code: Alles auswählen
e.text = std::string(UTF8_to_Latin1(xmlGetAttribute(node, "text")));
Code: Alles auswählen
e.extendedText = std::string(UTF8_to_Latin1(xmlGetAttribute(node, "extendedText")));