arteget is a simple ruby scripts that dumps television programs from the "+7" site of Arte.
Its usage is simple : run it with the program name as an argument.
The argument should correspond to the name used on the website, which you can find easily in URLs :
http://videos.arte.tv/fr/videos/programmes/court_circuit/index-3188712.html => "court_circuit"
http://videos.arte.tv/fr/videos/philosophie-3256770.html => "philosophie"


This software includes libhttp by Yoann Guillot, which you can find here :
http://guillot.iiens.net/softs/libhttp/

Thank you Yoann !

History :
v1.0  : 2010/06/13
	 - new libhttp release
	 - handles new site
	 - way cleaner code

v0.1  :  2008/XX/XX 
	 - First "release"

Arte seemed to have implemented some online check with GETS on the streaming 
server to keep the streaming alive, but apparently it's just statistics.
The code is there in case it is useful :

url = "doLog?securityCheck=957HOP79HSPJX&sLogId="+Time.now.to_i.to_s+"&eName=Philosophie&aCtx=VIDEOTHEK%2DPLAYER&eId="+vid_id+"&logPlay=false&dt=0&action=PLAYING&tCode="
pp url
th = Thread.new do
	logid=(Time.now.to_i*1000+354).to_s
	url = "doLog?securityCheck=957HOP79HSPJX&sLogId="+logid+"&eName=Philosophie&aCtx=VIDEOTHEK%2DPLAYER&eId="+vid_id+"&logPlay=false&dt=0&action=PLAYING&tCode="
	cnt = 0
	log = HttpClient.new("medialog.arte.tv",1)
	log.get("doLog?securityCheck=957HOP79HSPJX&sLogId="+logid+"&eName=Philosophie&aCtx=VIDEOTHEK%2DPLAYER&eId="+vid_id+"&logPlay=false&dt=0&action=PLAY&tCode=0")
	loop do
		puts url+cnt.to_s
		log.get(url+cnt.to_s)
		sleep(10)
		cnt += 10
	end
end

Contact me by mail :
mailbox : devel-arteget
domain : syscall.eu
