oztoppy Forum
Register Calendar Latest Topics
 
 
 


Reply
  Author   Comment   Page 1 of 2      1   2   Next
GarryB

Junior Member
Registered:
Posts: 20
Reply with quote  #1 
I pressed the yellow button on my remote as usual with jdaEPGMoreInfo and got back:

       "No result data from IMDB lookup".

I now get that error on every program.  The problem started this morning, 18/4/18.  The function was fine yesterday.

I've done a test wget like this:

     wget "http://www.imdb.com/find?s=all&q=mission" -qO "result.txt"

The output file was empty suggesting something really has changed.  Running with output to console I get this:

wget "http://www.imdb.com/find?s=all&q=mission"
--2018-04-18 14:47:18--  http://www.imdb.com/find?s=all&q=mission
Resolving http://www.imdb.com (www.imdb.com)... 52.94.237.74
Connecting to http://www.imdb.com (www.imdb.com)|52.94.237.74|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://www.imdb.com/find?s=all&q=mission [following]
--2018-04-18 14:47:19--  https://www.imdb.com/find?s=all&q=mission
Connecting to http://www.imdb.com (www.imdb.com)|52.94.237.74|:443... connected.
ERROR: cannot verify http://www.imdb.com's certificate, issued by ‘CN=Amazon,OU=Server CA 1B,O=Amazon,C=US’:
Unable to locally verify the issuer's authority.
To connect to http://www.imdb.com insecurely, use `--no-check-certificate'.

Hope this helps.  jdsEPGMoreInfo has been my favourite TAP for years.

Cheers.


Garry


__________________
Topfield 7160 (33021), Australian sourced September 2011.
TAPs: AutoStandby, jdaEPGMoreInfo, TimeShiftSaver, TMSMount, TMSTimer
0
trf7160

Junior Member
Registered:
Posts: 7
Reply with quote  #2 
What’s really disappointing is I find out about a new TAP that could be useful only by now it’s stopped working DOH. I’ll install it and see if it works for me, if not it might be IMDB has changed something, and one of the smart guys will hopefully update the TAP
0
DeltaMikeCharlie

Mostly Harmless
Registered:
Posts: 240
Reply with quote  #3 
Quote:
Originally Posted by GarryB
<SNIP>
wget "http://www.imdb.com/find?s=all&q=mission"

--2018-04-18 14:47:18--  http://www.imdb.com/find?s=all&q=mission
Resolving http://www.imdb.com (www.imdb.com)... 52.94.237.74
Connecting to http://www.imdb.com (www.imdb.com)|52.94.237.74|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://www.imdb.com/find?s=all&q=mission [following]
--2018-04-18 14:47:19--  https://www.imdb.com/find?s=all&q=mission
Connecting to http://www.imdb.com (www.imdb.com)|52.94.237.74|:443... connected.
ERROR: cannot verify http://www.imdb.com's certificate, issued by ‘CN=Amazon,OU=Server CA 1B,O=Amazon,C=US’:
Unable to locally verify the issuer's authority.
To connect to http://www.imdb.com insecurely, use `--no-check-certificate'.
<SNIP>


What is happening is that the TAP is initially calling for a HTTP (unencrypted) page.  IMBD is responding with a "302" which is a redirection instruction.  In this case, the redirection is to a HTTPS (encrypted) site for exactly the same query.

Unfortunately, wget (the underlying command that fetches the IMDB information) is unable to validate the certificate used for the encryption process and aborts the process.

There are 2 scripts responsible for calling wget:  'moviedetail.sh' and 'movieget.sh'.  You need to edit these files and for all instances of wget, add the argument '--no-check-certificate' to bypass certificate validation.

The scripts seem to be different between v1.7 and 1.9, but the change should look something like this:

Before
Code:
wget "http://www.imdb.com/find?s=all&q=$search" -qO "$wgeturl"

After
Code:

wget "http://www.imdb.com/find?s=all&q=$search" -qO --no-check-certificate "$wgeturl"

I have not tested this.

0
GarryB

Junior Member
Registered:
Posts: 20
Reply with quote  #4 
Thanks.  I tried that.  I think the code should be:

wget "http://www.imdb.com/find?s=all&q=$search" --no-check-certificate -qO "$wgeturl"

Otherwise it produces an output file called "--no-check-certificate".

