+
+
+ def parse_hash_flv(page_data)
+ # Hashes are generated for both flv/mp4 and are delivered
+ # along with the video page. We need to stick them back on
+ # the end of the final video URL, or else it doesn't work.
+ hash_flv_regex = /&hash_flv=(\/.*?)&/
+
+ matches = hash_flv_regex.match(page_data)
+
+ if matches.nil?
+ raise StandardError.new("Couldn't parse the hash_flv variable.")
+ end
+
+ return matches[1]
+ end
+
+
+ def get_root_server_dir()
+ # They hard code this shit into the SWF file.
+ return '467f9bca32b1989277b48582944f325afa3374'
+ end