mirror of
https://github.com/iptv-org/iptv
synced 2026-10-22 02:56:48 -04:00
Update scripts
This commit is contained in:
1 parent
1decbe7ac0
commit
94f473f7ca
98 files changed
+2423
-1499
No files matched your search
@@ -0,0 +1,13 @@
|
||||
export type LogItem = {
|
||||
filepath: string
|
||||
count: number
|
||||
}
|
||||
|
||||
export class LogParser {
|
||||
parse(content: string): any[] {
|
||||
if (!content) return []
|
||||
const lines = content.split('\n')
|
||||
|
||||
return lines.map(line => (line ? JSON.parse(line) : null)).filter(l => l)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user