public function ajax_fetch_playlist() { $json_url = get_option('radio_playlist_stream_url', 'http://s13.streamingcloud.online:34138/status-json.xsl'); $response = wp_remote_get($json_url, array( 'timeout' => 5, 'sslverify' => false, 'headers' => array('User-Agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)') )); if (is_wp_error($response)) { // Zeigt den exakten PHP/WP-Netzwerkfehler an (z. B. Connection timed out / Port blocked) $error_msg = $response->get_error_message(); wp_send_json_success(array( 'current' => array('artist' => 'PHP-Fehler', 'title' => $error_msg), 'history' => array() )); return; } $code = wp_remote_retrieve_response_code($response); $body = wp_remote_retrieve_body($response); if ($code !== 200) { wp_send_json_success(array( 'current' => array('artist' => "HTTP Code $code", 'title' => 'Server meldet keinen Fehler 200'), 'history' => array() )); return; } // Zeigt die rohen ersten 150 Zeichen der Serverantwort an $short_body = esc_html(substr($body, 0, 150)); wp_send_json_success(array( 'current' => array('artist' => 'Antwort empfangen:', 'title' => $short_body), 'history' => array() )); } #133 – Damit ist es erledigt… – Radio MusicStar
play_arrow

#133 – Damit ist es erledigt…

micTwitchFarming & Landwirt in MVtoday 12

Hintergrund
share close
  • cover play_arrow

    #133 - Damit ist es erledigt... TwitchFarming & Landwirt in MV


Hallo ihr fleißigen Zuhörer, hier kommt eine neue Folge Feldgeflüster… pünktlich zum Sonntag und dann auch noch über eine Stunde. Zu Beginn wird aber direkt mit einer Feldgeflüster Tradition gebrochen. Es gibt natürlich ein großes Thema in dieser Folge: Agritechnica! Wenn

Rate it