I revisited my issue and I actually can’t seem to get it to show the referrer. My url is a .m3u8 so I tried using
return IndirectResponse(VideoClipObject, key=HTTPLiveStreamURL(url), http_headers=http_headers, http_cookies=http_cookies)
that didn’t seem to work and then came across objectkit.py and added post_headers which also didn’t work.
--------------------------- objectkit.py ---------------------------
# Make sure we don't have an extension already.
if path.split('/')[-1].find('.') == -1:
path += '.m3u8'
post_url = url.post_url if hasattr(url, 'post_url') else None
post_headers = url.post_headers if hasattr(url, 'post_headers') else {}
url = type(url)(path if query == None else path + query)
url.post_url = post_url
url.post_headers = post_headers
hls_url = IndirectHLSURL(url) if isinstance(url, indirect_callback_string) else CallbackHLSURL(url)
I ended up using
return IndirectResponse(VideoClipObject, key=url, http_headers=http_headers, http_cookies=http_cookies)
which still does not work for the item.
The following is the VLC test file that does play the item fine. The url in the example is expired now so wont wont unless updated.
#EXTM3U
#EXTINF:0,Test
#EXTVLCOPT:http-referrer=http://mycloud.to
#EXTVLCOPT:http-user-agent=Mozilla
https://mdz3ek.mcloud.to/1/CSoCFipfHyyNlzUmug8xkw/0/b/v/a/3rywj2/list.m3u8?e=1510268400
And here is the xml from Plex
!
!
!
I’m using Plex-web for testing and do remember this used to work on it before on the previous Plex-web version (probably 2.xx). Any suggestions or working examples you could point me at. Thanks !