FlashGot has stopped recognizing YouTube videos.

Ask for help about FlashGot, no registration needed to post
WhisperIII

Re: FlashGot has stopped recognizing YouTube videos.

Post by WhisperIII »

I've gone through every add-on and GS script (hey, can't hurt to be thorough) systematically as per advice above, and none have identified themselves as the problem.

I've reinstalled user's latest revision to FlashGot, and the only measurable change is that the FlashGot Media option is no longer greyed out on YouTube videos. However, it still won't register them or download them, and continues to work everywhere else. I'm unclear on this advice:
If the signature is incorrect, you'll get the only menu item named "Refresh signature" under the "Available formats" submenu. Clicking it should update the signature decoding function. Then you just refresh the page, and the menu should list all available streams, as usual. If not, check the flashgot.log for error messages.
Where or what is the 'Available formats" submenu? Do you mean a FlashGot submenu or a Firefox one in general? I can't find this so I'm unsure if an incorrect signature is the reason my issue is persisting. Or is it something that only shows up if the signature is incorrect, and not at all if it's fine?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0
GUEST

Re: FlashGot has stopped recognizing YouTube videos.

Post by GUEST »

Available formats is a context menu of the Flashgot button on Firefox toolbar.
Image was just taken using user's New version modified flashgot plugin.

Image
image upload no compression
Mozilla/5.0 (Windows NT 5.1; rv:23.0) Gecko/20100101 Firefox/23.0
user

Re: FlashGot has stopped recognizing YouTube videos.

Post by user »

WhisperIII wrote:Where or what is the 'Available formats" submenu? Do you mean a FlashGot submenu or a Firefox one in general? I can't find this so I'm unsure if an incorrect signature is the reason my issue is persisting. Or is it something that only shows up if the signature is incorrect, and not at all if it's fine?
The "Available formats" submenu shows up always (after you right click the FlashGot icon, of course). The "Refresh signature" menu item shows up when FlashGot thinks the signature is incorrect. (If you want technical details: when the server responds with 403.)
This is how it looks: http://postimg.org/image/8umvvfsdn/
And this is what you get in the log:

Code: Select all

<time> YouTube 403: video <video ID>: outdated signature function? URL: <url>
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 SeaMonkey/2.19
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: FlashGot has stopped recognizing YouTube videos.

Post by Giorgio Maone »

user wrote:Here we go, patched 1.5.5.6:

Code: Select all

http://rghost.net/private/48545403/f37ef8431895ca49758aeadb430ba267
If the signature is incorrect, you'll get the only menu item named "Refresh signature" under the "Available formats" submenu.
Do you think there's a way to automate this, i.e. making it transparent without needing user intervention?
At any rate, in the meanwhile, I'm gonna merge and release 1.5.5.7 today, thanks.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: FlashGot has stopped recognizing YouTube videos.

Post by Giorgio Maone »

@user:
on a side note, could you please try to use the same style as the rest of code, e.g. camel case instead of underscores and less spaces around puntuaction? Thanks again!
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: FlashGot has stopped recognizing YouTube videos.

Post by Giorgio Maone »

@user:
never mind, I figured out automatic signature decoding by myself, updated to today's yet changed signature the preference-hardcoded one and hid your signature refresh UI behind a flashgot.media.YouTube.decode_signature_func.auto preference (default true, obviously).
About to release, please use 1.5.5.7 as the reference for future changes, thank you!

P.S.: please do not re-add comments containing profanity against Mozilla developers (e.g. about the POST payload management): like any other Firefox add-on hosted on AMO, every FlashGot release gets reviewed by an editorial staff including Mozilla employees, and this may to cause trouble. Thank you again!
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: FlashGot has stopped recognizing YouTube videos.

Post by Giorgio Maone »

Please check latest development build 1.5.5.7rc1, thank you all.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0
user

Re: FlashGot has stopped recognizing YouTube videos.

Post by user »

Giorgio Maone wrote:could you please try to use the same style as the rest of code, e.g. camel case instead of underscores and less spaces around puntuaction?
TheReasonIDontUseCamelCaseIsIHaveTroublesReadingIt. I do try to stick to it in the existing files, it's just hard to always remember to switch the style. As for punctuation, can you give an example? If you're talking about the spaces around the ! operator, the reason is the same as with camel case: I barely notice it (the operator) if it's not whitespaced.
Giorgio Maone wrote:a flashgot.media.YouTube.decode_signature_func.auto preference (default true, obviously)
Yeah, I didn't do that because I didn't have the time to do it properly, i.e. add some synchronization/locking and frequency limiting code around that. Without that, in case you're restoring a session with (a lot of) YouTube tabs/windows, it's just wasted traffic and unnecessary server load (again), and for "me myself personally", that also means a (3 * the number of such tabs/windows) second GUI freeze.
Giorgio Maone wrote:do not re-add comments containing profanity against Mozilla developers (e.g. about the POST payload management)
LOL, that (re-adding) was totally accidental, sorry. And the comment wasn't targeted at Mozilla devs, but at Grooveshark's clowns. And it turns out I was so mad that I totally forgot to add a host check for that code. On the other hand, you probably could just drop that site-specific code since it's still useless without the required range request header, and I doubt any download manager sends it. ReGet used to send it by default, until they found out that caused troubles with redirects.

