<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/19668" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2014-07-25T11:59:32-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/19668</id>

		<entry>
		<author><name><![CDATA[Nocty]]></name></author>
		<updated>2014-07-25T11:59:32-04:00</updated>

		<published>2014-07-25T11:59:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103043#p103043</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103043#p103043"/>
		<title type="html"><![CDATA[Thanks!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103043#p103043"><![CDATA[
Thanks a ton for your hard work, great script! I posted the same fix as a comment on your github in case anyone else is a Linux scrub like me and has the same issue.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12406">Nocty</a> — Fri Jul 25, 2014 11:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ngtjah]]></name></author>
		<updated>2014-07-25T11:46:10-04:00</updated>

		<published>2014-07-25T11:46:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103041#p103041</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103041#p103041"/>
		<title type="html"><![CDATA[links - url and img collector]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103041#p103041"><![CDATA[
NICE! Enjoy!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12372">ngtjah</a> — Fri Jul 25, 2014 11:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nocty]]></name></author>
		<updated>2014-07-25T11:06:12-04:00</updated>

		<published>2014-07-25T11:06:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103040#p103040</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103040#p103040"/>
		<title type="html"><![CDATA[Perplexing - EDIT: FIXED!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103040#p103040"><![CDATA[
Yeah something is definitely not right on my end, I wrote a simple Perl script to compare MIME type responses based on this: <br><br><a href="http://stackoverflow.com/questions/523773/how-do-i-find-a-links-content-type-in-perl" class="postlink">http://stackoverflow.com/questions/5237 ... pe-in-perl</a><br><br>and it is returning different types for the same link for HTTP vs HTTPS<br><div class="codebox"><p>Code: </p><pre><code>user@AALurker:~/links$ perl test.plTrying https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-xfp1/t1.0-9/1513695_314741348650880_1231833456_n.jpgThe type is text/plainTrying http://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-xfp1/t1.0-9/1513695_314741348650880_1231833456_n.jpgThe type is image/jpeg</code></pre></div>Any thoughts? I'm going to try installing LWP from something other than the Debian package manager.<br><br><span style="font-size:150%;line-height:116%">EDIT: Fixed it! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"></span><br><br>I think the version of LWP installed via Debian's software center was too old to support HTTPS or didn't include<br><br><a href="http://search.cpan.org/~mschilli/LWP-Protocol-https-6.06/" class="postlink">http://search.cpan.org/~mschilli/LWP-Pr ... ttps-6.06/</a><br><br>as a caveat, there was only a brief span of time where the HTTPS module was included by default, my version was too old, anything past 6.02 is too new because <br><blockquote class="uncited"><div>This module used to be bundled with the libwww-perl, but it was unbundled in v6.02 in order to be able to declare its dependencies properly for the CPAN tool-chain. Applications that need https support can just declare their dependency on LWP::Protocol::https and will no longer need to know what underlying modules to install.</div></blockquote>I was able to resolve this issue by re-installing via the CPAN shell. Using sudo or at a root console:<br><div class="codebox"><p>Code: </p><pre><code>root@AALurker: perl -MCPAN -eshell (may need to initialize, answer all questions with default answer)cpan&gt; install Bundle::LWP (again answer default or "yes" for all questions)cpan&gt; install LWP::Protocol::https (again answer default or "yes" for all questions)</code></pre></div>Once I did the above, links_logs.log output was:<br><div class="codebox"><p>Code: </p><pre><code>Initialize Links ObjectChecking existance of site in database..not dupeRemote Server Mime Type: text/html Title: Blaze Loves His Kennel (ORIGINAL) Husky Says No to Kennel - Funny - YouTubeEntering site...MYSQL:INSERT INTO links (site, announcer, edate, type, title, filename, twidth, theight, width, height, appid) VALUES ('https://www.youtube.com/watch?v=hCRDskZrUMU', 'Nocty', '2014-07-25 10:39:46', 'irc', 'Blaze Loves His Kennel (ORIGINAL) Husky Says No to Kennel - Funny - YouTube', NULL, NULL, NULL, NULL, NULL, NULL)Announcer : Nocty   URL : https://www.youtube.com/watch?v=hCRDskZrUMU$VAR1 = bless( {                 'isdupe' =&gt; 0,                 'date' =&gt; '2014-07-25 10:39:46',                 'parseline' =&gt; '[10:39:46:2014-07-25] &lt;@Nocty&gt; https://www.youtube.com/watch?v=hCRDskZrUMU',                 'body' =&gt; 'https://www.youtube.com/watch?v=hCRDskZrUMU',                 'www_img' =&gt; 'https://www.youtube.com/watch?v=hCRDskZrUMU',                 'mimetype_returncode' =&gt; '200',                 'title' =&gt; 'Blaze Loves His Kennel (ORIGINAL) Husky Says No to Kennel - Funny - YouTube',                 'type' =&gt; 'irc',                 'announcer' =&gt; 'Nocty',                 'mimetype' =&gt; 'text/html',                 'www_url' =&gt; 'https://www.youtube.com/watch?v=hCRDskZrUMU'               }, 'Links' );1 entry added/updated to the database.done.</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12406">Nocty</a> — Fri Jul 25, 2014 11:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nocty]]></name></author>
		<updated>2014-07-25T08:46:42-04:00</updated>

		<published>2014-07-25T08:46:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103038#p103038</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103038#p103038"/>
		<title type="html"><![CDATA[You're onto something]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103038#p103038"><![CDATA[
Actually it looks like you're definitely onto something; it would appear that none of my HTTPS links are parsing correctly.<br><div class="codebox"><p>Code: </p><pre><code> Initialize Links ObjectChecking existance of site in database..not dupeThis URL: https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-xfp1/t1.0-9/1513695_314741348650880_1231833456_n.jpg doesn't really exist!! Return Code: 501$VAR1 = bless( {                 'isdupe' =&gt; 0,                 'date' =&gt; '2014-07-18 03:01:17',                 'parseline' =&gt; '[03:01:17:2014-07-18] &lt;Frank&gt; https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-xfp1/t1.0-9/1513695_314741348650880_1231833456_n.jpg btfo',                 'body' =&gt; 'https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-xfp1/t1.0-9/1513695_314741348650880_1231833456_n.jpg btfo',                 'mimetype_returncode' =&gt; 501,                 'type' =&gt; 'irc',                 'announcer' =&gt; 'Frank',                 'mimetype' =&gt; 'text/plain',                 'www_url' =&gt; 'https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-xfp1/t1.0-9/1513695_314741348650880_1231833456_n.jpg'               }, 'Links' );0 entries added/updated to the database.done. </code></pre></div>as far as my versions<br><br>Version: 5.836-1 (libwww-perl)<br>Version: 1.30-1 (libmime-types-perl)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12406">Nocty</a> — Fri Jul 25, 2014 8:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ngtjah]]></name></author>
		<updated>2014-07-24T20:32:06-04:00</updated>

		<published>2014-07-24T20:32:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103037#p103037</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103037#p103037"/>
		<title type="html"><![CDATA[links - url and img collector]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103037#p103037"><![CDATA[
Interesting... <br>I can't seem to replicate the issue on my system...possibly some differences in our perl modules...  I do see that now you are receiving a 500 error now, where before it was a 501. 500 is less specific an error than 501 so that doesn't really help... hmmm..<br><br>Could it be that it works with http and not https?<br><br>Would you also paste the full log from this entry starting from "initializing links object"? Can you show me the log from a youtube that does work as well?<br><br>I could create an option to strip the URL paramaters like you suggested, but lets make sure we know where the issue is first.<br><br>thanks!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12372">ngtjah</a> — Thu Jul 24, 2014 8:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nocty]]></name></author>
		<updated>2014-07-24T11:49:43-04:00</updated>

		<published>2014-07-24T11:49:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103028#p103028</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103028#p103028"/>
		<title type="html"><![CDATA[Same error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103028#p103028"><![CDATA[
Still getting the same error with the updated links.pm; it seems to not like anything as far as the &amp; parameter in the URL<br><div class="codebox"><p>Code: </p><pre><code> This URL: https://www.youtube.com/watch?v=HMUDVMiITOU&amp;t=10 doesn't really exist!! Return Code: 500$VAR1 = bless( {                 'isdupe' =&gt; 0,                 'date' =&gt; '2014-07-24 11:30:46',                 'parseline' =&gt; '[11:30:46:2014-07-24] &lt;@Nocty&gt; https://www.youtube.com/watch?v=HMUDVMiITOU&amp;t=10',                 'body' =&gt; 'https://www.youtube.com/watch?v=HMUDVMiITOU&amp;t=10',                 'mimetype_returncode' =&gt; 500,                 'type' =&gt; 'irc',                 'announcer' =&gt; 'Nocty',                 'mimetype' =&gt; 'text/plain',                 'www_url' =&gt; 'https://www.youtube.com/watch?v=HMUDVMiITOU&amp;t=10'               }, 'Links' ); </code></pre></div>You could potentially strip anything starting at the first &amp; in a YouTube URL for the parsing, since these options in the URL only instruct the browser to skip to a particular point in the video, enable HD, etc, and wouldn't adversely affect the video title being parsed.<br><br>It actually might be a good thing to do regardless, since this would also make it so that <br><br><a href="https://www.youtube.com/watch?v=HMUDVMiITOU&amp;t=10" class="postlink">https://www.youtube.com/watch?v=HMUDVMiITOU&amp;t=10</a> (skipping to 10 seconds in)<br>and<br><a href="https://www.youtube.com/watch?v=HMUDVMiITOU&amp;t=20" class="postlink">https://www.youtube.com/watch?v=HMUDVMiITOU&amp;t=20</a> (skipping to 20 seconds in)<br><br>would both be truncated as<br><br><a href="https://www.youtube.com/watch?v=HMUDVMiITOU" class="postlink">https://www.youtube.com/watch?v=HMUDVMiITOU</a><br><br>And would not result in multiple entries for the same video, but different timestamps, being entered in the DB.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12406">Nocty</a> — Thu Jul 24, 2014 11:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nocty]]></name></author>
		<updated>2014-07-24T11:24:59-04:00</updated>

		<published>2014-07-24T11:24:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103027#p103027</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103027#p103027"/>
		<title type="html"><![CDATA[Thanks!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103027#p103027"><![CDATA[
:D <br><br>Awesome, will grab to test now, I had been looking to replace the current link logger I have because it's ugly as sin, but as you might imagine YouTube links are pretty common in the channel.<br><br>I will grab the new .pm and let you know how things work, but I'm pretty sure you're correct; I noticed that it was indeed catching some YT links but not all of them.<br><br>Thanks again for all your hard work!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12406">Nocty</a> — Thu Jul 24, 2014 11:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ngtjah]]></name></author>
		<updated>2014-07-23T15:26:57-04:00</updated>

		<published>2014-07-23T15:26:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103025#p103025</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103025#p103025"/>
		<title type="html"><![CDATA[Re: Works! Except for YouTube...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103025#p103025"><![CDATA[
Hey Nocty,<br><br>I found the issue. Some of my recent code didn't make it to the repository. If you grab the new Links.pm file you should be good to go.<br><br>-ngtjah<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12372">ngtjah</a> — Wed Jul 23, 2014 3:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ngtjah]]></name></author>
		<updated>2014-07-21T22:59:52-04:00</updated>

		<published>2014-07-21T22:59:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103021#p103021</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103021#p103021"/>
		<title type="html"><![CDATA[links - url and img collector]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103021#p103021"><![CDATA[
Hi Nocty, Glad you were able to get it working! I was hoping I had not missed anything in the guide. You are the first user I have heard back from since releasing this. Thanks for the feedback.<br><br>I will take a look at this problem. I have seen some issues like this before with a 5xx error on my site. I'm thinking something must be going on with the "feature=kp" in the URL. Does it work OK without that? <br><br>If you have any more issues please feel free to report them on the github page under issues and I should get back to you a bit faster.<br><br>-ngtjah<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12372">ngtjah</a> — Mon Jul 21, 2014 10:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nocty]]></name></author>
		<updated>2014-06-17T15:28:55-04:00</updated>

		<published>2014-06-17T15:28:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102910#p102910</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102910#p102910"/>
		<title type="html"><![CDATA[Works! Except for YouTube...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102910#p102910"><![CDATA[
So thanks to your excellent guide I was able to follow the directions and, with a little bit of troubleshooting and only minimal Linux knowledge (running this on Debian), I was able to get this script mostly working.<br><br>For some reason, however, it does not seem to like the YouTube links I tested it with, and seems to decide they are error pages.<br><br>Output of Links_logs.log<br><div class="codebox"><p>Code: </p><pre><code>This URL: https://www.youtube.com/watch?v=HMUDVMiITOU&amp;feature=kp doesn't really exist!! Return Code: 501$VAR1 = bless( {                 'isdupe' =&gt; 0,                 'date' =&gt; '2014-06-17 14:10:31',                 'parseline' =&gt; '[14:10:31:2014-06-17] &lt;Nocty&gt; https://www.youtube.com/watch?v=HMUDVMiITOU&amp;feature=kp',                 'body' =&gt; 'https://www.youtube.com/watch?v=HMUDVMiITOU&amp;feature=kp',                 'mimetype_returncode' =&gt; 501,                 'type' =&gt; 'irc',                 'announcer' =&gt; 'Nocty',                 'mimetype' =&gt; 'text/plain',                 'www_url' =&gt; 'https://www.youtube.com/watch?v=HMUDVMiITOU&amp;feature=kp'               }, 'Links' );</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12406">Nocty</a> — Tue Jun 17, 2014 3:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ngtjah]]></name></author>
		<updated>2014-03-31T00:02:27-04:00</updated>

		<published>2014-03-31T00:02:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102713#p102713</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102713#p102713"/>
		<title type="html"><![CDATA[links - url and img collector]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102713#p102713"><![CDATA[
A web page and scripts that collect and display links and images from a IRC channel with the help of an eggdrop bot's channel log.<br><br><a href="https://github.com/ngtjah/links" class="postlink">https://github.com/ngtjah/links</a><br><br>It can do some other things like integrate with twitter and pocket.<br><br>This is a little project that I've been working on for a few years driven by my little IRC community and I thought this might be a good place to share it and get some feedback.<br><br>Check out the github wiki for more information.<br><br>-ngtjah<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12372">ngtjah</a> — Mon Mar 31, 2014 12:02 am</p><hr />
]]></content>
	</entry>
	</feed>
