<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 2/26/2021 9:44 AM, Roland Ernst
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAO+qqbNhJo-8EwdV4GDP4GdWrpncsC0KOxZwa0zor-FUF1p3gw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr"><br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Thu, Feb 25, 2021 at 9:36
PM John Finlay via mythtv-users <<a
href="mailto:mythtv-users@mythtv.org"
moz-do-not-send="true">mythtv-users@mythtv.org</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex"><br>
On my system with python2.7 I had to hack the lookup.py file
line 300 from:<br>
<br>
if query.isnumeric():<br>
<br>
to:<br>
<br>
if unicode(query).isnumeric():<br>
<br>
because the string in query is not unicode.<br>
<br>
John<br>
<br>
</blockquote>
<div><br>
</div>
<div>John,</div>
<div>please try to change line 300 of lookup.py from</div>
<div><br>
</div>
<div> if query.isnumeric():<br>
<br>
to:<br>
<br>
if query.isdigit():</div>
<div><br>
</div>
<div><span class="gmail-aCOpRe"><span>The <em>isdigit</em>()
method returns True if all the characters are digits,
otherwise False.</span></span></div>
<div><span class="gmail-aCOpRe"><span>And works for unicode
strings and ascii strings in python2.<br>
</span></span></div>
<div><span class="gmail-aCOpRe"><span>This should be
compatible to python3 and python2.</span></span></div>
<div><span class="gmail-aCOpRe"><span><br>
</span></span></div>
<div><span class="gmail-aCOpRe"><span>Thanks,</span></span></div>
<div><span class="gmail-aCOpRe"><span>Roland<br>
</span></span></div>
<div><br>
</div>
</div>
</div>
<br>
</blockquote>
<br>
Thanks it works for me.<br>
<br>
John<br>
</body>
</html>