Hello!
The code doesn't detect videoplay for video.google.com and related (.es, .uk, .fr, ...). It detects videoplayback:
if (host.find('.google.com') > -1 or host.find('.googlevideo.com') > -1 or re.compile('\\.google\\.[a-z][a-z]') .search(host) or re.compile('^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4] [0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$').match(host)) and (path.find('videoplayback') > -1 or path. find('get_video') > -1) and path.find('get_video_info') < 0:
Regards,
Josep Pujadas
0 Answers