wget. help needed please

digidude

Sheep worrier.
VIP Member
Joined
Aug 8, 2001
Messages
24,754
Reaction score
3,741
Location
The edge.
im recoding my plugin for the tm800 to work with all enigma2 receivers, and while the plugin itself now works, the scripts are causing me a few problems.

to see how popular files are, the tm800 downloads from my server, where people can look to see exactly how many times the files been downloaded, this isnt a page counter like some download centers, which you can sit and refresh, this only counts downloads.

for the tm800 to be able to download directly from the server, i use redirects, so rats latest channel list can always be downloaded from the one address, here is the details when you tell the tm800 to retrieve the file and save it

Code:
You don't have permission to view the code content. Log in or register now.

as you can see, it resolves the redirect, follows it, downloads the file, which then also causes the live counter on the server to increase by 1.

however, trying this on other receivers, it says the address aint right, as shown below

Code:
You don't have permission to view the code content. Log in or register now.

Code:
You don't have permission to view the code content. Log in or register now.


Code:
You don't have permission to view the code content. Log in or register now.

does anyone know why this is happening? is the tm800 able to deal with 'real' URLs and the other receivers cannot?

any help would be brill, as theres only 3 or 4 little annoying things like this in the scripts stopping me from releasing the plugin for all E2 receivers ;)

i know i can remove the ?dir= and &file= from the url, and the other receivers will then follow the link, but, it then wont get counted on the server, this is why i setup redirects for the tm800 to begin with
 
Last edited:
I wrote a similair script that downloads the latest channels list from a server, and refreshes

The script has been tested on a enigma 1 and enigma 2 dreambox but am sure can be modified to run on any engima based box. Hopefully my script can help you with your problem.
 

Attachments

  • channelrefresh.zip
    2 KB · Views: 14
Last edited:
have you tried escaping the & symbols with backslashes \&
 
do the other boxes have wget capability? do you have to compile the wget package to the image first?

edit forget that I can see wget reporting the error in your log
 
Is it not a simple thing that you have to use http:// to tell it that it is a proper URL ?
Or that you have to give it the FQDN and path all together?

I also notice on the TM you got a 302 message "302 Moved Temporarily" could that have anything to do with it?
Also the TM is reusing an existing connection.

But then again i'm probably talking crap...
 
the TM is following the redirects to get at the file, just like a browser or download manager application does, but the other receivers follow the redirect, then the first ? in the url of the redirected address throws the error
 
the TM is following the redirects to get at the file, just like a browser or download manager application does, but the other receivers follow the redirect, then the first ? in the url of the redirected address throws the error

Can you not rewrite to go direct to the redirection or to a webpage that does the redirection for you or am I going off track, I also guess you've fixed this by now as its a couple of days old lol
 
@jfish

Thanks for the time you dedicated to create such a useful script it worked perfectly on my dm500s, but on my dm800 (on a fresh installation image) it work ok the first time but after that when I retry I am having the following error,

2011 21:20:08 +0100 Starting Update
Wed, 21 Dec 2011 21:20:08 +0100 DM800HD and Enigma 2 Detected
Wed, 21 Dec 2011 21:20:08 +0100 *** Error Connecting To Server 192.168.0.128 *** -> file are located on this web server
Wed, 21 Dec 2011 21:20:08 +0100 Process Complete With Errors


I tried to change the integer number on my server of the "remotever.txt" but I keep having the same error.

Could you kindly help me to solve this issue with my E2 image


Thanks for your time
 
@jfish

Thanks for the time you dedicated to create such a useful script it worked perfectly on my dm500s, but on my dm800 (on a fresh installation image) it work ok the first time but after that when I retry I am having the following error,

2011 21:20:08 +0100 Starting Update
Wed, 21 Dec 2011 21:20:08 +0100 DM800HD and Enigma 2 Detected
Wed, 21 Dec 2011 21:20:08 +0100 *** Error Connecting To Server 192.168.0.128 *** -> file are located on this web server
Wed, 21 Dec 2011 21:20:08 +0100 Process Complete With Errors


I tried to change the integer number on my server of the "remotever.txt" but I keep having the same error.

Could you kindly help me to solve this issue with my E2 image


Thanks for your time

can you post full log file pleas
 
can try this one- just aded aditional logging

also when it fails, can you post the tmp/check.txt file
 

Attachments

  • channelrefresh.zip
    2.1 KB · Views: 1
It looks like it's not reusing the existing connection as your first trace, the second trace shows:

Connecting to rats.tm800hd.co.uk (80.83.123.210:80)
Connecting to technomatesoftware.co.uk (80.83.123.210:80)

so it attempts to fetch the file from the technomates site rather than the rats site? Or have I completely mis-interpreted things?
 
Back
Top