Bill Brine 0 Posted February 17, 2012 Report Share Posted February 17, 2012 Don't know if this is is a bug or intended operation. Using Ubot version 4.0.96 Use of $meta description to get the page description returns nothing if the html is formatted like this: <meta name="description" content="..." It works if the HTML looks like this: <meta name="DESCRIPTION" content="..." The only difference being that the word description is in upper case rather than lower case. Has anyone run into this? If so, any workarounds? Quote Link to post Share on other sites
JohnB 255 Posted February 17, 2012 Report Share Posted February 17, 2012 I am not sure about what process you are using to grab the meta info, but you have a couple of options: You can use the "text case" constant or even set a condition that checks for either case. John Quote Link to post Share on other sites
Bill Brine 0 Posted February 17, 2012 Author Report Share Posted February 17, 2012 I'm assigning the output of the document function '$meta description' to a variable. Looks like it only looks for the upper-case version. I tried page scrape but ran into the same issue. Not all pages have the description tag set the same way. Some have the word in lower case. Some have it in upper case. Some have just the D in the word description capitalized. So I guess a triple If statement to handle all 3 situations would do it. Bill P.S. Interesting side note: if you try a UI stat monitor using $meta description and the page currently being displayed does not have a meta description that it considers to be valid, that sends Ubot into an infinite Script Error loop which can only be recovered from by killing the Ubot process with Task Manager. Quote Link to post Share on other sites
JohnB 255 Posted February 17, 2012 Report Share Posted February 17, 2012 well you could technically set the document text to a variable, and use a replace on the meta tag with whatever version you need it to be... John Quote Link to post Share on other sites
Bill Brine 0 Posted February 17, 2012 Author Report Share Posted February 17, 2012 Great minds think alike! I was just thinking about trying that approach. Quote Link to post Share on other sites
JohnB 255 Posted February 17, 2012 Report Share Posted February 17, 2012 http://ubotstudio.com/forum/public/style_emoticons/default/smile.gif Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.