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 />


Origin commit data
------------------
Branch: master
Commit: 34400d702f
Author: GetAway <get-away@t-online.de>
Date: 2024-04-11 (Thu, 11 Apr 2024)



------------------
This commit was generated by Migit
This commit is contained in:
GetAway
2024-04-11 19:07:37 +02:00
committed by vanhofen
parent 87b2a5dbe3
commit be03534b69
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();