]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Restored ability to subscribe to a channel using the channel name. Syntax: http:... 382/head
authorVittGam <github@vittgam.net>
Sun, 27 Apr 2014 15:02:04 +0000 (17:02 +0200)
committerVittGam <github@vittgam.net>
Sun, 27 Apr 2014 15:02:04 +0000 (17:02 +0200)
src/webui/webui.c

index 12f69b39984e3236c9347472f11a8fe322dc8f10..d56c79cfb289942cf619a76f99b854a525d333f6 100644 (file)
@@ -613,6 +613,8 @@ page_http_playlist(http_connection_t *hc, const char *remain, void *opaque)
     ch = channel_find_by_id(atoi(components[1]));
   else if(nc == 2 && !strcmp(components[0], "channelnumber"))
     ch = channel_find_by_number(atoi(components[1]));
+  else if(nc == 2 && !strcmp(components[0], "channelname"))
+    ch = channel_find_by_name(components[1]);
   else if(nc == 2 && !strcmp(components[0], "channel"))
     ch = channel_find(components[1]);
   else if(nc == 2 && !strcmp(components[0], "dvrid"))
@@ -885,6 +887,8 @@ http_stream(http_connection_t *hc, const char *remain, void *opaque)
     ch = channel_find_by_id(atoi(components[1]));
   } else if(!strcmp(components[0], "channelnumber")) {
     ch = channel_find_by_number(atoi(components[1]));
+  } else if(!strcmp(components[0], "channelname")) {
+    ch = channel_find_by_name(components[1]);
   } else if(!strcmp(components[0], "channel")) {
     ch = channel_find(components[1]);
   } else if(!strcmp(components[0], "service")) {