Timeshifting in XMLTV (1 Viewer)

PN23

Portal Member
November 25, 2019
34
2
45
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
34
2
45
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
34
2
45
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
34
2
45
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
34
2
45
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
34
2
45
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

Similar threads

I am using Media Portal 2 and I use XMLTV to download programming schedules from Schedules Direct. I have it set up to use the "tv_grab_na_dd" grabber by executing the command: xmltv.exe tv_grab_na_dd --days 10 --output tvguide.xml The command properly downloads the schedules but the times are based on GMT (+0000); I have the line...
I am using Media Portal 2 and I use XMLTV to download programming schedules from Schedules Direct. I have it set up to use the...
I am using Media Portal 2 and I use XMLTV to download programming schedules from Schedules Direct. I have it set up to use the...
Replies
0
Views
424
Hopefully a simple question: I have not watched Free-to-air satellite TV for months and so unsurprisingly the other day when I wanted to watch something on UK Channel 4+1 I found that the channel had moved. Actually, loads of channels had moved. So I did a rescan on both my tuners but found that pretty much none of the channels...
Hopefully a simple question: I have not watched Free-to-air satellite TV for months and so unsurprisingly the other day when I...
Hopefully a simple question: I have not watched Free-to-air satellite TV for months and so unsurprisingly the other day when I...
Replies
0
Views
177
Thanks for your feedback!
Thanks for your feedback!
I'm not sure exactly when this started, I've been dealing with it for a while until I had time to troubleshoot it. I'm pretty sure...
Replies
34
Views
2K
Having used MP1 since 15 years, these epg related problems occuring after a fresh install stumble me. Needed to change a system hdd and decided it was time for a clean install anyway. Other hardware (C2D, 8 Gb ram, no tv cards - IP only) unchanged. Was running an earlier Win10 version with MP 1.24 which had been updated for years...
Having used MP1 since 15 years, these epg related problems occuring after a fresh install stumble me. Needed to change a system...
Having used MP1 since 15 years, these epg related problems occuring after a fresh install stumble me. Needed to change a system...
Replies
0
Views
510
Hi, must be really a while, cuz I can not remember any post from you ;) But might be also that I joined the team too late. Yes, there will be many things. Main reason is simply, that MP2 is not developed based on MP1. I for example never used MP1. I tried it lately to test voice control and was shocked about many inconsistancies in...
Hi, must be really a while, cuz I can not remember any post from you ;) But might be also that I joined the team too late. Yes...
It´s been a while... :) Well, simply the reason is cause MP1 was working so well... :) Now I decided to upgrade my old servers and...
Replies
1
Views
242
Top Bottom