[mythtv-users] Important: Changes to Metadata lookup in March 2021
John Finlay
finlay at moeraki.com
Fri Feb 26 18:57:54 UTC 2021
On 2/26/2021 9:44 AM, Roland Ernst wrote:
>
> On Thu, Feb 25, 2021 at 9:36 PM John Finlay via mythtv-users
> <mythtv-users at mythtv.org <mailto:mythtv-users at mythtv.org>> wrote:
>
>
> On my system with python2.7 I had to hack the lookup.py file line
> 300 from:
>
> if query.isnumeric():
>
> to:
>
> if unicode(query).isnumeric():
>
> because the string in query is not unicode.
>
> John
>
>
> John,
> please try to change line 300 of lookup.py from
>
> if query.isnumeric():
>
> to:
>
> if query.isdigit():
>
> The /isdigit/() method returns True if all the characters are digits,
> otherwise False.
> And works for unicode strings and ascii strings in python2.
> This should be compatible to python3 and python2.
>
> Thanks,
> Roland
>
>
Thanks it works for me.
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20210226/41d70432/attachment.htm>
More information about the mythtv-users
mailing list