Anyway, I get no better result.  The script "movieget.sh" produces no output.  It doesn't even create an empty "result1.txt" file.

I've tested the amended wget command in Terminal on my iMac and it works so, I don't understand why it doesn't work on the Topfield.  I tried this form of the wget too:

Code:
 wget "http://www.imdb.com/find?s=all&q=mission" --no-check-certificate -o "$errorfile" -O "$wgeturl"

That worked on my iMac with details logged but didn't produce an error.txt file on the Topfield so, I don't know how to get feedback from the wget command when running on the Topfield.

Probably something simple, but, I'm stumped.

__________________
Topfield 7160 (33021), Australian sourced September 2011.
TAPs: AutoStandby, jdaEPGMoreInfo, TimeShiftSaver, TMSMount, TMSTimer
0
trf7160

Junior Member
Registered:
Posts: 7
Reply with quote  #5 
So I tried it and it doesn’t work for me at all
- installed
- ran
- got an error – missing scripts
- actually read the instructions ;-)
- copied the .sh scripts to the settings folder
- still get missing scripts

So looks like I can’t test
0
GarryB

Junior Member
Registered:
Posts: 20
Reply with quote  #6 
Quote:
Originally Posted by trf7160
still get missing scripts So looks like I can’t test


It does work (except for IMDB search).  Make sure you have all the needed files in place:

In /ProgramFiles/Settings/jdaEPGMoreInfo/

   jdaEPGMoreInfo.ini
   moviedetail.sh
   movieget.sh
   wget

In /ProgramFiles/Settings/Fonts/

   Calibri_12.ufnt
   Calibri_14.ufnt
   Calibri_20.ufnt

You must be using the FirmwareTMS.dat file from FireBirdLib. Try this downloading this copy: https://github.com/bulletmark/FireBirdLib/blob/master/FirmwareTMS.dat

You can change settings by using the TMSCommander TAP.

Cheers.


__________________
Topfield 7160 (33021), Australian sourced September 2011.
TAPs: AutoStandby, jdaEPGMoreInfo, TimeShiftSaver, TMSMount, TMSTimer
0
DeltaMikeCharlie

Mostly Harmless
Registered:
Posts: 240
Reply with quote  #7 
Quote:
Originally Posted by GarryB
Thanks.  I tried that.  I think the code should be:

wget "http://www.imdb.com/find?s=all&q=$search" --no-check-certificate -qO "$wgeturl"

Otherwise it produces an output file called "--no-check-certificate".

Anyway, I get no better result.  The script "movieget.sh" produces no output.  It doesn't even create an empty "result1.txt" file.

I've tested the amended wget command in Terminal on my iMac and it works so, I don't understand why it doesn't work on the Topfield.  I tried this form of the wget too:

Code:
 wget "http://www.imdb.com/find?s=all&q=mission" --no-check-certificate -o "$errorfile" -O "$wgeturl" 

That worked on my iMac with details logged but didn't produce an error.txt file on the Topfield so, I don't know how to get feedback from the wget command when running on the Topfield.

Probably something simple, but, I'm stumped.


Have you tried using HTTPS for the initial attempt?  This will eliminate the 302 and avoid the redirection and potentially the whole error.

wget
"https://www.imdb.com/find?s=all&q=$search" --no-check-certificate -qO "$wgeturl"
0
GarryB

Junior Member
Registered:
Posts: 20
Reply with quote  #8 
Quote:
Originally Posted by DeltaMikeCharlie

Have you tried using HTTPS for the initial attempt?  This will eliminate the 302 and avoid the redirection and potentially the whole error.

wget
"https://www.imdb.com/find?s=all&q=$search" --no-check-certificate -qO "$wgeturl"


Gave that a try.  No change - still absolutely nothing.  There must be something I don't understand about how the topfield OS works.  For example, I changed the wget call to:

 wget "https://www.imdb.com/find?s=all&q=mission"--no-check-certificate -o "$errorfile" -O "$wgeturl"

When I looked at the FTP Client, the file "error.txt" was visible and was 22 bytes in size.  After about a minute, however, it disappeared !  So, what's going on there ?

I added another line of code early in movieget.sh:

 echo "Just trying to keep this file" > $errorfile

This time when I ran the IMDB search I got this message: "error from IMDB lookup"

