mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 15:02:58 +02:00
This commit refactors the extraction of HTTP headers in the
cPlayback::Start method to include the 'Referer' header using the extractParam helper function. It ensures that the 'Referer' value from URL parameters is properly extracted and appended to the headers when present. Using: <webtv title=ATV url=https://stream.hdtvizlecanli.com/atv.m3u8#Referer=https://www.livestreamde.com />
This commit is contained in:
@@ -36,6 +36,7 @@ class cPlayback
|
||||
off64_t last_size;
|
||||
int init_jump;
|
||||
AVFormatContext *avft;
|
||||
std::string extractParam(const std::string &hdrs, const std::string ¶mName);
|
||||
public:
|
||||
cPlayback(int num = 0);
|
||||
~cPlayback();
|
||||
|
Reference in New Issue
Block a user