Code: Select all

                    let s = NetUtil.readInputStreamToString(o.postStream, len);
                    // Remove the headers. For some reason, grooveshark.com
                    // puts the "Referer", "Content-Type" and "Content-Length" headers
                    // into channel.uploadStream instead of the headers (visitRequestHeaders()).
                    // The download manager still has to send the "Range: bytes=0-"
                    // header in order to get the file.
                    if (/(?:^|\.)grooveshark\.com$/.test(channel.URI.asciiHost))
                    {
                      let idx = s.indexOf("\r\n\r\n");
                      if (idx !== -1) { s = s.substr(idx + "\r\n\r\n".length); }
                    }
                    o.postData = s;
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 SeaMonkey/2.19
user

Re: FlashGot has stopped recognizing YouTube videos.

Post by user »

And thanks for fixing the rc/res bug in my code. :) I knew I shouldn't have coded with a headache.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 SeaMonkey/2.19
CorranUnlogged

Re: FlashGot has stopped recognizing YouTube videos.

Post by CorranUnlogged »

GUEST wrote:Available formats is a context menu of the Flashgot button on Firefox toolbar.
Image was just taken using user's New version modified flashgot plugin.

Image
image upload no compression
Is there any way to change this behavior with a setting?

I'd rather not have to open the submenu.

What I'd like even better would be if we could set one format as our preference (720p for instance) and have it show only that one (if it exists) and all other formats under the submenu.

I'd also like to report that downloading from embedded YouTube videos has broken in 1.5.5.6. I get no FlashGot icon when playing the movie directly from the page it is embedded on. If I click the YouTube link I can download it just fine from the YouTube page. 1.5.5.7 isn't on the AMO page yet so I don't know if it has already been fixed in that one.


On an unrelated note: I created an account and tried to log in after clicking the link in the mail (which worked) but it said the password was incorrect.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0
Corran
Posts: 2
Joined: Fri Sep 06, 2013 4:49 pm

Re: FlashGot has stopped recognizing YouTube videos.

Post by Corran »

I fixed the login problem so please disregard that part of the above post. It was a case of Firefox being too smart for its own good.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0
GUEST

Re: FlashGot has stopped recognizing YouTube videos.

Post by GUEST »

CorranUnlogged wrote:Is there any way to change this behavior with a setting?
I'd rather not have to open the submenu.
What I'd like even better would be if we could set one format as our preference (720p for instance) and have it show only that one (if it exists) and all other formats under the submenu.
Not all videos have a 720p resolution, many only reach 240p, like this one for ex.: http://youtu.be/bRzKUVjHkGk, which additionally has other formats to choose from: mp4, flv, WebM, 3GPP.
Mozilla/5.0 (Windows NT 5.1; rv:23.0) Gecko/20100101 Firefox/23.0
Corran
Posts: 2
Joined: Fri Sep 06, 2013 4:49 pm

Re: FlashGot has stopped recognizing YouTube videos.

Post by Corran »

GUEST wrote:Not all videos have a 720p resolution, many only reach 240p, like this one for ex.: http://youtu.be/bRzKUVjHkGk, which additionally has other formats to choose from: mp4, flv, WebM, 3GPP.
Hence my adding 'if it exists'. It should not be too difficult to only show one format directly, if it exists, and show everything in the submenu.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0
GUEST

Re: FlashGot has stopped recognizing YouTube videos.

Post by GUEST »

Firefox 23.0.1 wrongly identifies Flashgot 1.5.5.7rc1 as version 1.5.5.5rc2

prefs.js:
user_pref("flashgot.version", "1.5.5.5rc2");

Flashgot.log:
*** FlashGot 1.5.5.5rc2 started at 2013-09-07T05:00:04.688Z ***
Mozilla/5.0 (Windows NT 5.1; rv:23.0) Gecko/20100101 Firefox/23.0
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: FlashGot has stopped recognizing YouTube videos.

Post by Giorgio Maone »

GUEST wrote:Firefox 23.0.1 wrongly identifies Flashgot 1.5.5.7rc1 as version 1.5.5.5rc2

prefs.js:
user_pref("flashgot.version", "1.5.5.5rc2");

Flashgot.log:
*** FlashGot 1.5.5.5rc2 started at 2013-09-07T05:00:04.688Z ***
Thanks for noticing, this is an unfortunate bug introduced by the merge. I'm fixing it in 1.5.5.8 to be released in hours.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0
Post Reply