Videocache is no longer in development.

New Youtube URL isn't cacheable

by Anonymous on 25 Aug 2009

Dear Kulbir,

Seems youtube had new url and video_id mechanism,
and it's break videocache ability to cache it.

Could you solve it ?


19 Answers

by clovanzo on 26 Aug 2009

I have same prob here and add some patch manualy like this:

on squid conf:

and on :

works good so far

by Lst on 26 Aug 2009

Yes, it works...
Salute for you my friends!


by Anonymous on 7 Sep 2009

but i'm not working eith 1.9.2 and your patch, here's the log :

2009-09-07 12:37:45,481 3178 - - SCHEDULEDER - Download Scheduler starting.
2009-09-07 12:38:10,221 3173 - REQUEST -
2009-09-07 12:38:10,222 3173 466e61a8a491e682 URL_HIT YOUTUBE
2009-09-07 12:38:10,222 3173 466e61a8a491e682 CACHE_MISS YOUTUBE Requested video was not found in cache.
2009-09-07 12:38:10,224 3173 466e61a8a491e682 NEW_URL YOUTUBE
2009-09-07 12:38:11,184 3178 466e61a8a491e682 SCHEDULED YOUTUBE Video scheduled for download.
2009-09-07 12:38:11,184 3226 466e61a8a491e682 DOWNLOAD_ERR YOUTUBE An error occured while retrieving the video.
by Kulbir Saini on 7 Sep 2009


Did you try it with version 1.9.2?

Thank You!

by Anonymous on 8 Sep 2009

yes it's 1.9.2

by Kulbir Saini on 12 Sep 2009


Here is a small checklist,

  1. Please check your proxy variable in videocache.conf .
  2. Is you proxy server able to access internet via itself?
  3. Permissions on directory /var/spool/videocache/ and /var/log/videocache/ ?

Thank You!

by Anonymous on 14 Sep 2009

halo admin thank you for your time ...

here is the list :
1- proxy variable in videocache.conf

cache_host =
proxy =
base_dir = /video/

2- yes the proxy server capable to connect to the internet.
3- the permission on videocache directory [i changed it to /video] :

root@proxy:/# ls -lh | grep video
drwxr-xr-x 19 nobody nogroup  448 2009-09-04 14:11 video

root@proxy:/var/log# ls -lh  |grep video
drwxr-xr-x 2 nobody nogroup  272 2009-09-01 22:24 videocache

the log maybe concern like this :

2009-09-14 17:54:08,423 18820 37d91d1d7ac9605f SCHEDULED YOUTUBE Video scheduled for download.
2009-09-14 17:54:08,424 19578 37d91d1d7ac9605f DOWNLOAD_ERR YOUTUBE An error occured while retrieving the video.

by means i thought it perl capable to TAG the file, but when download it error occured.

hopefully any clue i get from you, thank you.

by Kulbir Saini on 14 Sep 2009


We have a problem in third point. The permissions are not correct.

If you are on a Red Hat or dervitive linux, the permissions should be squid:squid and if you are on a Debian derivative linux, ther permissions should be proxy:proxy.

Please try change permissions to that.

Thank You!

by Anonymous on 15 Sep 2009

dear admin,

by means on your videocache script
you put it user name fixed squid:squid or proxy:proxy ?

by Anonymous on 15 Sep 2009

but still after i changed it's permission to proxy:proxy

root@proxy:/# ls -lh | grep video
drwxr-xr-x 19 proxy proxy  448 2009-09-04 14:11 video

root@proxy:/# ps axu | grep squid
root     22890  0.0  0.0   4360   780 ?        Ss   17:58   0:00 /usr/local/squid/sbin/squid
proxy    22892  0.2  0.8  27860 17980 ?        Sl   17:58   0:01 (squid)
root     22977  0.0  0.0   3008   776 pts/1    S+   18:06   0:00 grep squid

the videocache still error to download, here is the log :

2009-09-15 17:59:43,446 22893 8370bb0c4088d235 NEW_URL YOUTUBE
2009-09-15 17:59:47,084 22894 8370bb0c4088d235 SCHEDULED YOUTUBE Video scheduled for download.
2009-09-15 17:59:47,084 22944 8370bb0c4088d235 DOWNLOAD_ERR YOUTUBE An error occured while retrieving the video.

by any words it's videocache still give me this report :
"An error occured while retrieving the video"

what would that be ?

by Anonymous on 29 Sep 2009

frnd i hav prob that when i down load long vedios from you tube via dap it requires user name password on plz help and explain in brief i am new to computer.........

by Kulbir Saini on 29 Sep 2009


Are you using videocache on your own machine or it is being used on your organization's proxy server?

Thank You!

by akustik on 6 Oct 2009

hello, is seem down, can you help me another link to patch squid.conf and


by Kulbir Saini on 7 Oct 2009


There are a lot of online services like and .

Thank You!

by Ez on 20 Nov 2009

hi admin i have problem in videocache i configured it well and its not showing any error in its log but no request found in videocace log

by Kulbir Saini on 24 Nov 2009

Hi Ez,

Can you please share your /etc/videocache.conf and videocache.log file so that we can have an overview of the problem?

Thank You!

by Ez on 24 Nov 2009

Thankx for ur reply now my cache working fine but here i found some problem after 24hours videocache log not running even i kill the pythong service.?

Other wise its very cool for us Thanks for share ur creation.

by Kulbir Saini on 25 Nov 2009

Hi Ez,

What does your logfile (videocache.log) says? Before and after killing python processes.

Thank You!

by jaibhakuni on 4 Oct 2010

hello..adm..just tell me why you tube video is not downloaded..their is an error when i download with download manger..