From: Jaroslav Kysela Date: Sun, 12 Nov 2017 17:40:40 +0000 (+0100) Subject: profile: print an error when the profile is problematic, issue #4721 X-Git-Tag: v4.2.5~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcdb57ecee0e7fca5698f5343adbb00d15eb24f9;p=thirdparty%2Ftvheadend.git profile: print an error when the profile is problematic, issue #4721 --- diff --git a/src/profile.c b/src/profile.c index 6a41be392..322c71157 100644 --- a/src/profile.c +++ b/src/profile.c @@ -538,8 +538,11 @@ profile_find_by_list } else { res = pro; } - if (!res) + if (!res) { res = profile_find_by_name((sflags & SUBSCRIPTION_HTSP) ? "htsp" : NULL, NULL); + if (!profile_verify(res, flags)) + tvherror(LS_PROFILE, "unable to select a working profile (asked '%s' alt '%s')", name, alt); + } return res; }