]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
IPTV: http/https - fix the m3u parsing (url pick)
authorJaroslav Kysela <perex@perex.cz>
Thu, 12 Nov 2015 19:58:31 +0000 (20:58 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 12 Nov 2015 19:58:42 +0000 (20:58 +0100)
src/input/mpegts/iptv/iptv_http.c

index 616e67eed5bc19920bbba24e2668d1c997bbaacc..c769324490114487c40678db1a3b0d4a58f447e8 100644 (file)
@@ -142,7 +142,7 @@ iptv_http_complete
     url = NULL;
     HTSMSG_FOREACH(f, items) {
       if ((item = htsmsg_field_get_map(f)) == NULL) continue;
-      url = htsmsg_get_str(items, "m3u-url");
+      url = htsmsg_get_str(item, "m3u-url");
       if (url && url[0]) break;
     }
     tvhtrace("iptv", "m3u url: '%s'", url);