# The only public method. This calls the other parts
# of the algorithm and, with any luck, we wind up with
# the URL to the video.
- def get_video_url(url)
+ def get_video_url()
# First, parse the video ID out of the URL.
- video_id = /\d+/.match(url)[0]
+ video_id = parse_video_id()
padded_id = video_id.to_s.pad_left('0', 7)
protected
VIDEO_FILE_EXTENSION = '.flv'
+
+ def parse_video_id()
+ return /\d+/.match(@url)[0]
+ end
+
# Not sure what they're thinking with this one.
def get_video_dir(video_id)