Timeshifting in XMLTV (1 Viewer)

PN23

Portal Member
November 25, 2019
48
5
47
Home Country
United Kingdom United Kingdom
Hi @Ravstar

Try to navigate into that directory first using the cd command and then run chmod +x xmltv.sh

Let me know if you have any problems and I can try to take a look a look when I get a second.
 

Ravstar

New Member
October 19, 2020
9
0
Home Country
Great Britain (UK) Great Britain (UK)
I navigated into directory i.e. cd/media/hdd/epg
and then ./xmltv.sh

the xml.gz file gets downloaded without an issue though seems like gzip doesn’t work. I tried to replace it gunzip as you mentioned above but that didn’t work either
 

PN23

Portal Member
November 25, 2019
48
5
47
Home Country
United Kingdom United Kingdom
Were you able to make the script executable?

Also do you know what version of Linux that box is running?
 

PN23

Portal Member
November 25, 2019
48
5
47
Home Country
United Kingdom United Kingdom
@Ravstar

Thinking about it, even if the OS is pretty old, it should have the TAR command available.

Try changing the gzip/gunzip line to the following:-

tar -xzvf /media/hdd/epg/filename.xml.gz
 

Ravstar

New Member
October 19, 2020
9
0
Home Country
Great Britain (UK) Great Britain (UK)
@Ravstar

Thinking about it, even if the OS is pretty old, it should have the TAR command available.

Try changing the gzip/gunzip line to the following:-

tar -xzvf /media/hdd/epg/filename.xml.gz

changed this to tar but still same error
1603270147762.png

I am using Putty to SSH into box and when I manually paste the script in it, it works fine without error...
 

PN23

Portal Member
November 25, 2019
48
5
47
Home Country
United Kingdom United Kingdom
Can you send a screenshot of the script? There might be a typo or need something wrapping in quotes.
 

Ravstar

New Member
October 19, 2020
9
0
Home Country
Great Britain (UK) Great Britain (UK)
wget -O /media/hdd/epg1/epg_ripper_IN2.xml.gz https://url
gunzip -f /media/hdd/epg1/epg_ripper_IN2.xml.gz
sed -i 's/+0530/+0000/g' /media/hdd/epg1/epg_ripper_IN2.xml
mv /media/hdd/epg1/epg_ripper_IN2.xml /media/hdd/epg
rm /media/hdd/epg1/epg_ripper_IN2.xml.gz

I have tried replacing it to gzip -d and tar -xzvf none of them worked either
 
Last edited:

PN23

Portal Member
November 25, 2019
48
5
47
Home Country
United Kingdom United Kingdom
Hi @Ravstar

Can you try each command on its own and see what you get back?

Just gzip then enter, gunzip then enter and tar then enter and send back results?

I'm curious to see which tools maybe installed.
 

Ravstar

New Member
October 19, 2020
9
0
Home Country
Great Britain (UK) Great Britain (UK)
wget -O /media/hdd/epg1/epg_ripper_IN2.xml.gz https://url
gunzip -f /media/hdd/epg1/epg_ripper_IN2.xml.gz
sed -i 's/+0530/+0000/g' /media/hdd/epg1/epg_ripper_IN2.xml
mv /media/hdd/epg1/epg_ripper_IN2.xml /media/hdd/epg
rm /media/hdd/epg1/epg_ripper_IN2.xml.gz

I have tried replacing it to gzip -d and tar -xzvf none of them worked either

Ok. so finally I figured out how to run it properly.

I made this script in notepad++ and ftp it to box so had to run an additional command to move it from dos2unix i.e. To convert the EOL to LF instead of CR/LF

cd /media/hdd/epg/
dos2unix xmltv.sh
./xmltv.sh

And it run without an issue.:)

Many thank again @PN23 for all your help

Now I am setting daily cron
 

PN23

Portal Member
November 25, 2019
48
5
47
Home Country
United Kingdom United Kingdom
Ah that makes sense!

Always try to use a native text editor if you can (vi, vim, emacs, nano etc) as that gets around that problem.

Glad we got to bottom of it, happy viewing!
 

Users who are viewing this thread

Top Bottom