We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60321a3 commit 3ab0370Copy full SHA for 3ab0370
src/xmltv.ts
@@ -115,7 +115,10 @@ export function buildProgrammesXml(data: GridApiResponse): string {
115
}
116
117
if (event.thumbnail) {
118
- xml += ` <icon src="${escapeXml(event.thumbnail)}" />\n`;
+ const src = event.thumbnail.startsWith("http")
119
+ ? event.thumbnail
120
+ : "https://zap2it.tmsimg.com/assets/" + event.thumbnail + ".jpg";
121
+ xml += ` <icon src="${escapeXml(src)}" />\n`;
122
123
124
xml += " </programme>\n";
0 commit comments