zap2xml icon indicating copy to clipboard operation
zap2xml copied to clipboard

[Bug]: multiple pulls require multiple files

Open Swamp-up opened this issue 5 months ago • 2 comments

What happened?

Trying to pull more than one location in docker. The docker setup only writes to xmltv/xmltv.xml file. I have setup the run-zap2xml.sh file as so: #!/bin/sh cd /app/ node dist/index.js --lineupId=CAN-OTAN3Y1K4 --timespan=6 --country=CAN --postalCode=N3Y1K4 --outputfile=xmltv-simcoe.xml node dist/index.js --lineupId=USA-OTA14201 --timespan=6 --country=USA --postalCode=14201 --outputfile=xmltv-buffalo.xml

Ignores the file names and writes the first to xmltv.xml and then overwrites that file with the second node request. Maybe I am doing this incorrectly?

Relevant log output


Swamp-up avatar Jul 30 '25 22:07 Swamp-up

I think it needs to be “outputFile” not “outputfile”

Hackashaq666 avatar Jul 30 '25 23:07 Hackashaq666

Changed to outputFile and also tried --OUTPUT_FILE

#!/bin/sh cd /app/ node dist/index.js --lineupId=CAN-OTAN3Y1K4 --timespan=6 --country=CAN --postalCode=N3Y1K4 --outputFile=xmltv-simcoe.xml node dist/index.js --lineupId=USA-OTA14201 --timespan=6 --country=USA --postalCode=14201 --OUTPUT_FILE=/zap2xml/xmltv-buffalo.xml

The script keeps adding the new epg to xmltv.xml

Docker compose is as below. Have tried without the output file named. It still outputs to xmltv.xml file.

services: zap2xml: container_name: zap2xml image: ghcr.io/jef/zap2xml:nightly environment: OUTPUT_FILE: /xmltv/xmltv.xml volumes: - /home/user/docker/zap2xml:/xmltv restart: unless-stopped


To fix Changed the docker compose environment to

  - TZ=America/Toronto

and removed outputfile reference. Docker did not like empty environment so added the TZ

Then changed run-zap2xml.sh to

#!/bin/sh cd /app/ node dist/index.js --lineupId=CAN-OTAN3Y1K4 --timespan=6 --country=CAN --postalCode=N3Y1K4 --outputFile=/xmltv/xmltv-simcoe.xml node dist/index.js --lineupId=USA-OTA14201 --timespan=6 --country=USA --postalCode=14201 --outputFile=/xmltv/xmltv-buffalo.xml

It will now write to designated .xml files

Swamp-up avatar Aug 03 '25 14:08 Swamp-up