[vlc-commits] lua: Add alternative hosts to Twitch script
Marvin Scholz
git at videolan.org
Sat Sep 30 18:37:59 CEST 2017
vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Fri Sep 29 20:32:28 2017 +0200| [9973c5ef3261f0df062170ccf97de5d203977142] | committer: Marvin Scholz
lua: Add alternative hosts to Twitch script
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9973c5ef3261f0df062170ccf97de5d203977142
---
share/lua/playlist/twitch.lua | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/share/lua/playlist/twitch.lua b/share/lua/playlist/twitch.lua
index fdfab85b4e..3da00d445a 100644
--- a/share/lua/playlist/twitch.lua
+++ b/share/lua/playlist/twitch.lua
@@ -25,7 +25,9 @@ Resolve Twitch channel and video URLs to the actual stream URL
function probe()
return (vlc.access == "http" or vlc.access == "https")
and ( vlc.path:match("^www%.twitch%.tv/videos/.+") or
- vlc.path:match("^www%.twitch%.tv/.+") )
+ vlc.path:match("^www%.twitch%.tv/.+") or
+ vlc.path:match("^go%.twitch%.tv/.+") or
+ vlc.path:match("^go%.twitch%.tv/videos/.+") )
end
-- Download and parse a JSON document from the specified URL
More information about the vlc-commits
mailing list