epg-grabber 0.20.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/package.json +1 -1
- package/src/utils.js +2 -1
package/README.md
CHANGED
|
@@ -181,6 +181,7 @@ From each function in `config.js` you can access a `context` object containing t
|
|
|
181
181
|
- `date`: The 'dayjs' instance with the requested date
|
|
182
182
|
- `content`: The response data as a String
|
|
183
183
|
- `buffer`: The response data as an ArrayBuffer
|
|
184
|
+
- `headers`: The response headers
|
|
184
185
|
|
|
185
186
|
## Channels List
|
|
186
187
|
|
package/package.json
CHANGED
package/src/utils.js
CHANGED
|
@@ -268,7 +268,8 @@ utils.getUTCDate = function (d = null) {
|
|
|
268
268
|
utils.parseResponse = async (item, response, config) => {
|
|
269
269
|
const data = merge(item, config, {
|
|
270
270
|
content: response.data.toString(),
|
|
271
|
-
buffer: response.data
|
|
271
|
+
buffer: response.data,
|
|
272
|
+
headers: response.headers
|
|
272
273
|
})
|
|
273
274
|
|
|
274
275
|
if (!item.channel.logo && config.logo) {
|