@Kibblz
you were right...there was a typo in the ratings regex.
(fixed in the previous comment, directly)
smsg $1 [1,0You0,4Tube]: $iif(%x >= 7,$4 $chr(124) $5 $6 $chr(124) $3 $chr(124) Views: $+(,$iif(%x == 9,$9,$8),) $chr(124) Rating: $iif(%x == 9,$+(,$7,) $+($chr(40),$8 $iif($8 == 1,rating,ratings),$chr(41),),$+(,Ratings were disabled,)),Either the video doesn't exist or it contained a malformed video ID.)
this smsg should fix the order
[11:23] http://www.youtube.com/watch?v=31sZ9xZr_Ew
[11:23] [YouTube]: Title: Franz Ferdinand - Ulysses | By: DominoRecords (uploaded on 09 gennaio 2009) | Duration: 3mins 15secs | Views: 2321909 | Rating: Ratings were disabled
Still got some problems with Ratings regex.
Someone know "where" to parse Rating Value? How?
In the page source I cannot get "ratingL" anywhere...
EDIT
[11:33] http://www.youtube.com/watch?v=31sZ9xZr_Ew
[11:33] [YouTube]: Title: Franz Ferdinand - Ulysses | By: DominoRecords (uploaded on 09 gennaio 2009) | Duration: 3mins 15secs | Views: 2321909 | Rating: 5.0 (5832 ratings)
ehm, in the "ratings" regex, we're matching the word "ratings" after the value count:
$regex(%yt,/ratingL-(.+)"\stitle|"smallText">(.+)\sratings<\/span>/g)
Now, I'm from italy....the italian localization for "rating" is "voti".
So I've replaced 'ratings' with 'voti' and now, also ratings are parsed
Note, that even if in your browser you get the non-localized (en-US?) page, the socket from mIRC get your country localization.