Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions websites/R/RTVE/iframe.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const iframe = new iFrame();

Check failure

Code scanning / ESLint

Require or disallow semicolons instead of ASI Error

Extra semicolon.

iframe.on("UpdateData", async () => {

Check failure

Code scanning / ESLint

Enforce the consistent use of either backticks, double, or single quotes Error

Strings must use singlequote.
const video = document.querySelector("video");

Check failure

Code scanning / ESLint

Enforce the consistent use of either backticks, double, or single quotes Error

Strings must use singlequote.

Check failure

Code scanning / ESLint

Require or disallow semicolons instead of ASI Error

Extra semicolon.

Check failure

Code scanning / ESLint

Disallow trailing whitespace at the end of lines Error

Trailing spaces not allowed.
if (video && !isNaN(video.duration)) {

Check failure

Code scanning / ESLint

Prefer `Number` static properties over global ones. Error

Prefer Number.isNaN over isNaN.
iframe.send({
iFrameVideoData: {
currTime: video.currentTime,
dur: video.duration,
paused: video.paused
}

Check failure

Code scanning / ESLint

Require or disallow trailing commas Error

Missing trailing comma.
});

Check failure

Code scanning / ESLint

Require or disallow trailing commas Error

Missing trailing comma.

Check failure

Code scanning / ESLint

Require or disallow semicolons instead of ASI Error

Extra semicolon.
}
});

Check failure

Code scanning / ESLint

Require or disallow semicolons instead of ASI Error

Extra semicolon.

Check failure

Code scanning / ESLint

Require or disallow newline at the end of files Error

Newline required at end of file but not found.
76 changes: 76 additions & 0 deletions websites/R/RTVE/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"$schema": "https://schemas.premid.app/metadata/1.16",
"apiVersion": 1,
"author": {
"id": "970249245955354696",
"name": "_sailok"
},
"service": "RTVE",
"description": {
"en": "Spanish public broadcaster website with TV, radio, news, weather and streaming",
"es": "Web de la radiotelevisión pública española con TV, radio, noticias, tiempo y streaming"
},
"url": "www.rtve.es",
"regExp": "https?://(www\\.)?rtve\\.es[/].*",
"version": "1.0.0",
"logo": "https://i.imgur.com/0begwZJ.png",
"thumbnail": "https://i.imgur.com/Ru8b2AX.png",
"color": "#f56b0d",
"category": "videos",
"tags": [
"tv",
"clan",
"series",
"videos",
"streaming",
"television",
"public-broadcaster"
],
"iframe": true,
"readLogs": false,
"settings": [
{
"id": "lang",
"multiLanguage": true
},
{
"id": "privacy",
"title": "Privacy Mode",
"icon": "fas fa-user-secret",
"value": false
},
{
"id": "buttons",
"title": "Show buttons",
"icon": "fas fa-compress-arrows-alt",
"value": true,
"if": {
"privacy": false
}
},
{
"id": "time",
"title": "Show timestamps",
"icon": "fas fa-stopwatch",
"value": true
},
{
"id": "cover",
"title": "Show cover images",
"icon": "fas fa-images",
"value": true,
"if": {
"privacy": false
}
},
{
"id": "detailedInfo",
"title": "Show detailed information",
"icon": "fas fa-info-circle",
"value": true,
"if": {
"privacy": false
}
}
]
}
Loading
Loading