diff options
author | sijanec <anton@sijanec.eu> | 2021-02-08 21:47:07 +0100 |
---|---|---|
committer | sijanec <anton@sijanec.eu> | 2021-02-08 21:47:07 +0100 |
commit | a919e15e9706a483054e60f319a422c06e2c6aa7 (patch) | |
tree | 58debaf6a9c6db902099f6d0fc33935ff7c04543 /rtv4d-dl.c | |
parent | rtv4d-dl 0.1.2 (diff) | |
download | rtv4d-dl-a919e15e9706a483054e60f319a422c06e2c6aa7.tar rtv4d-dl-a919e15e9706a483054e60f319a422c06e2c6aa7.tar.gz rtv4d-dl-a919e15e9706a483054e60f319a422c06e2c6aa7.tar.bz2 rtv4d-dl-a919e15e9706a483054e60f319a422c06e2c6aa7.tar.lz rtv4d-dl-a919e15e9706a483054e60f319a422c06e2c6aa7.tar.xz rtv4d-dl-a919e15e9706a483054e60f319a422c06e2c6aa7.tar.zst rtv4d-dl-a919e15e9706a483054e60f319a422c06e2c6aa7.zip |
Diffstat (limited to 'rtv4d-dl.c')
-rw-r--r-- | rtv4d-dl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -63,7 +63,7 @@ #define RTV_API_MEDIA_URL "http://api." RTV_SLD "/ava/getMedia/%u/?client_id=" \ RTV_CLIENT_ID "&jwt=%s" #define RTV_API_MEDIA_URL_SIZEOF 64 + RTV_CLIENT_ID_SIZEOF + RTV_JWT_SIZEOF -#define RTV_JWT_SIZEOF 43+1 +#define RTV_JWT_SIZEOF 64+1 /* statični nizi */ #define RTV_PREDVAJALNIK_URL "http://4d." RTV_SLD "/arhiv/v/%u" #define RTV_PREDVAJALNIK_URL_SIZEOF (32+1 + 12) #define RTV_ZIVO_PROGRAM_SIZEOF 12 @@ -381,7 +381,7 @@ int rtv_meta_izpolni(struct meta_oddaja * m) { RTV_JSON(odg, sizeloc, "\"showDescription\"", m->opis, s, '"', NULL); RTV_JSON(odg, sizeloc, "\"duration\"", m->dolzina, u, '"', NULL); RTV_JSON(odg, sizeloc, "\"jwt\"", m->jwt, s, '"', NULL); - if (RTV_JWT_SIZEOF != m->jwt_sizeof) + if (RTV_JWT_SIZEOF < m->jwt_sizeof) RTV_NAPISI(OPOZORILO, "Shranil nepričakovano dolg JWT! Je vdor?"); RTV_JSON(odg, sizeloc, "\"showName\"", m->tip_oddaje_ime, s, '"', NULL); RTV_JSON(odg, sizeloc, "\"source\"", m->program, s, '"', NULL); |