![]() |
|
Youtube video direct and Get youtube download url - Printable Version +- The Un-Official Proxomitron Forum (https://www.prxbx.com/forums) +-- Forum: Proxomitron Filters (/forumdisplay.php?fid=38) +--- Forum: Website Customization (/forumdisplay.php?fid=9) +--- Thread: Youtube video direct and Get youtube download url (/showthread.php?tid=1900) Pages: 1 2 |
Youtube video direct and Get youtube download url - dave - Apr. 06, 2012 09:42 AM Updating both filters for youtube changes. November 10, 2013 I have two youtube filters to share. First one will jump any youtube video url to just the video isolated in your browser: Code: [HTTP headers]The second will open the log window (if closed) with the download url for the youtube video file as the first entry. Copy it to the clipboard and add a file name at the end and download the file. If the video is stopped, you have to press the play button before the log window will show the download url: Code: [HTTP headers]Here's a test url, 5 seconds long, "Bugs Bunny, What a Maroon": Code: http://www.youtube.com/watch?v=C_Kh7nLplWoHope you find them useful.
RE: Youtube video direct and Get youtube download url - dave - Nov. 10, 2013 05:44 PM I have updated the filters in the above post again due to youtube changes. RE: Youtube video direct and Get youtube download url - Oddysey - Nov. 11, 2013 06:02 AM Dave; Not to jump bad on you, but I think you've got an error in your first code snippet. To wit, you look to Match on this URL: Code: "(www.|m.|)youtube.com[^/]+/((watch*v=|v/)(?+{11})\1)and then you use the $JUMP to go to the same thing, ie: Code: www.youtube.com/watch?v=\1)"That's ending up with the same result as the user started with, a /watch?v= both before and after the filtration. I think what you intended was to, more or less, force YouTube's embed code, which does indeed cause the entire browser window to contain only the video in question. For your $JUMP instruction, may I suggest this as an alternative: Code: www.youtube.com/v/\1)"Alternatively, some folks don't like the look of an entire browser window showing just the video (unless they intentionally hit FullScreen). For them, there's Quietube. That site is a screen scraper that strips out all, and I mean *all* the non-video stuff. The code for that would be: Code: quietube6.com/v.php/www.youtube.com/watch?v=\1)"Different strokes for different folks, and all that. ![]() Further: I get your desire to capture a URL for downloading, but why go to the trouble of using Proxo's Log Window? ??? Merely right-clicking on any YouTube video will bring up the context menu where the very first choice is "Copy video URL". That goes directly to the clipboard, where any decent Download Manager worth its salt will be monitoring for this kind of thing. Additionally, most format conversion programs (*.avi to *.mp4, that kind of thing) have a way for the user to enter a URL, and the converter will automatically download the source material, then do the conversion, all in the same operation (insofar as the user is concerned). Since we just captured the video URL from the right-click context menu, we're all set on that score. But again, we all do things differently, so it's nice to know that there's always more than one way to skin a cat. Thanks for the tips. HTH Oddysey RE: Youtube video direct and Get youtube download url - dave - Nov. 15, 2013 07:29 AM Oddysey: The $JUMP statement I have is not what you write. It is as follows: Code: $JUMP(http://www.youtube.com/embed/\1)As far as I know, any youtube will play isolated in the browser window from that statement. Just add the 11 character identifier in place of '\1' and try it out. I think you're misreading the code statement I use for an example youtube to test the filter with as part of the filter. Read the entire filter 'URL' line and you'll see. I do not get an option to copy a download url from right clicking on a youtube but my system may not be completely up-to-date which may account for it and also may be the reason quietube does not work for me either and I did go to their homepage and tried the example. If you've tried the filter and it does not work for you, I'm sorry. It works fine for me and likely will until youtube changes things again. RE: Youtube video direct and Get youtube download url - Oddysey - Nov. 18, 2013 08:16 AM Dave; Short note.... I think the difference in our respective reports might be simply our current filter sets. I'm using a strictly "home-brew" set, with a few golden nuggets derived from various folks on this forum (thanks, everyone!). That may explain why Quietube works for me (and undoubtedly most other users) and not for you. If you disable Proxo entirely from your next YouTube browsing session, I think you'll find that the address bar will demonstrate that when watching a video, the address is ".../watch=v?{11chars}&AndAnyOtherParameters". It's long been known that the ".../v/{11chars}" form of the address is for embedding a video on another site, but when entered as the "top level" address, it forces the browser window to display the video in full window mode. (As opposed to full screen mode.) Additionally, this also bypasses the age verification process on nearly all so-called NSFW videos (I'm sure I've not seen every last one of them, so I can't be 100% certain that it always works ) and rumor has it that this address form is also supposed to bypass any region restrictions. Again, I can't verify that works every time, so YMMV.If you aren't getting the same results, then I daresay that either your filter set is a bit more restrictive than mine, or perhaps you're using a different browser..... Thanks for the reply, and hope the above helps. Oddysey RE: Youtube video direct and Get youtube download url - dave - Nov. 20, 2013 01:29 AM Oddysey: The long time embed code you mention no longer works for me. EG, this does not isolate the vid in my browser with or without proxo. It leaves me with a blank, black screen and that is all: http://www.youtube.com/v/C_Kh7nLplWo However, if I change one thing in the above URL construction, replacing 'v' with 'embed', I get the video isolated in the browser with or without proxo. Like this: http://www.youtube.com/embed/C_Kh7nLplWo The source code of quietube's example shows they are still using the 'v' URL construction. See: http://quietube6.com/v.php/http://www.youtube.com/watch?v=4oiLfTnrC40 So try it without proxo and see what you get if you wish. RE: Youtube video direct and Get youtube download url - Oddysey - Nov. 20, 2013 11:24 PM Dave; I have to admit that I've made a "slight" error..... I have a filter, always enabled, that rewrites YouTube links on the fly - as they come in from whatever server. That includes this very site, so when I said earlier that you were doing the same thing 'before' and 'after', that was my error, not yours. Humble apologies and all that. ![]() That said, what I've done for some time is to replace the embed code, usually found in Iframes (though not always, but usually), with a standard YT link, allowing me to keep from loading Iframes in the first place, just as Scott intended with his original default filter set. I still get to see the author's intended video, but now it's in a separate window (browser session), and that's how I like it. As to the "standard" embed code, that now redirects to youtube.googleapis.com/etc, etc. In your case, I'd suspect that you might have googleapis.com blocked, as I do. And not just in the AdList file, but also in the Hosts file. (And in my case, in my router, where I have to store last-ditch efforts to eradicate certain sites that just won't stay dead.) Sadly, my name isn't Doc, so I can't tell you what's up! ![]() HTH Oddysey RE: Youtube video direct and Get youtube download url - dave - Nov. 21, 2013 06:46 AM Oddysey: It's probably the video or the day, so let's try another video example and hope for a Lucky Day.
RE: Youtube video direct and Get youtube download url - Oddysey - Nov. 21, 2013 07:08 AM Dave; Busy tonight, let me give this a test sometime tomorrow during the day.... hang tight. ![]() Oddysey RE: Youtube video direct and Get youtube download url - Oddysey - Nov. 23, 2013 07:09 AM Dave; OK, here's what I get..... Loading a config set with absolutely no other filters but one of yours, I see that the first one fails to load a webpage. The log window tells me that the connection was closed before the request could be fulfilled by the server. Not sure why that is, because the persistance is still set to 10 seconds in the main config screen. Nevertheless, that's what the log window shows. Your second filter works as advertised, no problem. (Again, it was the only one in the entire filter set.) Gawd but YouTube sure has uglified the screen with mucho crap, haven't they? I'm not about to give up on them, but then again, I'm tired of code-monkeys doing their job-security thing. Sigh. ![]() HTH Oddysey RE: Youtube video direct and Get youtube download url - dave - Nov. 24, 2013 11:53 AM I'd try it without proxo. Both of these work for me with or without proxo and in any browser I have that has flash installed for it: http://www.youtube.com/watch_popup?v=C_Kh7nLplWo;autoplay=0 http://www.youtube.com/embed/C_Kh7nLplWo Likely I'm not going to be able to do much more because I can't reproduce your problem. RE: Youtube video direct and Get youtube download url - Oddysey - Nov. 25, 2013 08:04 PM Dave; I did try them in a non-Proxo environment - that's how I came to the conclusion that the code-monkeys at Google have taken over the asylum! ![]() With my browser set to no Proxy service available (it just goes straight through, as originally intended), your posted links work as advertised on the tin. However, if the purpose of a filter is to make sure something works in a different way, presumably a way that produces a more desirable effect, then The Proxomitron has to be enabled, if for no other reason than to test a filter all by itself. Which is what I did - test each of your filters by themselves, by loading a completely separate config file.... said file having no (other) header filters and no Pattern filters at all. The resuls I posted above are what I get with IE9 on W7Ult. Oh, and the Hosts file was renamed as well, to take that out of the picture for the moment. Scary, being naked like that on the Innerwebs! ![]() Quote:The $JUMP statement I have is not what you write. It is as follows: You and I seem to be operating with different YouTube servers. The address in your quoted Code is the bone-standard address for anyone visiting YouTube to watch a video. It does not produce a video-only in the entire (browser) screen - that's the job of the embed code, or more often, the "/v/{11chars}" address form..... at least that's how it is here in the USofA. In point of fact, your very first posted filter contained a RegExp that included both possibilities, meaning that it would match on what you eventually replaced via the $JUMP instruction: ((watch*v=| would indeed Match on the question mark via that asterisk, so I have to wonder, what were you trying to accomplish by Replacing the exact same Match? For reference, just so no one thinks I'm speaking in a vacuum, here's a solid link that reiterates my point: http://devsupport.layar.com/entries/23422772-Allow-Youtube-address-in-the-video-object-to-have-full-screen-parameter Indeed, one need only google (or bing, or whatever) on "youtube url OR address parameters". Every link on the first page repeats my statements above. Sorry Dave, I don't mean to pee in your Cheerios so early in the AM, but for the life of me, I just can't get my head around your thinking process here. Can you please clarify? ??? Thanks. ![]() Oddysey RE: Youtube video direct and Get youtube download url - JJoe - Nov. 25, 2013 11:38 PM Well... Dave's filters look ok and there is a $JUMP to a url that includes the the word "embed". Oddysey's quote of Dave's post does not include the word "embed" (Nov. 25, 2013 08:04 PM)Oddysey Wrote:Quote:The $JUMP statement I have is not what you write. It is as follows: And Oddysey Wrote:I have a filter, always enabled, that rewrites YouTube links on the fly Oddysey, disable all your filters, load a fresh page, and read Dave's posts. Here is what I see. [attachment=849] [attachment=848] HTH RE: Youtube video direct and Get youtube download url - Oddysey - Nov. 26, 2013 12:51 AM JJoe, Not to intimate any disrespect here, but.... I did effectively disable all of my filters before testing Dave's filter set. Let me refer you to the first couple of lines of my post just ahead of yours, Post #12 in this thread, wherein I stated, and requote here: Quote:I did try them in a non-Proxo environment.... I don't know how to state it any more clearly - there are no other filters in existance during this test - only one of Dave's Header filters in in existance during the test. Wanna see my config set? Sure, here's the short and sweet of it: Code: ##And at the risk of sounding snarky (which is certainly not my intent), I respectfully submit that when I kill the Proxomitron program entirely, then reset my browser to standard non-Proxy settings, I see the expected results from each example URL as defined in my previously referenced set of links. There can be no doubt that when a "watch?v={11chars}" form of the address is used, then the standard, unblemished version of the entire YouTube video page will be presented to the user. It takes an intentional re-write of the incoming code to force a different result, something that YouTube is not about to do on their end, considering the amount of advertising dollars involved in the equation. The only problem for me is that Dave's filter #1 doesn't work as he intended, at least from my reading of his initial post, and that happens only when I have his single filter, in the code just above, enabled. (Toggling between filters for each phase of the test, to be sure.) But, this is a "non-problem" in that I already have the capability of doing what Dave does, albeit with a different filter construction. I submitted my original reply only because Dave included the same thing in his $JUMP as what might be found in his Match statement. That's what we often call "inelegant", when we're being polite. ![]() HTH Oddysey RE: Youtube video direct and Get youtube download url - JJoe - Nov. 26, 2013 02:04 AM Oddysey, I don't think you understood. I wasn't talking about testing the filters at Youtube. The filter in the cfg that you posted is not Dave's posted filter. Where your filter has "watch?v=" Dave's has "embed/". I speculated that something at your end is modifying Dave's posted filter. Disable all your filters and load a fresh page here at TUOPF before you read Dave's post. Attached is an image to show what I see, Dave's filter and yours. I have proxo bypassed. |