Skip to content

Instantly share code, notes, and snippets.

@auselen
Created September 1, 2015 00:51
Show Gist options
  • Save auselen/75726ff25400ef4c4944 to your computer and use it in GitHub Desktop.
Save auselen/75726ff25400ef4c4944 to your computer and use it in GitHub Desktop.
canlitvlive to kodi
#!/bin/sh
link=`curl -s "http://www.canlitvlive.org/izle/$1.html" |sed -n 's/.*file:"\(.*\)"}]}]\(.*\)/\1/p'`
livestreamer --player-external-http --player-external-http-port 8087 "hls://$link" worst
@Shinoby1992
Copy link

how can i use this?? i already have live streamer...does it work?

running it in osx doesn't work...

LOG:

[cli][info] Found matching plugin stream for URL hls://
Traceback (most recent call last):
File "/usr/local/bin/livestreamer", line 9, in
load_entry_point('livestreamer==1.12.2', 'console_scripts', 'livestreamer')()
File "/Library/Python/2.7/site-packages/livestreamer-1.12.2-py2.7.egg/livestreamer_cli/main.py", line 886, in main
handle_url()
File "/Library/Python/2.7/site-packages/livestreamer-1.12.2-py2.7.egg/livestreamer_cli/main.py", line 471, in handle_url
streams = fetch_streams(plugin)
File "/Library/Python/2.7/site-packages/livestreamer-1.12.2-py2.7.egg/livestreamer_cli/main.py", line 388, in fetch_streams
sorting_excludes=args.stream_sorting_excludes)
File "/Library/Python/2.7/site-packages/livestreamer-1.12.2-py2.7.egg/livestreamer/plugin/plugin.py", line 313, in get_streams
return self.streams(_args, *_kwargs)
File "/Library/Python/2.7/site-packages/livestreamer-1.12.2-py2.7.egg/livestreamer/plugin/plugin.py", line 227, in streams
ostreams = self._get_streams()
File "/Library/Python/2.7/site-packages/livestreamer-1.12.2-py2.7.egg/livestreamer/plugins/stream.py", line 54, in _get_streams
urlnoproto = re.match("^\w+://(.+)", url).group(1)
AttributeError: 'NoneType' object has no attribute 'group'
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment