The Un-Official Proxomitron Forum

Full Version: Youtube high quality?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3

Guest

Code:
[HTTP headers]
In = FALSE
Out = TRUE
Key = "! : URL: Use Youtube High Quanlity(Out)"
URL = "(http://youtube.com)(/watch\?*)\#$SET(#=&fmt=18)\#&$JUMP(http://\@)"

Why doesn't my youtube high quanlity work?

firefox 3.b5 using last sikdi set(Jan08 Beta)
[header] filters are actually quite tricky and i tend to stick with [pattern] filters...

try this:
Code:
[Patterns]
Name = "<a>: YouTube: Use High Quanlity - 5.14.08 {ProxFox} [add]"
Active = TRUE
URL = "$TYPE(htm)[^/]++.youtube.com/"
Bounds = <a\s*>"
Limit = 1024
Match = "\1("\/watch\?v\=\2)\3"\4"
Replace = "\1\3&fmt=18"\4"


(my test had it placed at the bottom of the |||...||| Link Modifications II section...)

Guest

Not work Sad

I did put it on the last entry of link Mod II
works fine here...
are you going to youtube and accessing the movie links from there, or are you getting the links from elsewhere?

Guest

It works when I am using from the website, however links from elsewhere doesn't.

Anyway to make links from elsewhere work as well?
Try this. I just removed the youtube.com text from the URL match to make it apply to all HTML pages, as well as modifying the matching expression to match any Youtube links on non-Youtube sites:

Code:
[Patterns]
Name = "YouTube: High Quality {ProxFox} (ku)"
Active = TRUE
URL = "$TYPE(htm)"
Limit = 128
Match = "("
        "(^$URL(http://(\w.|)youtube.com/))(http://(\w.|)youtube.com/(watch\?v\=|v/)*)\1"
        "|"
        "$URL(http://(\w.|)youtube.com/)(/watch\?v\=*)\1"
        ")"
        "("|\s|<)\2"
Replace = "\1&fmt=18\2"

I also wrote this Header filter to catch any video that hasn't had the fmt=18 attribute added to the URL:

Code:
[HTTP headers]
In = FALSE
Out = TRUE
Key = "URL: Youtube: High Quality (ku) (Out)"
URL = "(\w.|)youtube.com/(watch\?v\=|v/)"
Match = "\1((^$TST(\1=*\&fmt=18*))$SET(9=$JUMP(\1&fmt=18))|$SET(9=\1))"
Replace = "\9"
cool update... thanks...
Updated to make embed Youtube videos High-Quality (method from http://www.kottke.org/08/11/high-quality...deo-hack):

Code:
[Patterns]
Name = "YouTube: High Quality v1.081113 {ProxFox} (ku)"
Active = TRUE
URL = "$TYPE(htm)"
Limit = 128
Match = "$SET(5=&fmt=18)"
        "("
        "(^$URL(http://(\w.|)youtube.com/))((http://(\w.|)youtube.com/watch\?v\=*)\1|(http://(\w.|)youtube.com/v/*)\1$SET(5=&ap=%2526fmt%3D18))"
        "|"
        "$URL(http://(\w.|)youtube.com/)(/watch\?v\=*)\1"
        ")"
        "("|\s|<)\0($TST(\1=\2\&fmt=[0-9]+\3)$SET(9=\2\3)|$SET(9=\1))"
Replace = "\9\5\0"

You can use the same header filter two posts above Wink
By the way, new higher quality format 22

http://www.youtube.com/watch?v=zlfKdbWwruY&fmt=22
the header filter pegs my CPU to 100%...
seems to be stuck in an endless loop... endless loop... endless loop... endless loop...
ProxRocks Wrote:the header filter pegs my CPU to 100%...
seems to be stuck in an endless loop... endless loop... endless loop... endless loop...

I haven't tried any of these filters yet.
I'm curious about the header filter problem though.
Do you have a link or url to test?

z12
the one provided a couple posts up...

http://www.youtube.com/watch?v=zlfKdbWwruY
http://www.youtube.com/watch?v=zlfKdbWwruY&fmt=18
http://www.youtube.com/watch?v=zlfKdbWwruY&fmt=22


ALL are "endless loops" requiring a 'kill connections'...
i'm not a YouTube-er, but am curious as to "why" it's 'pegging' my CPU...
hmm... I imported Kye-U's header filter.
The last link you posted resulted in a odd url, but no loop:

Code:
*** Log Reset ***
JumpTo: http://www.youtube.com/watch?v=zlfKdbWwruY&fmt=22&fmt=18

Other than that, everything seemed to work ok.
Tried a few other videos while I was there, no problem.

z12
endless loop... endless loop... endless loop... endless loop...

sidki 1/2/08, Kye-U's updates (which are only Google-related, so no effect here anyway)...

NOTHING changed EXCEPT importing that header filter...

which i'm importing like this, btw:
Code:
In = FALSE
Out = TRUE
Key = "!-|||||||||||| URL: Youtube: High Quality {Kye-U} (Out) [add]"
URL = "(\w.|)youtube.com/(watch\?v\=|v/)"
Match = "\1((^$TST(\1=*\&fmt=18*))$SET(9=$JUMP(\1&fmt=18))|$SET(9=\1))"
Replace = "\9"

surely "that" (the !-||||||||||||) can't be the problem ??? ???
http://www.youtube.com/watch?v=zlfKdbWwruY
http://www.youtube.com/watch?v=zlfKdbWwruY&fmt=18
http://www.youtube.com/watch?v=zlfKdbWwruY&fmt=22

FWIW: I cut & pasted Kye-U's header filter into default.cfg exactly as he posted it (without "!-||||||||||||") and am having no problems with any vids on Firefox 3.0.4, including the three above.
Pages: 1 2 3
Reference URL's