Jump to content


Photo

SQLite EPG trouble! Please help!

DM600

  • Please log in to reply
48 replies to this topic

#1 DimitarCC

  • PLi® Contributor
  • 1,423 posts

+51
Good

Posted 6 October 2009 - 10:57

I was try to make a config for sqlite epg for my tv channels but it not work.
I attach the files i was make........
Please anyone tell me what is wrong!
Thanks in advance!

Attached Files



Re: SQLite EPG trouble! Please help! #2 hemertje

  • Forum Moderator
    PLi® Core member
  • 33,492 posts

+118
Excellent

Posted 6 October 2009 - 10:58

have a look here (in Dutch): http://www.pli-image...thread_id=10540

on the Glassfibre 1GB DVB-C...


Re: SQLite EPG trouble! Please help! #3 DimitarCC

  • PLi® Contributor
  • 1,423 posts

+51
Good

Posted 6 October 2009 - 11:17

Unfortunately i dont speak Dutch so for me very difficult to understand!
Can you give me breaf explanation what is wrong with my config?

Re: SQLite EPG trouble! Please help! #4 Frenske

  • Forum Moderator
    PLi® Core member
  • 27,445 posts

+396
Excellent

Posted 6 October 2009 - 11:22

You could try to translate the page with Google translator as I just did myself.

Fill in the right url and Google will translate it fairly good. http://translate.google.com/#

Mijn schotel is een T90 met 10 LNB's. Daarnaast voor de fun nog een draaibaar systeem met een Triax TD 78.

Dreamboxen heb ik niet meer echt actief. Verder heb ik ook nog een een VU+ duo2 met 500Gb harddisk + een VU+ Uno, Zero, Solo 4K, Ultimo 4K, Zero 4K, Uno 4Kse. + ook nog een Xtrend ET7x00. Daarnaast heb ik ook nog diverse andere modellen w.o. een Formuler F4, ET8500, ET7500, Mut@nt 2400HD, Xsarius Fusion HD se en verder nog wel het e.e.a. waarmee op verzoek vanalles wordt getest. Iemand moet het tenslotte doen. ;) :)
Los van de eerder genoemde modellen heb ik nog wel een rits aan testsamples als Mut@nt 2400HD, HD60, GB UE4K, GB Trio4K, Maxitec Multibox combo en Twin, Octagon sf8008, sf8008 mini en last but nog least enkele modellen van het Grieks Duitse Edision.

Voor centrale opslag van media gebruik ik een Qnap 219P 
met tweemaal 2 Tb harddisks + een Synology DS414 met 12 Tb Totale opslag.

-------------------------------------------------------------------------------------------
Many answers to your question can be found in our wiki: Just one click away from this "solutioncentre".

Als ik alles al wist hoefde ik ook niets te vragen. If I had all the knowledge I had no questions at all.


Re: SQLite EPG trouble! Please help! #5 DimitarCC

  • PLi® Contributor
  • 1,423 posts

+51
Good

Posted 6 October 2009 - 11:27

Thanks! I was translate and read that.......
But i was do everything.
I was do the mapping and so on but the script just dont download anything from the server.....
I dont know what is wrong!

