Explorar o código

rtmp-services: Only do URL check for Facebook

Prevents services with special exception services from unintentionally
using the wrong server.  There's no real reason to be doing this on
anything but Facebook at the moment anyway.
jp9000 %!s(int64=7) %!d(string=hai) anos
pai
achega
47d0423384
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      plugins/rtmp-services/rtmp-common.c

+ 1 - 1
plugins/rtmp-services/rtmp-common.c

@@ -36,7 +36,7 @@ static void ensure_valid_url(struct rtmp_common *service, json_t *json,
 
 
 	if (!service->server || !servers || !json_is_array(servers))
 	if (!service->server || !servers || !json_is_array(servers))
 		return;
 		return;
-	if (astrcmpi(service->server, "auto") == 0)
+	if (astrstri(service->service, "Facebook") == NULL)
 		return;
 		return;
 
 
 	json_array_foreach (servers, index, server) {
 	json_array_foreach (servers, index, server) {