Procházet zdrojové kódy

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 před 7 roky
rodič
revize
47d0423384
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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))
 		return;
-	if (astrcmpi(service->server, "auto") == 0)
+	if (astrstri(service->service, "Facebook") == NULL)
 		return;
 
 	json_array_foreach (servers, index, server) {