all mine grabs is the id of the video after v= no matter where v= is for normal links or anything after / for the short urls. it should work for you as well just fine :) and ty :)
Nice guys thank you all for your suggestions. i will test and implement the changes today.
@ ProIcons i only seperated it out as the pm one isnt really for a bot you can put it into your personal remotes and use it to grab urls pm'd to you. but yes combining them is doable.
@MakiMaki ty for the new regex lines. Im fairly new at using regex , als youtube has been messing with the url formating so all i want to grab is whats after v= no matter where it is in the url. if that regex does it ( at the time of writing this i havent tested) then sweet ill use it.
As for the replace line i couldnt think of a better/simpler way to do it and i tried to do just one and it threw out error's on me and i couldnt get it to work so i just did multiples. ty for showing me how to use just one :)
thanks guys for the feedback its much appreciated.
@ napa182 yea i suppose it could be either or. i usually have a playlist going in the background of music so technically im not watching it. And yes this is a differant script that i adapted to show only youtube info. it was originally a generalized webpage Title getter for irc, it would be used to get the page title for any page u were viewing.
@ sunslayer ty for the regex line i will try to incorporate it into the next version.
@ henbone11 ive noticed an error on some of the newer pages of youtube where it is returning an error. yes they have made some site changes so im going to have to take a look at it again to see what can be done. there is also an error if the title has parentese in it eg: limp bizkit - "break stuff" it wont return a result. i will try and fix all of this in the next version
well on further tries it seems its not really a bug. its poor grammar. if you use "u" vs you it wont out put anything. but i have gotten it to work with proper grammar.
simply wow. :D this has to be the most useful script i have running. very well done m8
Edit:
one bug i noticed is the hotlink , for some reason i get no output with it. it pops up the window asking if i want to reply using the translator then the input box , i click ok and nothing happens.
@ sunslayer yea ur right it wont work on all nets was coded on unrealircd so should work on any net using that or similar.
@ Jethro_ i only used it because it was something i had recently learned, either way will work.
and i wanted to restrict it to only & and up for the delete entry and add entry parts for personal reasons. you can easily change it tho to include other access levels