tv2go.t-2.net : update

This commit is contained in:
Ismaël Moret
2025-10-26 12:55:48 +01:00
committed by GitHub
parent f85f28ee73
commit 877c3fa6de
3 changed files with 348 additions and 341 deletions
+5 -5
View File
@@ -1,13 +1,13 @@
const axios = require('axios')
const dayjs = require('dayjs')
const md5 = require('./jquery.md5')
const crypto = require('crypto')
const API = {
locale: 'sl-SI',
version: '9.4',
version: '10.8',
format: 'json',
uuid: '464830403846070',
token: '6dace810-55d5-11e3-949a-0800200c9a66'
uuid: '7971845803564301055', // from application
token: 'f8cce4e4-3ccc-486d-ac02-73cf231e3a2b' // from application
}
const config = {
@@ -120,7 +120,7 @@ function parseItems(content) {
function generateHash(data, endpoint) {
const salt = `${API.token}${API.version}${API.format}${API.uuid}`
return md5(salt + endpoint + JSON.stringify(data))
return crypto.createHash('md5').update(salt + endpoint + JSON.stringify(data)).digest('hex')
}
module.exports = config