youtube.lua: Rewrite YouTube.choose_default
commitaec0afa6cca3e8b3ad10ec485cc02f40cc8fe43d
authorToni Gundogdu <legatvs@gmail.com>
Tue, 17 Jul 2012 17:16:32 +0000 (17 20:16 +0300)
committerToni Gundogdu <legatvs@gmail.com>
Tue, 17 Jul 2012 17:19:13 +0000 (17 20:19 +0300)
tree0ba96b35aa44804e0a6e3c6041416dd005cc7a51
parent7dfe32294e6dcd741d2559f601cbb190439c8d33
youtube.lua: Rewrite YouTube.choose_default

Replace the old default behaviour:
  Choose the lowest quality available.
With:
  Either whatever YouTube returns as the first,
  or whichever is of 480p and found first.
share/lua/website/youtube.lua