Check-in [a30ddba7a7]
Overview
| Comment: | Removed some negotation headers |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
a30ddba7a72667d7afa3c6a904a02085 |
| User & Date: | mario on 2014-07-31 01:14:44 |
| Other Links: | manifest | tags |
Context
|
2014-07-31
| ||
| 01:14 | Shorter YT urls. check-in: 883ba616fa user: mario tags: trunk | |
| 01:14 | Removed some negotation headers check-in: a30ddba7a7 user: mario tags: trunk | |
| 01:13 | PLUGIN DISABLED Reads out streams now (grouping wrong), but even with session ID there's no playback of manually construed URLs. check-in: 0045ccdb36 user: mario tags: trunk | |
Changes
Modified ahttp.py from [154714b751] to [31cf3bd93f].
| ︙ | |||
40 41 42 43 44 45 46 | 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | - + - - + + - - - - |
# prepare default query object
session = requests.Session()
# default HTTP headers for requests
session.headers.update({
"User-Agent": "streamtuner2/2.1 (X11; U; Linux AMD64; en; rv:1.5.0.1) like WinAmp/2.1",
|
| ︙ | |||
75 76 77 78 79 80 81 | 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | - - + + |
# read
if post:
r = session.post(url, params=params, headers=headers)
else:
r = session.get(url, params=params, headers=headers)
|
| ︙ |