Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
04Marcus committed Jan 10, 2025
2 parents 890f7d5 + 742bbd4 commit a884f5c
Show file tree
Hide file tree
Showing 74 changed files with 262 additions and 138 deletions.
72 changes: 72 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Check files syntactically valid

on:
pull_request:
branches: ["master"]
push:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check whether city files are valid
uses: ali-kamalizade/[email protected]
with:
directory: 'web/cities'
ecmaVersion: 'es5'
files: '*.js'
- name: Check whether station files are valid
uses: ali-kamalizade/[email protected]
with:
directory: 'web/stations'
ecmaVersion: 'es5'
files: '*.js'
- name: Check whether European station logos are present
uses: actions/github-script@v7
with:
script: |
const fs = require("fs");
let stationsFile = fs.readFileSync("web/stations/stations-europe.js", "utf8");
fs.writeFileSync("stations-europe-module.js", stationsFile + "\nexports.stations = stations;");
let stations = require("./stations-europe-module.js")
let failed = false;
for (const [key, value] of Object.entries(stations.stations)) {
for (const elem of value) {
if (!fs.existsSync("web/" + elem["logo"])) {
console.error("error: " + elem["logo"] + " missing!");
failed = true;
}
}
}
if (failed) {
process.exit(1);
}
- name: Check whether American station logos are present
uses: actions/github-script@v7
with:
script: |
const fs = require("fs");
let stationsFile = fs.readFileSync("web/stations/stations-america.js", "utf8");
fs.writeFileSync("stations-america-module.js", stationsFile + "\nexports.stations = stations;");
let stations = require("./stations-america-module.js")
let failed = false;
for (const [key, value] of Object.entries(stations.stations)) {
for (const elem of value) {
if (!fs.existsSync("web/" + elem["logo"])) {
console.error("error: " + elem["logo"] + " missing!");
failed = true;
}
}
}
if (failed) {
process.exit(1);
}
12 changes: 0 additions & 12 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check whether city files are valid
uses: ali-kamalizade/[email protected]
with:
directory: 'web/cities'
ecmaVersion: 'es5'
files: '*.js'
- name: Check whether station files are valid
uses: ali-kamalizade/[email protected]
with:
directory: 'web/stations'
ecmaVersion: 'es5'
files: '*.js'
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
Expand Down
Binary file modified web/stations/images-europe/belgium-fr/LN Radio.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/stations/images-europe/belgium-nl/MENTpop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified web/stations/images-europe/belgium-nl/MNM Hits.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/stations/images-europe/belgium-nl/MNM.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed web/stations/images-europe/belgium-nl/VRT MNM.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed web/stations/images-europe/france/France Bleu.png
Binary file not shown.
Binary file added web/stations/images-europe/france/Ici.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/stations/images-europe/italy/ACI Radio.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed web/stations/images-europe/italy/KC1 Test.png
Binary file not shown.
Binary file removed web/stations/images-europe/italy/KC2 Test.png
Binary file not shown.
Binary file removed web/stations/images-europe/italy/KC3 Test.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed web/stations/images-europe/italy/RTL 102.5 Doc.png
Binary file not shown.
Binary file removed web/stations/images-europe/italy/RTL 102.5 News.png
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed web/stations/images-europe/netherlands/Sunlite.png
Diff not rendered.
Diff not rendered.
Binary file removed web/stations/images-europe/norway/P12 Bandit.png
Diff not rendered.
Binary file added web/stations/images-europe/norway/P12 Hitmix.png
Binary file modified web/stations/images-europe/poland/Meloradio.png
Binary file removed web/stations/images-europe/slovenia/Radio BOB.png
Diff not rendered.
Binary file added web/stations/images-europe/spain/HIT FM.png
Binary file added web/stations/images-europe/spain/LOS40 Urban.png
Binary file removed web/stations/images-europe/spain/Radio4G.png
Diff not rendered.
Binary file added web/stations/images-europe/sweden/Star FM.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file modified web/stations/images-europe/switzerland-de/Radio Zürisee.png
Binary file modified web/stations/images-europe/switzerland-fr/Spoon Radio.png
Diff not rendered.
Binary file added web/stations/images-europe/switzerland-it/RTO.png
Binary file removed web/stations/images-europe/uk/Heat radio.png
Diff not rendered.
Binary file removed web/stations/images-europe/uk/KISS Fresh.png
Diff not rendered.
Binary file added web/stations/images-europe/uk/KISSTORY R&B.png
Binary file removed web/stations/images-europe/uk/Lyca Radio.png
Diff not rendered.
21 changes: 0 additions & 21 deletions web/stations/stations-america.js
Original file line number Diff line number Diff line change
Expand Up @@ -26789,9 +26789,6 @@ var stations = {
url: "http://216.251.79.148:8000/;stream"
},
],
};

var stations_mexico = {
"acaponeta": [
{
name: "La Patrona 92.5",
Expand Down Expand Up @@ -29340,9 +29337,6 @@ var stations_mexico = {
url: "https://cast.zuperdns.net/8020/stream"
},
],
};

var stations_c2c = {
"anniston_al": [
{
name: "Grace Radio 90.7",
Expand Down Expand Up @@ -53262,9 +53256,6 @@ var stations_c2c = {
url: "https://ice24.securenetsystems.net/WXCO"
},
],
};

var stations_canada = {
"baiecomeau": [
{
name: "CBC Radio One 93.7 FM",
Expand Down Expand Up @@ -57622,9 +57613,6 @@ var stations_canada = {
url: "https://stream2.statsradio.com:8046/stream"
},
],
};

var stations_caribbean = {
"adicora": [
{
name: "Canal 90",
Expand Down Expand Up @@ -58678,9 +58666,6 @@ var stations_caribbean = {
url: "http://znsradiogroup.streamcomedia.com:9788/zns1540am"
},
],
};

var stations_alaska = {
"alcan": [
{
name: "No stations in this area",
Expand Down Expand Up @@ -59138,9 +59123,3 @@ var stations_alaska = {
},
],
};

stations = $.extend(stations, stations_mexico);
stations = $.extend(stations, stations_c2c);
stations = $.extend(stations, stations_canada);
stations = $.extend(stations, stations_caribbean);
stations = $.extend(stations, stations_alaska);
Loading

0 comments on commit a884f5c

Please sign in to comment.