:(

Re: SQLite EPG trouble! Please help! #6 hemertje

  • Forum Moderator
    PLi® Core member
  • 33,492 posts

+118
Excellent

Posted 6 October 2009 - 11:33

you can have a look in the files if you will see any differences between yours and his files...

on the Glassfibre 1GB DVB-C...


Re: SQLite EPG trouble! Please help! #7 DimitarCC

  • PLi® Contributor
  • 1,423 posts

+51
Good

Posted 6 October 2009 - 11:38

Mappings are correct..... for example i have

22:1:2=Discovery_Science
UNKNOWN=AXN_Crime
UNKNOWN=AXN_SciFi

in my bg_pack.dat

so i have mapped only 1 channel.
But my scripts bg_pack.sh do not download the correctonding xmltv file from the server (http://sharobg.com/d...y_Science.xmltv)

So can anyone tell me what i do wrong?

Re: SQLite EPG trouble! Please help! #8 WanWizard

  • PLi® Core member
  • 69,119 posts

+1,763
Excellent

Posted 6 October 2009 - 11:49

Script looks ok, and the file downloads here without a problem. What happens if you type the wget command on the commandline?

p.s. Don't use windows encoding, Enigma doesn't understand that. Make sure your xmltv file is encoded in utf8.

Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: SQLite EPG trouble! Please help! #9 DimitarCC

  • PLi® Contributor
  • 1,423 posts

+51
Good

Posted 6 October 2009 - 11:52

How can i debug that script?

Re: SQLite EPG trouble! Please help! #10 DimitarCC

  • PLi® Contributor
  • 1,423 posts

+51
Good

Posted 6 October 2009 - 12:06

Well i was try with RadioTimeUK example and there is everything OK but even if i replcae in my script download link with radiotimeUK site lik=nk for example
wget "http://xmltv.radioti...m/xmltv/22.dat" -O "/tmp/1dat"
and again from my scrip nothing was downloaded..... i am not sure is my scrip start to running at all
how can i debug it?

Re: SQLite EPG trouble! Please help! #11 hemertje

  • Forum Moderator
    PLi® Core member
  • 33,492 posts

+118
Excellent

Posted 6 October 2009 - 12:10

did you give your script the correct rights so it can actually run, chmod 755 ?

on the Glassfibre 1GB DVB-C...


Re: SQLite EPG trouble! Please help! #12 DimitarCC

  • PLi® Contributor
  • 1,423 posts

+51
Good

Posted 6 October 2009 - 13:49

I will check

Re: SQLite EPG trouble! Please help! #13 DimitarCC

  • PLi® Contributor
  • 1,423 posts

+51
Good

Posted 6 October 2009 - 14:30

Yes you was write.... after change permissions to 775 script runs but....
when i use $chanId .... it read it strange way becasue it put an extra invisible character at the end... that makes download form the server inpossible.
Why that extra character show up? I cant understand :(
Also it do not want to import the data into the channel EPG is my xmltv format wrong?

Re: SQLite EPG trouble! Please help! #14 WanWizard

  • PLi® Core member
  • 69,119 posts

+1,763
Excellent

Posted 6 October 2009 - 17:33

Did you create the file on a windows machine?

If so, try to do a 'dos2unix <filename>' on those files, linux uses a different line end character than windows.

Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: SQLite EPG trouble! Please help! #15 DimitarCC

  • PLi® Contributor
  • 1,423 posts

+51
Good

Posted 6 October 2009 - 18:48

well filename i understand but even if i enter it correct still nothing is imported to epg.
is the trouble in my xmltv files format? i dont understand!

Re: SQLite EPG trouble! Please help! #16 WanWizard

  • PLi® Core member
  • 69,119 posts

+1,763
Excellent

Posted 6 October 2009 - 19:22

From the files you posted above, only bg_pack.cfg is saved with Windows line ends, the other two files are ok.

But you made some mistakes in the shell script. First, you can't just remove quotes when there are needed. Furthermore, you need the IFS variable as it defines the separator for the read command.

The line
IFS="$OIFS"

should be at the bottom of the script, not before the 'while read' loop. That's why it fails...

Re: SQLite EPG trouble! Please help! #17 DimitarCC

  • PLi® Contributor
  • 1,423 posts

+51
Good

Posted 7 October 2009 - 07:14

Yes i was fix that and fail is downloaded but nothing is posted to epg.db.
I attach my new script...

Attached Files



Re: SQLite EPG trouble! Please help! #18 nfnovice

  • Senior Member
  • 696 posts

0
Neutral

Posted 7 October 2009 - 09:02

you say earlier you only have one channel mapped - looks like discovery science in your example
how did you map ? using the epg plugin ?

then in your script in the wget line you have hard coded Cartoon_network.xmltv as the file to download?
output of file is to tmp/$chanId.dat
after the script runs .. is there a file in /tmp
what about capture the output when you run it and post that
DM800+DM7025+DM7020+DM7000+DM600+DM5620+DM500+VUDUO Dreambox great invention - whats it for ?

Re: SQLite EPG trouble! Please help! #19 DimitarCC

  • PLi® Contributor
  • 1,423 posts

+51
Good

Posted 7 October 2009 - 10:05

How to capture the output?
and yes i put cartoon just for testing purposes.
also yes file is downloaded in temp but nothing is posted to epg

Re: SQLite EPG trouble! Please help! #20 DimitarCC

  • PLi® Contributor
  • 1,423 posts

+51
Good

Posted 7 October 2009 - 10:15

p.s. but in downloaded file non english text is unreadable and in some places there is extra characters (xmltv file is encoded utf-8)



Also tagged with one or more of these keywords: DM600

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users