diff --git a/PyLivestream/__init__.py b/PyLivestream/__init__.py index 0469e60..0a6e818 100644 --- a/PyLivestream/__init__.py +++ b/PyLivestream/__init__.py @@ -102,6 +102,8 @@ def osparam(self): C = ConfigParser() C.read(str(self.ini)) + assert self.site in C,'Your site {} is not found in {}'.format(self.site,self.ini) + if sys.platform.startswith('linux'): if 'XDG_SESSION_TYPE' in os.environ and os.environ['XDG_SESSION_TYPE'] == 'wayland': logging.error('Wayland may only give black output with cursor. Login with X11 desktop') diff --git a/setup.py b/setup.py index bf6be40..418ceb1 100755 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup(name='PyLivestream', packages=find_packages(), - version = '1.5.0', + version = '1.5.1', author='Michael Hirsch, Ph.D.', url='https://github.com/scivision/PyLivestream', description='Easy streaming using FFmpeg to YouTube Live, Periscope, Facebook Live, Twitch, ...',