mirror of
https://github.com/himanshu8443/providers.git
synced 2026-04-17 13:31:45 +00:00
Refactor URL checker script for better readability
This commit is contained in:
3
.github/scripts/url-checker.js
vendored
3
.github/scripts/url-checker.js
vendored
@@ -175,10 +175,11 @@ async function main() {
|
||||
fs.writeFileSync(FILE_PATH, jsonString);
|
||||
console.log(`✅ Updated ${FILE_PATH} with new URLs`);
|
||||
|
||||
// Output updated providers for Discord notification
|
||||
// Output updated providers for Discord notification in a clean format
|
||||
if (updatedProviders.length > 0) {
|
||||
console.log("\n### UPDATED_PROVIDERS_START ###");
|
||||
for (const provider of updatedProviders) {
|
||||
// Format: name|oldUrl|newUrl (pipe-delimited for easy parsing)
|
||||
console.log(`${provider.name}|${provider.oldUrl}|${provider.newUrl}`);
|
||||
}
|
||||
console.log("### UPDATED_PROVIDERS_END ###");
|
||||
|
||||
Reference in New Issue
Block a user