Post Reply 
Youtube high quality?
May. 14, 2008, 09:04 AM
Post: #1
Youtube high quality?
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)
Quote this message in a reply
May. 14, 2008, 12:59 PM
Post: #2
RE: Youtube hight quality?
[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...)
Add Thank You Quote this message in a reply
May. 15, 2008, 09:12 AM
Post: #3
RE: Youtube hight quality?
Not work Sad

I did put it on the last entry of link Mod II
Quote this message in a reply
May. 15, 2008, 10:07 AM
Post: #4
RE: Youtube hight quality?
works fine here...
are you going to youtube and accessing the movie links from there, or are you getting the links from elsewhere?
Add Thank You Quote this message in a reply
Jul. 09, 2008, 11:57 PM
Post: #5
RE: Youtube hight quality?
It works when I am using from the website, however links from elsewhere doesn't.

Anyway to make links from elsewhere work as well?
Quote this message in a reply
Jul. 10, 2008, 12:32 AM
Post: #6
RE: Youtube hight quality?
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"
Visit this user's website
Add Thank You Quote this message in a reply
Jul. 11, 2008, 05:44 PM
Post: #7
RE: Youtube hight quality?
cool update... thanks...
Add Thank You Quote this message in a reply
Nov. 14, 2008, 12:36 AM
Post: #8
RE: Youtube hight quality?
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
Visit this user's website
Add Thank You Quote this message in a reply
Nov. 14, 2008, 03:48 PM
Post: #9
RE: Youtube hight quality?
By the way, new higher quality format 22

http://www.youtube.com/watch?v=zlfKdbWwruY&fmt=22
Add Thank You Quote this message in a reply
Nov. 14, 2008, 05:27 PM
Post: #10
RE: Youtube hight quality?
the header filter pegs my CPU to 100%...
seems to be stuck in an endless loop... endless loop... endless loop... endless loop...
Add Thank You Quote this message in a reply
Nov. 14, 2008, 10:41 PM
Post: #11
RE: Youtube hight quality?
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
Add Thank You Quote this message in a reply
Nov. 15, 2008, 12:22 AM
Post: #12
RE: Youtube hight quality?
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...
Add Thank You Quote this message in a reply
Nov. 15, 2008, 08:23 AM
Post: #13
RE: Youtube hight quality?
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
Add Thank You Quote this message in a reply
Nov. 15, 2008, 01:25 PM
Post: #14
RE: Youtube hight quality?
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 ??? ???


Attached File(s)
.png  Firefox 3.0.4.png (Size: 33.9 KB / Downloads: 786)
.png  Opera.png (Size: 28.98 KB / Downloads: 788)
Add Thank You Quote this message in a reply
Nov. 15, 2008, 02:36 PM
Post: #15
RE: Youtube hight quality?
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.
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: