Commit 74b7c4d8 authored by schreibfaul1's avatar schreibfaul1

set lastUrl if playlistformat is m3u8

parent d9e2aac9
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* *
* Created on: Oct 26.2018 * Created on: Oct 26.2018
* *
* Version 3.0.3a * Version 3.0.3b
* Updated on: Jul 04.2023 * Updated on: Jul 20.2023
* Author: Wolle (schreibfaul1) * Author: Wolle (schreibfaul1)
* *
*/ */
...@@ -527,9 +527,8 @@ bool Audio::connecttohost(const char* host, const char* user, const char* pwd) { ...@@ -527,9 +527,8 @@ bool Audio::connecttohost(const char* host, const char* user, const char* pwd) {
if(endsWith(extension, "/opus")) m_expectedCodec = CODEC_OPUS; if(endsWith(extension, "/opus")) m_expectedCodec = CODEC_OPUS;
if(endsWith(extension, ".asx")) m_expectedPlsFmt = FORMAT_ASX; if(endsWith(extension, ".asx")) m_expectedPlsFmt = FORMAT_ASX;
if(endsWith(extension, ".m3u")) m_expectedPlsFmt = FORMAT_M3U; if(endsWith(extension, ".m3u")) m_expectedPlsFmt = FORMAT_M3U;
if(endsWith(extension, ".m3u8")) m_expectedPlsFmt = FORMAT_M3U8;
if(endsWith(extension, ".pls")) m_expectedPlsFmt = FORMAT_PLS; if(endsWith(extension, ".pls")) m_expectedPlsFmt = FORMAT_PLS;
if(endsWith(extension, ".m3u8")){m_expectedPlsFmt = FORMAT_M3U8; if(audio_lasthost) audio_lasthost(host);}
setDatamode(HTTP_RESPONSE_HEADER); // Handle header setDatamode(HTTP_RESPONSE_HEADER); // Handle header
m_streamType = ST_WEBSTREAM; m_streamType = ST_WEBSTREAM;
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* Created on: Oct 28,2018 * Created on: Oct 28,2018
* *
* Version 3.0.3a * Version 3.0.3a
* Updated on: Jul 04.2023 * Updated on: Jul 20.2023
* Author: Wolle (schreibfaul1) * Author: Wolle (schreibfaul1)
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment