| View previous topic :: View next topic |
| Author |
Message |
tigrato Voice
Joined: 04 Jul 2009 Posts: 22
|
Posted: Tue Sep 21, 2010 1:58 pm Post subject: |
|
|
| someone have the fix to the youtube script? |
|
| Back to top |
|
 |
Trixar_za Op

Joined: 18 Nov 2009 Posts: 143 Location: South Africa
|
Posted: Tue Sep 21, 2010 7:36 pm Post subject: |
|
|
I'll try fixing it when my connection comes back - at the moment I'm stuck using my slow mobile phone  _________________ http://www.trixarian.net/Projects |
|
| Back to top |
|
 |
goalie Voice
Joined: 27 Sep 2010 Posts: 1
|
Posted: Mon Sep 27, 2010 9:16 am Post subject: |
|
|
<goalie> !trends .ca 2010-01-01
<genner> 1 happy new year 2010!; 2 tebow cam; 3 dennis haysbert; 4 ephesians 2 8 10; 5 bobby orr; 6 lady antebellum; 7
hgtv dream home; 8 capital one bowl location; 9 what is a buckeye; 10 terrelle pryor; 11 marco sturm; 12
bobby clarke; 13 tournament of roses parade 2010; 14 justin bieber and selena gomez; 15 rose bowl parade; 16
beardtard; 17 hgtv.com/dream home; 18 daryll
<genner> clark; 19 i sing the body electric; 20 phone fake |
|
| Back to top |
|
 |
chasba Voice
Joined: 10 Jan 2008 Posts: 6
|
|
| Back to top |
|
 |
