[totem-pl-parser] podcast: Remove newline check in rss xml doc name



commit 3a62cd1ca70bf7f13a4980b9e223ba367d6b581e
Author: crvi <crvisqr gmail com>
Date:   Tue Apr 20 01:59:50 2021 +0530

    podcast: Remove newline check in rss xml doc name
    
    This is a partial revert of 2008 commit 3247aa1c, since node element
    names do not carry whitespaces with them.

 plparse/totem-pl-parser-podcast.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/plparse/totem-pl-parser-podcast.c b/plparse/totem-pl-parser-podcast.c
index 09427b6..a5222da 100644
--- a/plparse/totem-pl-parser-podcast.c
+++ b/plparse/totem-pl-parser-podcast.c
@@ -434,8 +434,7 @@ totem_pl_parser_add_rss (TotemPlParser *parser,
 
        /* If the document has no name */
        if (doc->name == NULL
-           || (g_ascii_strcasecmp (doc->name , "rss") != 0
-               && g_ascii_strcasecmp (doc->name , "rss\n") != 0)) {
+           || (g_ascii_strcasecmp (doc->name , "rss") != 0)) {
                g_free (contents);
                xml_parser_free_tree (doc);
                return TOTEM_PL_PARSER_RESULT_ERROR;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]