parent
c6bad4839c
commit
8d72f26d0d
1 changed files with 7 additions and 0 deletions
|
@ -15,6 +15,12 @@ const MAX_RETRIES = 2;
|
||||||
const DELAY_BETWEEN_REQUESTS = 1000; // 1 second
|
const DELAY_BETWEEN_REQUESTS = 1000; // 1 second
|
||||||
const USER_AGENT = 'M3U-Checker/1.0';
|
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
|
* 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(` Error: ${error}`);
|
||||||
console.log(` Status Code: ${statusCode || 'N/A'}`);
|
console.log(` Status Code: ${statusCode || 'N/A'}`);
|
||||||
console.log(` Duration: ${entry.duration || 'Unknown'}`);
|
console.log(` Duration: ${entry.duration || 'Unknown'}`);
|
||||||
|
console.log(` Repository: ${this.repoOwner}/${this.repoName}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue