Code: Select all
Timpul probabil pentru Chi?in?u, Moldova: -3 °C, Оn prezent: Z?pad?, Vвnt: N cu 19 km/h; Umiditate: 93%; Du: ?anse de z?pad? (0°C|-9°C); Lu: ?anse de z?pad? (0°C|-8°C); Ma: Senin (-1°C|-14°C)
ş = s
ă = a
Î = i
it`s posible?
Code: Select all
Timpul probabil pentru Chi?in?u, Moldova: -3 °C, Оn prezent: Z?pad?, Vвnt: N cu 19 km/h; Umiditate: 93%; Du: ?anse de z?pad? (0°C|-9°C); Lu: ?anse de z?pad? (0°C|-8°C); Ma: Senin (-1°C|-14°C)
You must utf-8 patch your eggdrop. This script then will work flawlessly, rendering everything perfectly. This has been tested.IuClik wrote:i change it, i have some error
how to make forCode: Select all
Timpul probabil pentru Chi?in?u, Moldova: -3 °C, Оn prezent: Z?pad?, Vвnt: N cu 19 km/h; Umiditate: 93%; Du: ?anse de z?pad? (0°C|-9°C); Lu: ?anse de z?pad? (0°C|-8°C); Ma: Senin (-1°C|-14°C)
ş = s
ă = a
Î = i
it`s posible?
There will be shortly. It's just with this script I need to devote a serious slice of continuous time. It can't be short bursts of 15 minutes here or there. This weekend I will have that time to eliminate some of the problems that have over time resurfaced: google time, wikipedia, wikimedia, youtube, etc ... These all have issues in one way or another. When fixing these I will likely find even more issues and correct these along the way. This is why I tend to let things stack up before releasing a fix because I want to evolve it forward correcting long standing issues (like no bold in results when utf-8 patched?), inconsistent encodings, etc. The things that in the long run will create a better end product. Rushing to fix regex parsing bugs is a short term fix with no evolution to me..neocratic wrote:No success in !g time country bug? :S
Code: Select all
# parse the html
while {$results < $incith::google::youtube_results} {
# somewhat extenuated regexp due to allowing that there might be an image next to the title
if {[regexp -nocase {<span class="video-time">(.*?)</span.*?[b]id="video-long.*?[/b]href="/watch\?v=(.+?)".+?title=".+?">(.+?)</a>.*?id="video\-description.*?">(.*?)</p.*?class="video\-date\-added">(.+?)</span.*?class="video\-view\-count">(.+?)</span} $html - ded4 cid desc ded ded2 ded3]} {
if {[string match "*</span>*" $desc]} {
regexp -nocase {<span class="video-time">(.*?)</span.*?[b]id="video-long.*?[/b]href="/watch\?v=(.+?)".+?title="(.*?)">.*?id="video\-description.*?">(.*?)</p.*?class="video\-date\-added">(.+?)</span.*?class="video\-view\-count">(.+?)</span} $html - ded4 cid desc ded ded2 ded3
}
regsub -nocase {<span class="img">.*?</div> </div>} $html "" html
}
...now that you said youtubeXulyTest wrote:sorry... there are some other words is this tcl not used in youtube changes :
- id="video-long
- class="video-date-added"
- class="video-view-count"
The first one can be deleted (as I said before)
The other one should be replaced by :
- class="date-added"
- class="viewcount"
And now it's ok. Sorry !
...and in the end...(01:55:45) <@spithash> !youtube 894coNVEnsQ
(01:55:49) < nagger> 2:45 Add to Added to queue Rubba Dub Dubstep (Dubstep Dance) Do the Dubstep dance! Songs taken from the Excision Shambhala 2009 Mix 1. SONG: 'Excision & Datsik -
Boom' - VIDEO: 'Mac and Me' 2. SONG: 'Mark ... by theAdrian86| 1 year ago| 180,452 views #search-pva { width: 300px; }
(01:55:50) < nagger> function isRtl() { return document.body.dir == "rtl"; } function setRtlYva(suffix) { // IE if (!suffix) { try { var adCreative =
_gel('homepage-side-content'); var yvaflash = adCreative.getElementsByTagName('embed')[0]; if (yvaflash.id.indexOf('FLASH_') == -1) { return; } suffix =
yvaflash.id.replace(/FLASH_/, ''); } catch (e) {
(01:55:52) < nagger> if ('message' in e) { yt.www.logError(e.message, '', ''); } else if ('description' in e ) { /** IE specific. **/ yt.www.logError(e.description, '', ''); }
return; } } // Unclips the YVA, actually triggering richMedia.clipFlashObject below. var fixYvaDom = function(suffix) { var yvaDiv = _gel('DIV_' + suffix); var yvaFlash =
_gel('FLASH_' +
(01:55:57) < nagger> suffix); yvaDiv.style.left = "0px"; if (isRtl()) { yvaDiv.style.right = "0px"; } yvaDiv.style.clip = "rect(auto auto auto auto)"; yvaFlash.style.marginLeft =
"0px"; yvaFlash.width = '300px'; } // Make sure the richmedia prototype exists. var richMedia; if (window.core && window.core.constructor) { richMedia =
window.core.constructor.prototype; } else
I'm not sure if youtube changed the website's code or it's just the search string I used. Pardon me, but, that was just a quick test as far as I could remember cause I tested it before(01:56:15) *** nagger (~redneck@goofy.trollbot.org) has quit (Excess Flood)
Code: Select all
# parse the html
while {$results < $incith::google::youtube_results} {
# somewhat extenuated regexp due to allowing that there might be an image next to the title
if {[regexp -nocase {<span class="video-time">(.*?)</span.*?id="video-long.*?href="/watch\?v=(.+?)".+?title=".+?">(.+?)</a>.*?id="video\-description.*?">(.*?)</p.*?class="video\-date\-added">(.+?)</span.*?class="video\-view\-count">(.+?)</span} $html - ded4 cid desc ded ded2 ded3]} {
if {[string match "*</span>*" $desc]} {
regexp -nocase {<span class="video-time">(.*?)</span.*?id="video-long.*?href="/watch\?v=(.+?)".+?title="(.*?)">.*?id="video\-description.*?">(.*?)</p.*?class="video\-date\-added">(.+?)</span.*?class="video\-view\-count">(.+?)</span} $html - ded4 cid desc ded ded2 ded3
}
regsub -nocase {<span class="img">.*?</div> </div>} $html "" html
}
Code: Select all
# parse the html
while {$results < $incith::google::youtube_results} {
# somewhat extenuated regexp due to allowing that there might be an image next to the title
if {[regexp -nocase {<span class="video-time">(.*?)</span.*?href="/watch\?v=(.+?)".+?title=".+?">(.+?)</a>.*?id="video\-description.*?>(.*?)</p.*?class="date\-added">(.+?)</span.*?class="viewcount">(.+?)</span} $html - ded4 cid desc ded ded2 ded3]} {
if {[string match "*</span>*" $desc]} {
regexp -nocase {<span class="video-time">(.*?)</span.*?href="/watch\?v=(.+?)".+?title="(.*?)">.*?id="video\-description.*?">(.*?)</p.*?class="date\-added">(.+?)</span.*?class="viewcount">(.+?)</span} $html - ded4 cid desc ded ded2 ded3
}
regsub -nocase {<span class="img">.*?</div> </div>} $html "" html
}
Code: Select all
[21:30] missing close-brace: possible unbalanced brace in comment
while executing
"namespace eval incith {
namespace eval google {
# GOOGLE
# performs a search on google.
#
proc google {input} {
# local variab..."
(file "scripts/incith-google-v2.00a.tcl" line 1250)
invoked from within
"source scripts/incith-google-v2.00a.tcl"
Code: Select all
# parse the html
while {$results < $incith::google::youtube_results} {
# somewhat extenuated regexp due to allowing that there might be an image next to the title
if {[regexp -nocase {<span class="video-time">(.*?)</span.*?href="/watch\?v=(.+?)".+?title=".+?">(.+?)</a>.*?id="video\-description.*?>(.*?)</p.*?class="date\-added">(.+?)</span.*?class="viewcount">(.+?)</span} $html - ded4 cid desc ded ded2 ded3]} {
if {[string match "*</span>*" $desc]} {
regexp -nocase {<span class="video-time">(.*?)</span.*?href="/watch\?v=(.+?)".+?title="(.*?)">.*?id="video\-description.*?">(.*?)</p.*?class="date\-added">(.+?)</span.*?class="viewcount">(.+?)</span} $html - ded4 cid desc ded ded2 ded3
}
regsub -nocase {<span class="img">.*?</div> </div>} $html "" html
}
}
I just pasted you where I added it bro.. it's the last one as I pasted 2 posts above...XulyTest wrote:Your Egg' pings because of a loop not closed... You have probably made something wrong with the modification...EDIT: the bot ping timeouts and never comes back after the searching.
Are you sure you added the close-brase at the good place ?