Page 1 of 1
Media files with 0kb everywhere
Posted: Wed Nov 04, 2015 8:55 pm
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.
Re: Media files with 0kb everywhere
Posted: Thu Nov 05, 2015 12:20 am
by user
Looks like you're using an old version of FlashGot. Because this thing was fixed
2 years ago.
Re: Media files with 0kb everywhere
Posted: Thu Nov 05, 2015 2:53 am
by PsydanCo
1.5.6.12 . It's the last one I can get.
Re: Media files with 0kb everywhere
Posted: Thu Nov 05, 2015 9:27 am
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… }
Re: Media files with 0kb everywhere
Posted: Thu Nov 05, 2015 9:35 am
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.
Re: Media files with 0kb everywhere
Posted: Thu Nov 05, 2015 7:39 pm
by therube
(Don't know if its relevant, but note that SeaMonkey has this open
Bug 888915 - Convert SeaMonkey Downloads Manager to Downloads.jsm.)
Re: Media files with 0kb everywhere
Posted: Mon Nov 09, 2015 6:55 pm
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".
Re: Media files with 0kb everywhere
Posted: Mon Nov 09, 2015 6:59 pm
by PsydanCo
Thanks for the answer but I'm not a developer. I don't have a clue about this guys were talking about.
Re: Media files with 0kb everywhere
Posted: Wed Nov 11, 2015 11:29 am
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.