LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-02-2009, 10:01 PM   #1
1veedo
Member
 
Registered: Dec 2004
Location: WV, USA
Distribution: Gentoo, Debian
Posts: 186

Rep: Reputation: 34
Make firefox stop deleting cached youtube videos?


I usually save youtube videos by getting them out of the cache but for some reason firefox has started deleting youtube videos right away, the second they finish downloading. There aren't any youtube download services that can download the original HD versions (&fmt=22 etc).

I enlarged its cache to over 1GB and still it's deleting 60mb youtube videos right as they finish, even with nothing else in the cache.
 
Old 07-02-2009, 10:15 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553
http://kb.mozillazine.org/Firefox_:_...config_Entries

The above page is a whole whack of about:config entries you can use with firefox. Check in particular the 'browser.cache' area for options that can change the performance/functionality of the cache.

No guarantees this will *exactly* address the issue, but it's a start. Plus, there are lots of other real interesting thingies there

Sasha
 
Old 07-02-2009, 10:45 PM   #3
1veedo
Member
 
Registered: Dec 2004
Location: WV, USA
Distribution: Gentoo, Debian
Posts: 186

Original Poster
Rep: Reputation: 34
Thanks for the link. I tried turning off memory cache and increasing the offline mode capacity but neither option seems to have helped. Smaller youtube files are still cached, it just seems like the HD ones have problems. Maybe something to do wtih the filesize of the individual cache files.
 
Old 07-02-2009, 10:47 PM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553
It had occurred to me that some videos may be really HUGE! Have you tried making your available cache size really gigantic? Like ridiculously gigantic, as a test anyhow?

S
 
Old 07-02-2009, 11:13 PM   #5
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 70
Maybe, slightly offtopic, but I use downloadhelper to get movies in firefox. It's just easier, and you don't have to worry about caches and stuff...
http://www.downloadhelper.net/

(Hope I don't sound like a door-to-door vacuum salesman... )
 
Old 07-03-2009, 05:12 AM   #6
Kenhelm
Member
 
Registered: Mar 2008
Location: N. W. England
Distribution: Mandriva
Posts: 355

Rep: Reputation: 165Reputation: 165
If you create a hard link to the file as it's downloading then when 'oldname' is deleted the video can still be played using 'newname'.

ln oldname newname
 
Old 07-03-2009, 09:00 AM   #7
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553
Quote:
Originally Posted by Kenhelm View Post
If you create a hard link to the file as it's downloading then when 'oldname' is deleted the video can still be played using 'newname'.

ln oldname newname
My goodness, isn't that clever!!

@ the OP -- does this work?



Sasha
 
Old 07-03-2009, 10:39 AM   #8
1veedo
Member
 
Registered: Dec 2004
Location: WV, USA
Distribution: Gentoo, Debian
Posts: 186

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by GrapefruiTgirl
It had occurred to me that some videos may be really HUGE! Have you tried making your available cache size really gigantic? Like ridiculously gigantic, as a test anyhow?

S
Yeah I enlarged it to 10GB and it's still doing it.

I think the filesize is the problem. I only noticed files being deleted when I started trying to download 720p youtube files, regular youtube files still work.
Quote:
Originally Posted by GrapefruiTgirl View Post
Quote:
Originally Posted by Kenhelm View Post
If you create a hard link to the file as it's downloading then when 'oldname' is deleted the video can still be played using 'newname'.

ln oldname newname
My goodness, isn't that clever!!

@ the OP -- does this work?



Sasha
I'll admit that is pretty clever lol. The new file [pointer] doesn't get deleted but it appears the video is never fully downloaded in the first place. gxine thinks I have the entire video but it'll stop playing half way through

I do like Uncle_Theodore's download helper though. The advantage of pulling a file from cache is that it *always* works, no matter what website you're on. These download helpers only support so many sites (though this one seems to support basically everything, including hd youtube).

On a side note, firefox doesn't seem to like saving filenames with japanese/chinese characters in it (kana isn't even supported) so despite being a little more convenient to use the download helper I still have to manually rename the files anyway.

Last edited by 1veedo; 07-03-2009 at 10:41 AM.
 
Old 07-03-2009, 11:37 AM   #9
Kenhelm
Member
 
Registered: Mar 2008
Location: N. W. England
Distribution: Mandriva
Posts: 355

Rep: Reputation: 165Reputation: 165
Try looking in your /tmp directory when downloading large videos.
Firefox is probably saving the full video there and deleting it as soon as it has been viewed.
 
Old 07-03-2009, 12:37 PM   #10
1veedo
Member
 
Registered: Dec 2004
Location: WV, USA
Distribution: Gentoo, Debian
Posts: 186

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by Kenhelm View Post
Try looking in your /tmp directory when downloading large videos.
Firefox is probably saving the full video there and deleting it as soon as it has been viewed.
Holy crap there are like 13 youtube videos there. Right in the root tmp directory. This is great, thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Flashplayer 10 crashes firefox when I try to watch youtube videos fullscreen Slacker Steve Slackware 18 12-21-2008 01:22 AM
Problem with Firefox and youtube videos cueman SUSE / openSUSE 4 12-15-2008 10:59 AM
Installing flash player doesn't allow youtube videos to show in firefox tothemax6 Linux - Software 1 12-09-2008 06:53 AM
firefox + wine + shockwave = youtube videos and more sonichedgehog LinuxQuestions.org Member Success Stories 1 09-05-2008 07:41 PM
LXer: Youtube-dl - Download videos from Youtube in openSUSE LXer Syndicated Linux News 1 08-14-2008 08:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration