Update deps + configuration

Prevent usage of old dependencies & update the whole structure.
This commit is contained in:
theofficialomega
2025-06-23 12:32:56 +02:00
parent 11e3f2cabe
commit cd0327e445
243 changed files with 10302 additions and 6587 deletions

View File

@@ -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')

View File

@@ -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
```