summaryrefslogtreecommitdiff
path: root/.local/share/libquvi-scripts
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-09-14 11:32:44 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-09-14 11:32:44 +0200
commit70f93455a06cc3f5d5c643c9492866a9011a4ce4 (patch)
treeb5b7f16b53a6e685d1929c4831b01f6772c4d332 /.local/share/libquvi-scripts
parent89998b09d981975bac731304df034d4e57a88ede (diff)
downloaddotfiles-70f93455a06cc3f5d5c643c9492866a9011a4ce4.tar.gz
dotfiles-70f93455a06cc3f5d5c643c9492866a9011a4ce4.tar.bz2
dotfiles-70f93455a06cc3f5d5c643c9492866a9011a4ce4.zip
quvi ulmentv: Support shows with spaces in rtmp url as well
Though not all shows supported yet, some dont have meta tags for og:image or og:title.
Diffstat (limited to '.local/share/libquvi-scripts')
-rw-r--r--.local/share/libquvi-scripts/lua/website/ulmentv.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/share/libquvi-scripts/lua/website/ulmentv.lua b/.local/share/libquvi-scripts/lua/website/ulmentv.lua
index 2173c96..c66bc9b 100644
--- a/.local/share/libquvi-scripts/lua/website/ulmentv.lua
+++ b/.local/share/libquvi-scripts/lua/website/ulmentv.lua
@@ -7,7 +7,7 @@ function ident(self)
r.formats = "default|best"
r.categories = C.proto_rtmp
local U = require 'quvi/util'
- r.handles = U.handles(self.page_url, {r.domain}, {"/stuckrad%-barre/%d+/.+$"})
+ r.handles = U.handles(self.page_url, {r.domain}, {"/.+/%d+/.+$"})
return r
end
@@ -37,7 +37,7 @@ function parse(self)
self.id = c:match('<a href="#" data%-url="([^"]*)"')
or error("no match: request data url")
- self.url = { "rtmp://178.23.127.5:1935/vod/" .. self.id }
+ self.url = { "rtmp://178.23.127.5:1935/vod/" .. string.gsub(self.id, " ", "%%20") }
return self
end