Skip to content

Instantly share code, notes, and snippets.

@msikma
Last active December 17, 2016 14:25
Show Gist options
  • Save msikma/119d98ea13c4c603f7db06e836add8af to your computer and use it in GitHub Desktop.
Save msikma/119d98ea13c4c603f7db06e836add8af to your computer and use it in GitHub Desktop.

How to fix Vaughn Live on Livestreamer

Note: check whether you can use Streamlink instead of Livestreamer first. See the last section below.

This brief guide assumes you know the basics of Git, and that you have Python installed with setuptools. (Downloading the latest Python 3 from the main website should be sufficient.) You also need to make some changes to one of the files.

  1. Clone livestreamer from Github
  2. Fetch the PR with fixes: git fetch origin pull/1495/head:proposed-fixes-1.13
  3. Switch to the fixes branch: git checkout proposed-fixes-1.13
  4. If necessary, perform the changes to src/livestreamer/plugins/vaughnlive.py as described below
  5. Install the script from the repository root dir: python setup.py develop (I suggest installing as a developer so you can fix problems easily if you've made a typo somewhere in the code changes.)
  6. Now you should be able to use Vaughn Live streams using Livestreamer. If it doesn't work, I suggest typing which livestreamer to ensure you are using the custom version you just installed. If it's not in your Python version's /bin then you might accidentally be trying to invoke another version (such as one installed by Brew). If it doesn't work still, check the project issues/PRs for updates.

vaughnlive.py fixes

Note: I've requested that the author of the proposed-fixes-1.13 branch do these changes in his PR, so if all goes well you should not need to do any of this. Check the PR for more information. If possible, install the script first and try out your URL to see if it works after switching to the PR branch.

The file you need to edit is src/livestreamer/plugins/vaughnlive.py.

Change INFO_URL to the following:

INFO_URL = "http://mvn.vaughnsoft.net/video/edge/mnt-{domain}_{channel}?{version}_{ms}-{ms}-{random}"

Change _url_re to the following:

_url_re = re.compile("""
    http(s)?://(\w+\.)?
    (?P<domain>vaughnlive|breakers|instagib|vapers).tv
    (/embed/video)?
    /(?P<channel>[^/&?]+)
""", re.VERBOSE)

Streamlink

Streamlink is a forked project from Livestreamer, which appears to be abandoned. The fork has a number of fixes, but Vaughn Live is broken there as well. I've sent in a PR to fix this. If all goes well, you should be able to avoid all these instructions just by using Streamlink instead of Livestreamer.

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