# First, figure out the video id from the URL.
# Then, use the video id to construct the video details URL.
# Get the video details page, and parse the redirect
# First, figure out the video id from the URL.
# Then, use the video id to construct the video details URL.
# Get the video details page, and parse the redirect
# id from the redirect, but for now we're going to rely
# on our HTTP library to follow the redirect for us and
# save us a step.
# id from the redirect, but for now we're going to rely
# on our HTTP library to follow the redirect for us and
# save us a step.
details_url = "http://www.veoh.com/rest/video/#{video_id}/details"
details_data = get_page_data(details_url)
redirect_url = parse_redirect_url(details_data)
details_url = "http://www.veoh.com/rest/video/#{video_id}/details"
details_data = get_page_data(details_url)
redirect_url = parse_redirect_url(details_data)