<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 2/26/21 10:57 AM, John Finlay via
      mythtv-users wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:d24e7b4f-32dd-0bf9-1d59-306b06d08ffb@moeraki.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
mythtv-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a>
<a class="moz-txt-link-freetext" href="http://lists.mythtv.org/mailman/listinfo/mythtv-users">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a>
<a class="moz-txt-link-freetext" href="http://wiki.mythtv.org/Mailing_List_etiquette">http://wiki.mythtv.org/Mailing_List_etiquette</a>
MythTV Forums: <a class="moz-txt-link-freetext" href="https://forum.mythtv.org">https://forum.mythtv.org</a>
</pre>
    </blockquote>
    <p>I am running 0.28 and the tmdb3tv.py seems to work, but the
      tvmaze.py throws this error:</p>
    <p>ERROR: <class 'requests.exceptions.SSLError'> :
      HTTPSConnectionPool(host='api.tvmaze.com', port=443): Max retries
      exceeded with url: /search/shows?q=Monk (Caused by
      SSLError(CertificateError("hostname 'api.tvmaze.com' doesn't match
      'tvlive.tvmaze.info'",),))</p>
    <p>Any idea how to fix this?</p>
    <p>Jay<br>
    </p>
  </body>
</html>