Originally Posted By: Newbie
I've been messing around with this code and even tried adding regex but it just won't give me the length of the video


Your regex isn't correct. This will work

Code:
if ($regex(%sockreader,/"length_seconds":"(.*?)"/)) { 
      echo -a $regml(1) 
      sockclose YTube
}

Last edited by Sakana; 01/02/15 09:57 AM.