mirror of
https://github.com/theariatv/theariatv.github.io.git
synced 2025-09-09 00:46:12 +02:00
Update index.html
This commit is contained in:
parent
ace0250e71
commit
b55da08d49
1 changed files with 11 additions and 4 deletions
15
index.html
15
index.html
|
@ -210,10 +210,17 @@
|
||||||
setIsOpen(forceOpen);
|
setIsOpen(forceOpen);
|
||||||
}, [forceOpen]);
|
}, [forceOpen]);
|
||||||
|
|
||||||
const createReportURL = (channelName) => {
|
const createReportURL = (channel) => {
|
||||||
const repoUrl = "https://github.com/theariatv/theariatv.github.io/issues/new";
|
const repoUrl = "https://github.com/theariatv/theariatv.github.io/issues/new";
|
||||||
const title = `Broken Stream: ${channelName}`;
|
const title = `Broken Stream: ${channel.name}`;
|
||||||
const body = `**Channel Name:** ${channelName}\n\n**Problem:** (Please describe the issue, e.g., 'Stream does not load', 'Shows a black screen', 'Wrong content', etc.)`;
|
const sourceFile = channel.stable ? 'aria.m3u' : 'aria+.m3u';
|
||||||
|
const body = `
|
||||||
|
**Channel Name:** ${channel.name}
|
||||||
|
**Stream URL:** \`${channel.url}\`
|
||||||
|
**Source Playlist:** ${sourceFile}
|
||||||
|
|
||||||
|
**Problem:** (Please describe the issue, e.g., 'Stream does not load', 'Shows a black screen', 'Wrong content', etc.)
|
||||||
|
`;
|
||||||
return `${repoUrl}?title=${encodeURIComponent(title)}&body=${encodeURIComponent(body)}`;
|
return `${repoUrl}?title=${encodeURIComponent(title)}&body=${encodeURIComponent(body)}`;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -247,7 +254,7 @@
|
||||||
<a href={channel.url} target="_blank" rel="noopener noreferrer">Link</a>
|
<a href={channel.url} target="_blank" rel="noopener noreferrer">Link</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a href={createReportURL(channel.name)} target="_blank" rel="noopener noreferrer" className="report-button">Report</a>
|
<a href={createReportURL(channel)} target="_blank" rel="noopener noreferrer" className="report-button">Report</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
))}
|
))}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue