Nashman commented on a Page, Youtube URL Checker & Info  -  Jul 30, 2012

GJ, but it's not working for me :(
Tcl error [mu]: can't read "youtubeid": no such variable

It worked once .. "Surviving Alone in Alaska' ( 52 minutes 4 seconds ) Viewed 130.058"
then it gave me that error and now it's not working anymore.
Any tips?
Thanks in advance!

Edit: it seems to work now. I had another youtube script running at the same time so that mightve been the issue.
It's still giving me the " Tcl error [mu]: can't read "youtubeid": no such variable" error in the partyline tho.
Any way to fix this? :)

RaZ  -  Apr 25, 2013

edit

set watch [regexp -nocase -- {\/watch\?v\=([^\s]{11})} $text youtubeid]
    if { $watch == 0 } {
        set watch [regexp -nocase -- {youtu\.be\/([^\s]{11})} $text a youtubeid]
        set youtubeid "/watch?v=$youtubeid"
    }

To

set watch [regexp -nocase -- {\/watch\?v\=([^\s]{11})} $text youtubeid]
    if { $watch == 0 } {
        set watch [regexp -nocase -- {youtu\.be\/([^\s]{11})} $text a youtubeid]
        if { $watch == 0 } return
        set youtubeid "/watch?v=$youtubeid"
    }
Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.