xREVx Voice
Joined: 25 Jul 2007 Posts: 15
|
Posted: Sat Oct 02, 2010 7:27 pm Post subject: |
|
|
yep, math isn't working either
"!g 1 + 1" returns nothing |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sat Oct 02, 2010 7:42 pm Post subject: |
|
|
Rest assured, a new version is close the horizon. It's just that as a I fix and tidy up changes something new up and breaks. The "QUICK" fix to make calculations/conversions work again is: | Code: | # calculator
} elseif {[string match "*<img src=/images/calc_img*" $html] == 1} {
set calc 1
# remove bold codes from the html, not necessary here.
regexp -nocase -- {calc_img.*?<h2 class=.*?>(.+?)</h2>} $html - desc
regsub -all -- {<(.+?)>} $desc "" desc
if {$::incith::google::short_answers > 0 } { return "$::incith::google::desc_modes[descdecode $desc]" }
set link "" | change the above to look like it is below: | Code: | # calculator
} elseif {[string match "*<img src=/images/calc_img*" $html] || [string match "*<img src=\"/images/icons/onebox/calculator*" $html]} {
set calc 1
# remove bold codes from the html, not necessary here.
regexp -nocase -- {/calc.*?<h2 class=.*?>(.+?)</h2>} $html - desc
regsub -all -- {<(.+?)>} $desc "" desc
if {$::incith::google::short_answers > 0 } { return "$::incith::google::desc_modes[descdecode $desc]" }
set link "" |
I still need to fix !book and !ebay (the rest I've already fixed) before I will make an official "release" update. But...very very shortly I'll have everything back up to speed again working as normal. _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
xREVx Voice
Joined: 25 Jul 2007 Posts: 15
|
Posted: Tue Oct 05, 2010 6:44 pm Post subject: |
|
|
that worked great speechles, thank you!
i'm looking forward to the official release  |
|
| Back to top |
|
 |
spithash Master

Joined: 12 Jul 2007 Posts: 248 Location: Libera
|
Posted: Thu Oct 21, 2010 11:21 am Post subject: |
|
|
*pokes* speechles  _________________ Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl |
|
| Back to top |
|
 |
MePH Voice
Joined: 12 Apr 2010 Posts: 5
|
Posted: Sat Oct 30, 2010 12:15 pm Post subject: |
|
|
I hope he returns  |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sat Oct 30, 2010 12:29 pm Post subject: |
|
|
LMFAO!!!
Returns? I've never left. There is indeed plans to fix this script, and yes it is still being maintained. It's just that I'm also trying to evolve a couple other scripts of mine (twitter, etc). But expect this weekend I shall give you at least something to chew on. It may not fix "ALL" the issues, but will at least evolve the script in a direction where it's clear issues are being addressed. In the meantime, rest assured I am here. Even if not present in this thread. I am active in other sections of this forum as well.  _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
anotheruser Voice
Joined: 14 Sep 2005 Posts: 8
|
Posted: Sat Oct 30, 2010 2:20 pm Post subject: |
|
|
!youtube doesn't seem to work. i just get nothing. Is that the same for all?
Debug says redirect 301 and redirect 200 |
|
| Back to top |
|
 |
MePH Voice
Joined: 12 Apr 2010 Posts: 5
|
Posted: Wed Nov 03, 2010 6:44 pm Post subject: |
|
|
hehe
I kinda meant "return" as in give us a status update in this thread
I guess you've got a lot of work ahead of ya.
Nevertheless... good to hear you got an update planned speechless.
 |
|
| Back to top |
|
 |
spithash Master

Joined: 12 Jul 2007 Posts: 248 Location: Libera
|
Posted: Thu Nov 11, 2010 11:51 am Post subject: |
|
|
after patching my bot with utf support, the script's bolding stopped working.
Thoughts?
*EDIT*
I used this: http://eggwiki.org/Utf-8 and it works great. after this though, bolding stopped working on google script.
And here are my settings:
| Code: | # Google translation input/output encodings
# set these below to either:
# 0 for automatic encoding
# 1 for utf-8
# You may use switches to inverse this behavior on-the-fly. Set them
# below as well.
# ------
variable trans_input 1
variable trans_output 0
variable trans_input_t "--swapi"
variable trans_output_t "--swapo"
# enable encoding conversion, set this to 1 to enable.
# with this enabled it will follow the format of encoding conversions listed
# below. these will affect both input and output and will follow country switch.
# ------
variable encoding_conversion_input 1
variable encoding_conversion_output 1
# enable dirty decoding? This attempts to use the regular "dirty" method
# of rendering html elements which works well with iso8859-1 and other
# latin variants. This does not work well at all with russian, japanese,
# and any other non-latin variants. So keep this at 0 if you want a truly
# multi-language bot, but keep in mind you may see unrendered &x12345; html
# elements. This is because I don't know of a method to transcode these
# to proper utf-8 characters yet.. :P
# ------
# NOTE: If you bot is properly utf-8 patched, setting this to 1 is recommened.
# ------
variable dirty_decode 1
# enable gzip compression for bandwidth savings? Keep in mind
# this semi-breaks some of the present utf-8 work-arounds and
# eggdrop may mangle encodings when gzip compression that it
# doesn't when uncompressed html it used (default). A setting
# of 0 defaults to uncompressed html, a 1 or higher gzip.
# ------
# NOTE: If you do not have Trf or zlib packages setting this
# to 0 is recommened. Leaving it at 1 is fine as well, as the
# script will attempt to find these commands or packages every
# rehash or restart. But to keep gzip from ever being used it
# is best to set the below variable to 0.
# NOTE2: If you have Trf or zlib packages present, then this
# should always be set to 1. You save enormous bandwidth and
# time using this. If your bot is patched and you have Trf/zlib
# then you should definitely leave this at 1 and you will never
# suffer issues.
# ------
variable use_gzip 1
# THIS IS TO BE USED TO DEVELOP A BETTER LIST FOR USE BELOW.
# To work-around certain encodings, it is now necessary to allow
# the public a way to trouble shoot some parts of the script on
# their own. To use these features involves the two settings below.
# -- DEBUG INFORMATION GOES BELOW --
# set debug and administrator here
# this is used for debugging purposes
# ------
variable debug 0
variable debugnick spithash
# AUTOMAGIC
# with this set to 1, the bottom encode_strings setting will become
# irrelevant. This will make the script follow the charset encoding
# the site is telling the bot it is.
# This DOES NOT affect wiki(media/pedia), it will not encode automatic.
# Wiki(media/pedia) still requires using the encode_strings section below.
# ------
# NOTE: If your bot is utf-8 pathced, leave this option at 1, the only
# time to change this to 0 is if your having rendering problems.
# ------
variable automagic 1
# UTF-8 Work-Around (for eggdrop, this helps automagic)
# If you use automagic above, you may find that any utf-8 charsets are
# being mangled. To keep the ability to use automagic, yet when utf-8
# is the charset defined by automagic, this will make the script instead
# follow the settings for that country in the encode_strings section below.
# ------
# NOTE: If you bot is utf-8 patched, set this to 0. Everyone else, use 1.
# ------
variable utf8workaround 0 |
_________________ Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl |
|
| Back to top |
|
 |
madpinger Voice
Joined: 03 Oct 2010 Posts: 12
|
Posted: Fri Nov 12, 2010 4:43 am Post subject: |
|
|
| spithash wrote: | after patching my bot with utf support, the script's bolding stopped working.
Thoughts?
*EDIT*
I used this: http://eggwiki.org/Utf-8 and it works great. after this though, bolding stopped working on google script.
And here are my settings:
|
My experience with UTF-8 compiled bots is you need to comment out
| Code: | | if {![string equal $incithcharset [encoding system]]} { set text [encoding convertto $incithcharset $text] } |
in the descdecode proc
At least that's what fixed it for me, iirc |
|
| Back to top |
|
 |
spithash Master

Joined: 12 Jul 2007 Posts: 248 Location: Libera
|
Posted: Fri Nov 12, 2010 4:50 am Post subject: |
|
|
hmm... that didn't work :/ _________________ Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl |
|
| Back to top |
|
 |
|