Skip to content

Commit

Permalink
chore: lint B folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Bas950 committed Jan 18, 2025
1 parent 49ece9f commit 98ee656
Show file tree
Hide file tree
Showing 741 changed files with 41,414 additions and 39,032 deletions.
47 changes: 24 additions & 23 deletions websites/B/BBC/iframe.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
const iframe = new iFrame();
const iframe = new iFrame()

iframe.on("UpdateData", async () => {
const video = document.querySelector<HTMLVideoElement>("#p_v_player_0"),
audio = document.querySelector<HTMLAudioElement>("#p_a_player_0");
iframe.on('UpdateData', async () => {
const video = document.querySelector<HTMLVideoElement>('#p_v_player_0')
const audio = document.querySelector<HTMLAudioElement>('#p_a_player_0')

if (!isNaN(video?.duration)) {
iframe.send({
video: {
currentTime: video.currentTime,
duration: video.duration,
paused: video.paused,
},
});
} else if (!isNaN(audio?.duration)) {
iframe.send({
audio: {
currentTime: audio.currentTime,
duration: audio.duration,
paused: audio.paused,
title: audio.title,
},
});
}
});
if (video && !Number.isNaN(video.duration)) {
iframe.send({
video: {
currentTime: video.currentTime,
duration: video.duration,
paused: video.paused,
},
})
}
else if (audio && !Number.isNaN(audio.duration)) {
iframe.send({
audio: {
currentTime: audio.currentTime,
duration: audio.duration,
paused: audio.paused,
title: audio.title,
},
})
}
})
136 changes: 68 additions & 68 deletions websites/B/BBC/metadata.json
Original file line number Diff line number Diff line change
@@ -1,69 +1,69 @@
{
"$schema": "https://schemas.premid.app/metadata/1.12",
"apiVersion": 1,
"author": {
"name": "Slowlife",
"id": "374905512661221377"
},
"contributors": [
{
"name": "Elon Musk",
"id": "631499344863821877"
},
{
"name": "Bas950",
"id": "241278257335500811"
}
],
"service": "BBC",
"description": {
"en": "The best of the BBC, with the latest news and sport headlines, weather, TV & radio highlights and much more from across the whole of BBC Online.",
"nl": "Het beste van de BBC, met het laatste nieuws en sportkoppen, weerberichten, hoogtepunten op tv en radio en nog veel meer uit heel BBC Online.",
"vi_VN": "Những tinh tuý vủa BBC, với những bài báo mới nhất và tiêu đề thể thao, thời tiết, truyền hình & radio nổi bật từ tất cả BBC Online."
},
"url": [
"www.bbc.co.uk",
"www.bbc.com"
],
"version": "2.2.5",
"logo": "https://cdn.rcd.gg/PreMiD/websites/B/BBC/assets/logo.png",
"thumbnail": "https://cdn.rcd.gg/PreMiD/websites/B/BBC/assets/thumbnail.png",
"color": "#000000",
"category": "other",
"tags": [
"bbc",
"bbc-iplayer",
"bbc-sounds",
"series",
"movie",
"weather",
"bbc-weather",
"news"
],
"iframe": true,
"iFrameRegExp": ".*",
"settings": [
{
"multiLanguage": true,
"id": "lang"
},
{
"id": "usePresenceName",
"title": "Show iPlayer Title as Presence",
"icon": "fad fa-user-edit",
"value": true
},
{
"id": "cover",
"title": "Show Cover",
"icon": "fas fa-images",
"value": true
},
{
"id": "buttons",
"title": "Show Buttons",
"icon": "fas fa-compress-arrows-alt",
"value": true
}
]
}
"$schema": "https://schemas.premid.app/metadata/1.12",
"apiVersion": 1,
"author": {
"name": "Slowlife",
"id": "374905512661221377"
},
"contributors": [
{
"name": "Elon Musk",
"id": "631499344863821877"
},
{
"name": "Bas950",
"id": "241278257335500811"
}
],
"service": "BBC",
"description": {
"en": "The best of the BBC, with the latest news and sport headlines, weather, TV & radio highlights and much more from across the whole of BBC Online.",
"nl": "Het beste van de BBC, met het laatste nieuws en sportkoppen, weerberichten, hoogtepunten op tv en radio en nog veel meer uit heel BBC Online.",
"vi_VN": "Những tinh tuý vủa BBC, với những bài báo mới nhất và tiêu đề thể thao, thời tiết, truyền hình & radio nổi bật từ tất cả BBC Online."
},
"url": [
"www.bbc.co.uk",
"www.bbc.com"
],
"version": "2.2.5",
"logo": "https://cdn.rcd.gg/PreMiD/websites/B/BBC/assets/logo.png",
"thumbnail": "https://cdn.rcd.gg/PreMiD/websites/B/BBC/assets/thumbnail.png",
"color": "#000000",
"category": "other",
"tags": [
"bbc",
"bbc-iplayer",
"bbc-sounds",
"series",
"movie",
"weather",
"bbc-weather",
"news"
],
"iframe": true,
"iFrameRegExp": ".*",
"settings": [
{
"multiLanguage": true,
"id": "lang"
},
{
"id": "usePresenceName",
"title": "Show iPlayer Title as Presence",
"icon": "fad fa-user-edit",
"value": true
},
{
"id": "cover",
"title": "Show Cover",
"icon": "fas fa-images",
"value": true
},
{
"id": "buttons",
"title": "Show Buttons",
"icon": "fas fa-compress-arrows-alt",
"value": true
}
]
}
Loading

0 comments on commit 98ee656

Please sign in to comment.