Media files with 0kb everywhere

Ask for help about FlashGot, no registration needed to post
Post Reply
PsydanCo
Posts: 4
Joined: Wed Nov 04, 2015 8:44 pm

Media files with 0kb everywhere

Post by PsydanCo »

Hi,

I can't download any video in any page. I always get files with 0kb and any reference in the Firefox Download Manager.

I'm using Firefox 41.0.2 on Windows 10 in a clean installation. And I'm trying to download videos from YouTube and Facebook.

This is part of the error I get in the log:

Code: Select all

015-11-03T23:45:24.462Z Preprocessing done in ms6
2015-11-03T23:45:24.463Z Starting dispatch
2015-11-03T23:45:27.865Z Saving https://video-mad1-1.xx.fbcdn.net/hvideo-xfa1/v/t43.1792-2/11792324_1039832376041433_2035376554_n.mp4?efg=eyJybHIiOjMwNjcsInJsYSI6MTY3NywidmVuY29kZV90YWciOiJoZCJ9&rl=3067&vabr=2045&oh=c7cb0cfa8ca764844d586dd1c8d4fee8&oe=56396B7B to H:\Downloads\Videos\Eco_Bicycle_Karroca_e_femijeve_qe_pershtatet_me_bicikleten_11792324_1039832376041433_2035376554_n.mp4
2015-11-03T23:45:27.865Z Skipping link https://video-mad1-1.xx.fbcdn.net/hvideo-xfa1/v/t43.1792-2/11792324_1039832376041433_2035376554_n.mp4?efg=eyJybHIiOjMwNjcsInJsYSI6MTY3NywidmVuY29kZV90YWciOiJoZCJ9&rl=3067&vabr=2045&oh=c7cb0cfa8ca764844d586dd1c8d4fee8&oe=56396B7B: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIDownloadManager.addDownload]"  nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)"  location: "JS frame :: chrome://flashgot/content/DMS.js :: FlashGotDM.initDMS/dm.performDownload/mozAddDownload :: line 2797"  data: no]
2015-11-03T23:45:27.875Z Dispatch done in ms3412
Total processing time: ms3419
If you need the rest of the log, just tell me.

Thanks in advance.
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0
user

Re: Media files with 0kb everywhere

Post by user »

Looks like you're using an old version of FlashGot. Because this thing was fixed 2 years ago.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 SeaMonkey/2.25
PsydanCo
Posts: 4
Joined: Wed Nov 04, 2015 8:44 pm

Re: Media files with 0kb everywhere

Post by PsydanCo »

1.5.6.12 . It's the last one I can get.
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0
user

Re: Media files with 0kb everywhere

Post by user »

Interesting. You're not getting the new download API, yet no related errors in the log. So, unless that was a "creative" log editing on your end, 2 things I can think of.
1) Set browser.download.useJSTransfer to true. Or delete it.
2) Execute this code in the console (Ctrl+Shift+J) and show the output:

Code: Select all

Components.utils.import("chrome://flashgot/content/JSDownloadsAPI.jsm");
Mine looks like this:

Code: Select all

12:12:01.369 Components.utils.import("chrome://flashgot/content/JSDownloadsAPI.jsm");
12:12:01.372 BackstagePass { EXPORTED_SYMBOLS: Array[1], isRequired: function (), getList: function (), JSDownloadsAPI: Object, Services: Object, Downloads: Object, 102 more… }
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 SeaMonkey/2.25
user

Re: Media files with 0kb everywhere

Post by user »

@Giorgio, it's probably better to swap the browser version and the pref checks around (JSDownloadsAPI.jsm, function isRequired) because, according to the wiki, the pref is ignored in FF 26+.
A new about:config preference named "browser.download.useJSTransfer" enables the browser and the Downloads Panel to use the Downloads.jsm module instead of nsIDownloadManager as the back-end. The browser must be restarted for the preference to take effect.

Support for this preference will be available in Nightly 25. This means that it will be ready for testing in the Aurora channel starting from version 25, on August 8th.

In the Firefox 26 release train, nsIDownloadManager will not be used anymore. The preference will be removed and there will be no way to revert to the old system that caused potential performance issues. We will finally be able to remove a lot of front-end code that is complex to maintain and only needed for backwards compatibility.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 SeaMonkey/2.25
User avatar
therube
Ambassador
Posts: 7929
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Media files with 0kb everywhere

Post by therube »

(Don't know if its relevant, but note that SeaMonkey has this open Bug 888915 - Convert SeaMonkey Downloads Manager to Downloads.jsm.)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 5.1; rv:41.0) Gecko/20100101 SeaMonkey/2.38
PsydanCo
Posts: 4
Joined: Wed Nov 04, 2015 8:44 pm

Re: Media files with 0kb everywhere

Post by PsydanCo »

user wrote:Interesting. You're not getting the new download API, yet no related errors in the log. So, unless that was a "creative" log editing on your end, 2 things I can think of.
1) Set browser.download.useJSTransfer to true. Or delete it.
2) Execute this code in the console (Ctrl+Shift+J) and show the output:

Code: Select all

Components.utils.import("chrome://flashgot/content/JSDownloadsAPI.jsm");
Mine looks like this:

Code: Select all

12:12:01.369 Components.utils.import("chrome://flashgot/content/JSDownloadsAPI.jsm");
12:12:01.372 BackstagePass { EXPORTED_SYMBOLS: Array[1], isRequired: function (), getList: function (), JSDownloadsAPI: Object, Services: Object, Downloads: Object, 102 more… }
It'snt any "creative" log editing. I've no time for that king of nonsense.

Whatever... I turned to true the "browser.download.useJSTransfer" in the "about:config". Then I Pressed "Ctrl+Shift+J" but I did'nt get any command line on that console. I get it if I press "Ctrl+Shift+K". I copied and pasted the code you told me and this is the result:

Code: Select all

Components.utils.import("chrome://flashgot/content/JSDownloadsAPI.jsm");
TypeError: Components.utils is undefined
El objeto Components está desaprobado. Pronto será eliminado.
P.d: "El objeto Components está desaprobado. Pronto será eliminado." Means: "The object Components is unable. Soon will be delete".
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0
PsydanCo
Posts: 4
Joined: Wed Nov 04, 2015 8:44 pm

Re: Media files with 0kb everywhere

Post by PsydanCo »

therube wrote:(Don't know if its relevant, but note that SeaMonkey has this open Bug 888915 - Convert SeaMonkey Downloads Manager to Downloads.jsm.)
Thanks for the answer but I'm not a developer. I don't have a clue about this guys were talking about.
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0
user

Re: Media files with 0kb everywhere

Post by user »

PsydanCo wrote:I turned to true the "browser.download.useJSTransfer" in the "about:config". Then I Pressed "Ctrl+Shift+J" but I did'nt get any command line on that console.
Enabling useJSTransfer should be enough. You just need to restart the browser for it to take effect.
As for the missing command line in the Ctrl+Shift+J console, you can enable it:
NB: From Firefox 30, the Browser Console command line (to execute JavaScript expressions) is disabled by default. To enable it set the devtools.chrome.enabled preference to true in about:config, or set the "Enable browser chrome and add-on debugging toolboxes" (Firefox 40 and later) / "Enable chrome and add-on debugging" (Firefox 38.0.5 and earlier) option in the developer tool settings.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 SeaMonkey/2.25
Post Reply