[totem-pl-parser/wip/hadess/add-ignored-extensions: 10/13] plparser: Also try to parse with quvi if the scheme is https



commit 29cbef5dd74f598219d89a88520bc38013532530
Author: Bastien Nocera <hadess hadess net>
Date:   Sat Nov 9 13:43:16 2019 +0100

    plparser: Also try to parse with quvi if the scheme is https
    
    And not just http!

 plparse/totem-pl-parser.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/plparse/totem-pl-parser.c b/plparse/totem-pl-parser.c
index bfc9a7f..8fb0eab 100644
--- a/plparse/totem-pl-parser.c
+++ b/plparse/totem-pl-parser.c
@@ -1813,7 +1813,8 @@ totem_pl_parser_parse_internal (TotemPlParser *parser,
        uri = g_file_get_uri (file);
 
        /* Should we try to parse it with quvi? */
-       if (g_file_has_uri_scheme (file, "http")) {
+       if (g_file_has_uri_scheme (file, "http") ||
+           g_file_has_uri_scheme (file, "https")) {
                if (uri != NULL && totem_pl_parser_is_videosite (uri, parser->priv->debug) != FALSE) {
                        ret = totem_pl_parser_add_videosite (parser, file, base_file, parse_data, NULL);
                        if (ret == TOTEM_PL_PARSER_RESULT_SUCCESS)


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