Skip to content

Commit b921d18

Browse files
committed
xmltv: intl fix for APPENDIT()
1 parent 306b826 commit b921d18

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

‎src/epggrab/module/xmltv.c‎

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -659,18 +659,16 @@ static int _xmltv_parse_programme_tags
659659
*/
660660
#define APPENDIT(VAR,NAME) \
661661
if (VAR) { \
662-
char *str = string_list_2_csv(VAR, ',', 1); \
663-
if (str) { \
664-
lang_str_ele_t *e; \
665-
\
666-
RB_FOREACH(e, desc, link) \
667-
{ \
668-
lang_str_append(desc, "\n\n", e->lang); \
669-
lang_str_append(desc, NAME, e->lang); \
670-
lang_str_append(desc, str, e->lang); \
671-
} \
672-
free(str); \
673-
} \
662+
char *str = string_list_2_csv((VAR), ',', 1); \
663+
if (str) { \
664+
lang_str_ele_t *e; \
665+
RB_FOREACH(e, desc, link) { \
666+
lang_str_append(desc, "\n\n", e->lang); \
667+
lang_str_append(desc, tvh_gettext_lang((NAME), e->lang), e->lang); \
668+
lang_str_append(desc, str, e->lang); \
669+
} \
670+
free(str); \
671+
} \
674672
}
675673

676674
/* Append the details on to the description, mainly for legacy

0 commit comments

Comments
 (0)