mirror of
https://github.com/iptv-org/epg
synced 2026-04-11 13:22:52 -04:00
16/9 better quality parseIcon (we could technically go higher)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user