revert Update .forgejo/scripts/check_m3u_links.js
This commit is contained in:
SpaceMonkey 2025-06-10 23:10:41 +02:00
parent c6bad4839c
commit 8d72f26d0d

View file

@ -15,6 +15,12 @@ const MAX_RETRIES = 2;
const DELAY_BETWEEN_REQUESTS = 1000; // 1 second
const USER_AGENT = 'M3U-Checker/1.0';
class M3UChecker {
constructor() {
this.repoOwner = process.env.REPO_OWNER;
this.repoName = process.env.REPO_NAME;
}
/**
* Parse M3U file and extract URLs with metadata
*/
@ -200,6 +206,7 @@ const USER_AGENT = 'M3U-Checker/1.0';
console.log(` Error: ${error}`);
console.log(` Status Code: ${statusCode || 'N/A'}`);
console.log(` Duration: ${entry.duration || 'Unknown'}`);
console.log(` Repository: ${this.repoOwner}/${this.repoName}`);
}
/**