Skip to content

Commit 60d7665

Browse files
committed
fixed _get_session_id for hdcp
1 parent 45a7429 commit 60d7665

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

pylgnetcast/pylgnetcast.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,7 @@ def _get_session_id(self):
179179
data = response.text
180180
tree = ElementTree.XML(data)
181181
session = tree.find('session').text
182-
if len(session) >= 8:
183-
return session
184-
else:
185-
raise SessionIdError('Can not get session id from TV.')
182+
return session
186183

187184
def _display_pair_key(self):
188185
"""Send message to display the pair key on TV screen."""

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from setuptools import setup
33

44
setup(name='pylgnetcast',
5-
version='0.3.0',
5+
version='0.3.1',
66
description='Client for the LG Smart TV running NetCast 3 or 4.',
77
url='https://github.com/wokar/pylgnetcast',
88
license='MIT',

0 commit comments

Comments
 (0)