The videocache.py code for Google videos is not working:
if host.find('vp.video.google.com') > -1 and path.find('videodownload') > -1:
I tried to cache Google videos and doesn’t work. For example:
Google uses also localisation. This means that the same video can be found at different video.google.tld: video.google.com, video.google.es, video.google.cat, video.google.fr, video.google.pl, … The same path is used after video.google.tld/
In my case, users go to google.com, google.es and google.cat. They navigate using English, Spanish or Catalan.
I never noticed that as I always navigated using video.google.com while working on videocache. As you have pointed out other tlds, I'll add support for it in the next version.
Thanks for the wonderful feedback :)
Could you explain how you navigate using video.google.com?
I go to www.google.com.
I search "video".
I click to video.google.com.
I search "motor" for "videos playable on Google".
I choose the first video at video.google.com I see.
I play it:
and it is not cached (?).
I follow exactly the same procedure and it caches. I am surprised to see that its not caching for you. Any hints from /var/log/videocache/videocache.log? Can you paste your logfile on http://pastebin.com .
Thank you for using videocache :)
Posted at http://pastebin.com/m55eed9f2
Note: Good tool pastebin.com!
Your videocache doesn't seem to act for video.google.com which is strange. Did you change anything in the code or configuration?
No, I didn't (for the code and for the configuration).
I tried with videocache only (without squidGuard) and obtained the same result.
I’m not a Python programmer but I think that:
Google is very big. Perhaps they have different access for my geographical zone.
I tried other videos and I got the following hostnames:
where it says:
"But since a few days Google changed the urls retrieved from ..."
Nice finding. I have added this to my todo list. Will push it upstream soon.
Thank you for providing the useful information. It'll help me fix the issue.
Thanks for using videocache :)
You need to sign in. Please sign in to add answer to this question.