mirror of
https://github.com/iptv-org/epg
synced 2026-04-26 04:27:02 -04:00
Update deps + configuration
Prevent usage of old dependencies & update the whole structure.
This commit is contained in:
@@ -91,7 +91,7 @@ function parseDuration($item) {
|
||||
function parseImage($item) {
|
||||
const img = $item('.mainBroadcastCard-imageContent').first().find('img')
|
||||
const value = img.attr('srcset') || img.data('srcset')
|
||||
const obj = value ? srcset.parse(value).find(i => i.width === 128) : {}
|
||||
const obj = value ? srcset.parseSrcset(value).find(i => i.width === 128) : {}
|
||||
|
||||
if (obj.url) {
|
||||
obj.url = obj.url.replace('128x180', '960x540')
|
||||
|
||||
@@ -17,5 +17,5 @@ npm run channels:parse --- --config=./sites/programme-tv.net/programme-tv.net.co
|
||||
### Test
|
||||
|
||||
```sh
|
||||
npm test --- programme-tv.net
|
||||
npm run test:site programme-tv.net
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user