Comments (5)
Support for custom headers
was added in #95
Closing.
from m3u8.
I'm sorry, can you give an example of what you want to do?
from m3u8.
Add custom http headers or override standard HTTP header like user Agent in http request.
We can imagine m3u8_obj=m3u8.load(value, headers)
Exemples:
X-Playback-Session-Id: 8ECAD943-8CC6-40B5-8550-E64EE579BB0D
X-MYCUSTOM-HEADER: Let's Go
Connection: keep-alive
Accept: /
User-Agent: AppleCoreMedia/1.0.0.14A456 (iPad; U; CPU OS 10_0_2 like Mac OS X; fr_fr)
Accept-Language: fr-fr
Accept-Encoding: identity
Connection: keep-alive
from m3u8.
It isn't possible to this now but it sounds like a fair feature and it needs to be compatible for p2 and p3.
# this solves the issue while we're using urllib2
import urllib2
request = urllib2.Request("http://www.google.com", headers={"Accept" : "text/html"})
contents = urllib2.urlopen(request).read()
from m3u8.
Thanks ;-)
Believe me, It makes sense to choose them sometimes.,
from m3u8.
Related Issues (20)
- Quotation marks are still in VIDEO-RANGE property
- Add type hints HOT 2
- Error when parsing extended M3U playlists with custom attrubutes HOT 2
- Inheriting from object class HOT 3
- Wrongfully parsing custom tag as URI instead of ignoring it HOT 4
- How to open a HLS (.m3u8) video stream link in Telegram
- How to get EXT-X-MAP from m3u8 object? HOT 1
- installation broken. HOT 4
- Use built-in ISO 8601 parsing HOT 6
- Empty duration default/exception
- Can't dump playlist with custom tags HOT 10
- M3u8 Support to be played in IPTV Player HOT 1
- Fails to parse manifests with Elemental-style CUE-OUT-CONT tags HOT 6
- Having Trouble With Putting A M3U Stream In A M3U8 Link HOT 2
- Iframe streams are not parsed correctly HOT 2
- The method of calculating absolute_uri may be confusing. Adding a custom calculation method may be better. HOT 2
- IPTV example for custom tags has problems woth properties that might contain comma
- video
- RESOLUTION as float raises exception HOT 4
- Parse bugs HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from m3u8.