You are hereForums / Bugs / [Resolved] list index out of range

Version 1.9.9 is out. We have added support for Youtube mobile videos, Facebook, AOL and MySpace videos as well. Fixed caching issues for some already supported websites. Options to control cache directory selection algorithm, bandwidth usage by videocache, etc. More robust videocache scheduler with a lot more options and features. Have a look at changelog for more details. If you have purchased Videocache in last one year, Contact Us to claim your free upgrade. Please mention the email address using which you purchased Videocache. New users proceed to Pricing Page right now, secure your copy and enjoy caching :-) Also, check our new and simplified upgrade policy :-)

[Resolved] list index out of range


3 replies [Last post]
Offline
Joined: Nov 22 2008
[Resolved] list index out of range
Printer-friendly versionSend to friend

This error has been occurring since 1.2 (Right now, 1.5) in my squid cache.log

Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
    self.run()
  File "/usr/share/youtube_cache/youtube_cache.py", line 763, in run
    download_scheduler()
  File "/usr/share/youtube_cache/youtube_cache.py", line 745, in download_scheduler
    log(format%(params[0], params[4], 'SCHEDULED', params[5], 'Video scheduled for download.'))
IndexError: list index out of range

Videos play fine but nothing gets cached after.

I noticed that the last modified for tmp was 2008-Nov-22 12:26:01
and youtube was 2008-Nov-22 12:25:09.

Attached is a snippet of logs related to those times.

admin's picture
Offline
Joined: Nov 2 2008

Since you are a python bond yourself, can I request you to put a try except statement around that line and get the params printed in log so that I can get a clue about exact error. I'll catch that error in newer version anyway. Videos are not caching because scheduler itself crashed and once scheduler crashes, nothing will be scheduled, so nothing cached.

Thanks in advance :)

Offline
Joined: Nov 22 2008

An update:

I've logged the error:
2008-12-03 17:51:35,811 INFO - - SCHEDULE_ERR - Could not schedule video for download.[]

and here's the code change that I've done:
log(format%('-', '-', 'SCHEDULE_ERR', '-', 'Could not schedule video for download.'+str(params)))

Hopefully, it can help fix this error.

admin's picture
Offline
Joined: Nov 2 2008

Hey, I think this has been resolved in 1.6 . So, if you upgrade, you won't face this problem :)

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <code>
  • Lines and paragraphs break automatically.
  • HTML tags will be transformed to conform to HTML standards.

More information about formatting options

CAPTCHA
Are you a human visitor ?
Image CAPTCHA
Enter the characters (without spaces) shown in the image.

My Book on Squid

Purchase/Renew

One License - USD $399
One License - USD $349*
Validity - One Year
Need more? Contact Us
*Includes free upgrades and support for one year.



For details, check pricing.

Recent comments

Who's online

There are currently 0 users and 101 guests online.