That's new.  But, the error.txt file contained only my own dummy message.  Perhaps the TAP is checking for the contents of error.txt and flagging there is an error if something is written to it. So, I added another line to try to send wget log messages to another file that I called wgetlog.txt. That file was created but was empty.  I don't understand why isn't wget sending its log details to the output file ?  Is this related to the wget call being within an sh script ?

So, still stumped.

__________________
Topfield 7160 (33021), Australian sourced September 2011.
TAPs: AutoStandby, jdaEPGMoreInfo, TimeShiftSaver, TMSMount, TMSTimer
0
davidmorr

Senior Member
Registered:
Posts: 157
Reply with quote  #9 
Quote:
Originally Posted by GarryB
wget "https://www.imdb.com/find?s=all&q=mission"--no-check-certificate -o "$errorfile" -O "$wgeturl"

I would say there is meant to be a space between " and --.

0
GarryB

Junior Member
Registered:
Posts: 20
Reply with quote  #10 
Quote:
Originally Posted by davidmorr

I would say there is meant to be a space between " and --.


Of course.  Here is an exact copy of what I currently have:
Code:
wget "https://www.imdb.com/find?s=all&q=$search" --no-check-certificate -qO "$wgeturl"


Have tested again but, still just get the "No result data from IMDB lookup" message.  I have also been testing the form of the wget call on my iMac.

Any ideas on how to get wget log data out to a file.  Is there a console/terminal/CLI on the Topfield ?

__________________
Topfield 7160 (33021), Australian sourced September 2011.
TAPs: AutoStandby, jdaEPGMoreInfo, TimeShiftSaver, TMSMount, TMSTimer
0
DeltaMikeCharlie

Mostly Harmless
Registered:
Posts: 240
Reply with quote  #11 
http://firebird.tms-taps.net/TMSTelnetd.zip (telnet only)

or

http://deltamikecharlie.yolasite.com/#TMSServer (telnet & nfs)

User is 'root', no password.

You will probably have to look in /mnt/hd/ProgramFiles/Settings/jdaEPGMoreInfo to find the scripts.

There is also a rudimentary copy of 'vi' on the PVR so you can edit scripts directly if you like.  Personally, I use the FTP module in Notepad++.
0
GarryB

Junior Member
Registered:
Posts: 20
Reply with quote  #12 
Thanks for this but, I'm running macOS 10.13.4 which has no telnet client (unless I build one from Homebrew or DL something that might work).

Anyway, I'm trying to replicate moviegoer.sh on my Mac and I get more results than on the Topfield but, am still having trouble.  I can get the IMDB search page into result1.txt but can't figure out how to pass a search term to the script.  I've tried a couple of ideas but I get a syntax error:

awk: syntax error in regular expression ([Ii]ncludes  at 
 input record number 1, file
 source line number 1

I've made no changes to the formation of the search term and most of this Linux stuff is beyond me so, I'm giving up.


__________________
Topfield 7160 (33021), Australian sourced September 2011.
TAPs: AutoStandby, jdaEPGMoreInfo, TimeShiftSaver, TMSMount, TMSTimer
0
davidmorr

Senior Member
Registered:
Posts: 157
Reply with quote  #13 
Quote:
Originally Posted by GarryB
Thanks for this but, I'm running macOS 10.13.4 which has no telnet client (unless I build one from Homebrew or DL something that might work).

OS X has always had a telnet client. Go to Terminal (Utilities folder) and type:

telnet 192.168.xxx.yyy

0
GarryB

Junior Member
Registered:
Posts: 20
Reply with quote  #14 
Quote:
OS X has always had a telnet client. Go to Terminal (Utilities folder) and type:

telnet 192.168.xxx.yyy

This is what I get:

user$ telnet

-bash: telnet: command not found

Here's some background:  https://forums.developer.apple.com/thread/79056.

It's probable that nc (NetCat) would do the same job but, I've run out of steam on all this.  I sent an email to the jdaEPGMoreInfo author, John De Angelis, who might be able to provide some insight.

__________________
Topfield 7160 (33021), Australian sourced September 2011.
TAPs: AutoStandby, jdaEPGMoreInfo, TimeShiftSaver, TMSMount, TMSTimer
0
DeltaMikeCharlie

Mostly Harmless
Registered:
Posts: 240
Reply with quote  #15 
In Sierra, you should be able to run telnet from the terminal.

/usr/bin/telnet

Otherwise, try this:

https://www.ssh.com/ssh/putty/mac/
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.