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:
GetAway
2024-04-11 19:07:37 +02:00
parent 900c92a67e
commit a061ffcd5c
2 changed files with 38 additions and 7 deletions

View File

@@ -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 &paramName);
public:
cPlayback(int num = 0);
~cPlayback();