Hello!

A simple patch to make vimeo work again with latest quvi-scripts.

The JSON-containing parameter is now called "a" instead of "b". To
differentiate from some other a's in the code, I had to add some more context.
---
 share/media/vimeo.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/share/media/vimeo.lua b/share/media/vimeo.lua
index 192073f..7fc60fe 100644
--- a/share/media/vimeo.lua
+++ b/share/media/vimeo.lua
@@ -75,7 +75,7 @@ function Vimeo.config_new(qargs)
   t.host = 'player.vimeo.com'
   t.path = table.concat({'/video/', qargs.id})
   local p = quvi.http.fetch(U.build(t)).data
-  return p:match('b=(.-);') or error('no match: b')
+  return p:match(',a=({.-);') or error('no match: a=({.-);')
 end
 
 function Vimeo.thumb_new(j)
-- 
2.1.3


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
quvi-devel mailing list
quvi-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quvi-devel

Reply via email to