mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 16:40:07 -04:00
16/9 better quality parseIcon (we could technically go higher)
This commit is contained in:
parent
35c92189e3
commit
7c64de6f82
1 changed files with 4 additions and 0 deletions
|
@ -93,6 +93,10 @@ function parseIcon($item) {
|
|||
const value = img.attr('srcset') || img.data('srcset')
|
||||
const obj = value ? srcset.parse(value).find(i => i.width === 128) : {}
|
||||
|
||||
if (obj.url) {
|
||||
obj.url = obj.url.replace('128x180', '960x540');
|
||||
}
|
||||
|
||||
return obj.url
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue