Page 1 of 1

mirror.php code not working

Posted: Tue Sep 26, 2006 3:09 am
by platypus_low
I think the subject speaks for itself ... the error when u stick it in wget is :

Code: Select all

wget -c http://tllts.org/mirror.php?fname=tllts_158-09-20-06.ogg
--16:04:56--  http://tllts.org/mirror.php?fname=tllts_158-09-20-06.ogg
           => `mirror.php?fname=tllts_158-09-20-06.ogg'
Resolving tllts.org... 70.103.16.156
Connecting to tllts.org|70.103.16.156|:80... connected.
HTTP request sent, awaiting response... 302
Location:  [following]
--16:04:57--  http://tllts.org/mirror.php?fname=tllts_158-09-20-06.ogg
           => `mirror.php?fname=tllts_158-09-20-06.ogg'
Connecting to tllts.org|70.103.16.156|:80... connected.
HTTP request sent, awaiting response... 302
Location:  [following]
--16:04:58--  http://tllts.org/mirror.php?fname=tllts_158-09-20-06.ogg
           => `mirror.php?fname=tllts_158-09-20-06.ogg'
Connecting to tllts.org|70.103.16.156|:80... connected.
HTTP request sent, awaiting response... 302
Location: http://www.jeffratliff.org /mirror/TLLTS/ogg/tllts_158-09-20-06.ogg [following]
--16:04:59--  http://www.jeffratliff.org%20/mirror/TLLTS/ogg/tllts_158-09-20-06.ogg
           => `tllts_158-09-20-06.ogg'
Resolving www.jeffratliff.org ... failed: Name or service not known.

A stray space character somewhere linc ?

Re: mirror.php code not working

Posted: Tue Sep 26, 2006 7:07 am
by Linc
platypus_low wrote:I think the subject speaks for itself ... the error when u stick it in wget is :

Code: Select all

wget -c http://tllts.org/mirror.php?fname=tllts_158-09-20-06.ogg
--16:04:56--  http://tllts.org/mirror.php?fname=tllts_158-09-20-06.ogg
           => `mirror.php?fname=tllts_158-09-20-06.ogg'
Resolving tllts.org... 70.103.16.156
Connecting to tllts.org|70.103.16.156|:80... connected.
HTTP request sent, awaiting response... 302
Location:  [following]
--16:04:57--  http://tllts.org/mirror.php?fname=tllts_158-09-20-06.ogg
           => `mirror.php?fname=tllts_158-09-20-06.ogg'
Connecting to tllts.org|70.103.16.156|:80... connected.
HTTP request sent, awaiting response... 302
Location:  [following]
--16:04:58--  http://tllts.org/mirror.php?fname=tllts_158-09-20-06.ogg
           => `mirror.php?fname=tllts_158-09-20-06.ogg'
Connecting to tllts.org|70.103.16.156|:80... connected.
HTTP request sent, awaiting response... 302
Location: http://www.jeffratliff.org /mirror/TLLTS/ogg/tllts_158-09-20-06.ogg [following]
--16:04:59--  http://www.jeffratliff.org%20/mirror/TLLTS/ogg/tllts_158-09-20-06.ogg
           => `tllts_158-09-20-06.ogg'
Resolving www.jeffratliff.org ... failed: Name or service not known.

A stray space character somewhere linc ?
Actually, the subject only speaks for itself in that it is wrong. The mirror code and mechanism works fine. The problem is that each mirror adds themselves to the rotation and this particular url has an extra space in it making it invalid. I just pulled the space out and all should be well again.

By the way, if you do encounter this, and you all probably will on occasion as people do make typos once in a while, please do not hesitate to email me so I can fix it right away, and also you can just re-download it. Every time you make a request for a file a new random mirror site should pop up, and they won't all be bad ;-)

Re: mirror.php code not working

Posted: Tue Sep 26, 2006 8:13 am
by Gomer_X
Linc wrote:By the way, if you do encounter this, and you all probably will on occasion as people do make typos once in a while, please do not hesitate to email me so I can fix it right away, and also you can just re-download it. Every time you make a request for a file a new random mirror site should pop up, and they won't all be bad ;-)
The real problem is I mistyped the URL when I added the show to the feed (I think). Can we add some error checking to the script? Pinging the URL to see that the file exists would help. Once I've submitted my mirror, I have no way of verifying it unless I repeatedly hit the the feed until I get my mirror. For extra points you could check the submitted URL to make sure the file is for an existing show, and that the size is right.

In the mean time I'm working on some automation on this end so my human error can be eliminated. :)

Re: mirror.php code not working

Posted: Tue Sep 26, 2006 11:08 am
by Linc
Gomer_X wrote:
The real problem is I mistyped the URL when I added the show to the feed (I think). Can we add some error checking to the script? Pinging the URL to see that the file exists would help. Once I've submitted my mirror, I have no way of verifying it unless I repeatedly hit the the feed until I get my mirror. For extra points you could check the submitted URL to make sure the file is for an existing show, and that the size is right.

In the mean time I'm working on some automation on this end so my human error can be eliminated. :)
I believe I am goint to put a link on the result page when you add your link, that points back to itself. That way you can just click on it quickly to see if it is valid.

Re: mirror.php code not working

Posted: Wed Sep 27, 2006 9:03 am
by Gomer_X
Linc wrote: I believe I am goint to put a link on the result page when you add your link, that points back to itself. That way you can just click on it quickly to see if it is valid.
W00t!! That would work. Simple but effective!