summaryrefslogtreecommitdiffstats
path: root/rtv4d-dl.c
diff options
context:
space:
mode:
authorsijanec <anton@sijanec.eu>2021-01-07 09:03:04 +0100
committersijanec <anton@sijanec.eu>2021-01-07 09:03:04 +0100
commitd69845872dde39599d2222f2002a3ae254e7f8b4 (patch)
tree1e265505b8e9eeaf88985e3d75422548ea8773f3 /rtv4d-dl.c
parent0.0.5 gitignore (diff)
downloadrtv4d-dl-d69845872dde39599d2222f2002a3ae254e7f8b4.tar
rtv4d-dl-d69845872dde39599d2222f2002a3ae254e7f8b4.tar.gz
rtv4d-dl-d69845872dde39599d2222f2002a3ae254e7f8b4.tar.bz2
rtv4d-dl-d69845872dde39599d2222f2002a3ae254e7f8b4.tar.lz
rtv4d-dl-d69845872dde39599d2222f2002a3ae254e7f8b4.tar.xz
rtv4d-dl-d69845872dde39599d2222f2002a3ae254e7f8b4.tar.zst
rtv4d-dl-d69845872dde39599d2222f2002a3ae254e7f8b4.zip
Diffstat (limited to 'rtv4d-dl.c')
-rw-r--r--rtv4d-dl.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/rtv4d-dl.c b/rtv4d-dl.c
index 976aec2..0dfe19c 100644
--- a/rtv4d-dl.c
+++ b/rtv4d-dl.c
@@ -614,7 +614,7 @@ int main (int argc, char ** argv) {
char * e; /* char pointer for the memes */
FILE * fd;
FILE * fd2;
- unsigned int i;
+ unsigned int i = 0;
time_t * casi = NULL;
time_t cas;
DIR * dir;
@@ -883,6 +883,25 @@ int main (int argc, char ** argv) {
z->seznam_predvajanja_url, z->kazalo_url, z->kos_format, z->api_url);
fclose(fd2);
break;
+ case 'r': /* skrivna funkcija za razhroščevanje/razvijanje */
+ if (argc <= 2) {
+ strcpy(z->program, "slo1");
+ } else {
+ strncpy(z->program, RTV_URL, RTV_ZIVO_PROGRAM_SIZEOF);
+ }
+ while (1) {
+ if (rtv_zivo_izpolni(z) != 0) {
+ RTV_NAPISI(NAPAKA, "Ni uspelo pridobiti metapodatkov pretoka.");
+ returnstatus = 4;
+ goto returncleanly;
+ }
+ if (i != z->prvi) {
+ i = z->prvi;
+ fprintf(stdout, "številka prvega kosa (z->prvi) je po novem %u\n",
+ i);
+ }
+ sleep(1);
+ }
default:
RTV_NAPISI(NAPAKA, "opcija (%c/%u) ne obstaja!",
RTV_NACIN[0], RTV_NACIN[0]);