Skip to content

Commit

Permalink
Changed in session to True/False
Browse files Browse the repository at this point in the history
  • Loading branch information
ur1katz committed Jun 1, 2018
1 parent 1df50ad commit d71d368
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion casttube/YouTubeSession.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ def __init__(self, screen_id):
@property
def in_session(self):
""" Returns True if session params are not None."""
return self._gsession_id and self._lounge_token
if self._gsession_id and self._lounge_token:
return True
else:
return False

def play_video(self, video_id):
"""
Expand Down

0 comments on commit d71d368

Please sign in to comment.