- # Parse out the "t" parameter from the video's page. I'm not sure
- # what "t" stands for, but it's located in some JSON, and is required
- # for the final video URL to work.
- def parse_t_parameter(page_data)
- t_parameter = nil
-
- t_parameter_regex = /\"t\"\:[[:space:]]\"([^\"]+?)\"/
- matches = t_parameter_regex.match(page_data)
- t_parameter = matches[1] if not (matches.nil? || matches.length < 2)