<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, May 16, 2018 at 5:21 PM, Ian Evans <span dir="ltr"><<a href="mailto:dheianevans@gmail.com" target="_blank">dheianevans@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div class="gmail-h5"><div class="gmail_extra"><div class="gmail_quote">On Wed, May 16, 2018 at 4:46 PM, Nicolas Krzywinski <span dir="ltr"><<a href="mailto:myth2@site7even.de" target="_blank">myth2@site7even.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF"><div><div class="gmail-m_-8410849394549314402gmail-h5">
Am 15.05.2018 um 23:47 schrieb Ian Evans:<br>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On Tue, May 15, 2018 at 5:03 PM, Bill
Meek <span dir="ltr"><<a href="mailto:keemllib@gmail.com" target="_blank">keemllib@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-m_-8410849394549314402gmail-m_-7250851446566318720gmail-">On
05/15/2018 11:41 AM, Ian Evans wrote:<br>
</span><span class="gmail-m_-8410849394549314402gmail-m_-7250851446566318720gmail-">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
since we're running it from the command line, we won't
have a jobid so I<br>
followed the mythvidexport wiki and used chanid and
starttime. In<br>
recordedprogram the chanid is 1091 and the starttime
is 2011-08-23 23:30:00<br>
which I assume I change to 20110823233000<br>
</blockquote>
<br>
</span>
Works if I subtract my standard UTC offset from the stored
time, not<br>
my DST offset.<span class="gmail-m_-8410849394549314402gmail-m_-7250851446566318720gmail-HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Bill</font></span>
<div class="gmail-m_-8410849394549314402gmail-m_-7250851446566318720gmail-HOEnZb">
<div class="gmail-m_-8410849394549314402gmail-m_-7250851446566318720gmail-h5"><br>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>Yep, adjusting the time got it to run and yes, it's a
problem with an accented character in the episode title "<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">The
Panty Piñata Polarization":</span></div>
<div><br>
</div>
<div>2018-05-15 17:40:41.156820 I [23968] Python File
Transfer Opening local file (w) --
/var/lib/mythtv/videos/Televis<wbr>ion/The Big Bang
Theory/Season 2/The Big Bang Theory - S2E07 - The Panty
Piñata Polarization.mpg<br>
</div>
<div>2018-05-15 17:40:41.157089 D [23968] Python Database
Connection Acquiring connection from pool</div>
<div>Traceback (most recent call last):</div>
<div> File "/usr/share/mythtv/mythvidexpo<wbr>rt.py", line 437,
in <module></div>
<div> main()</div>
<div> File "/usr/share/mythtv/mythvidexpo<wbr>rt.py", line 409,
in main</div>
<div> export = VIDEO(opts)</div>
<div> File "/usr/share/mythtv/mythvidexpo<wbr>rt.py", line 77,
in __init__</div>
<div> self.copy()</div>
<div> File "/usr/share/mythtv/mythvidexpo<wbr>rt.py", line 236,
in copy</div>
<div> dstfp = self.vid.open('w', nooverwrite=True)</div>
<div> File
"/usr/lib/python2.7/dist-packa<wbr>ges/MythTV/dataheap.py",
line 980, in open</div>
<div> mode, False, nooverwrite, self._db)</div>
<div> File
"/usr/lib/python2.7/dist-packa<wbr>ges/MythTV/mythproto.py",
line 297, in ftopen</div>
<div> sg.dirname+filename)</div>
<div> File
"/usr/lib/python2.7/dist-packa<wbr>ges/MythTV/logging.py", line
431, in __call__</div>
<div> self.log(mask, level, message, detail)</div>
<div> File
"/usr/lib/python2.7/dist-packa<wbr>ges/MythTV/logging.py", line
377, in log</div>
<div> self._logdatabase(mask, level, message, detail)</div>
<div> File
"/usr/lib/python2.7/dist-packa<wbr>ges/MythTV/logging.py", line
428, in _logdatabase</div>
<div> message + (' -- {0}'.format(detail) if detail else
'')))</div>
<div>UnicodeEncodeError: 'ascii' codec can't encode
character u'\xf1' in position 105: ordinal not in
range(128)</div>
<div>2018-05-15 17:40:41.217882 D [23968] Python Database
Connection database callback received -- 0x7f4c75b3e628</div>
<div>2018-05-15 17:40:41.218213 D [23968] Python Database
Connection Releasing connection to pool<br>
</div>
<div><br>
</div>
<div>Looking at github I see the script hasn't been updated
in a few years. It's a great script but I don't know
python. Anyway to patch it or should I just shrug and
temporarily change the "<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Piñata"
to "<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Pinata"
and change it back after the export?</span></span></div>
<div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br>
</span></span></div>
<div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Thanks.</span></span></div>
</div>
</div>
</div>
</blockquote></div></div>
Did you tried setting utf8 charset like this?<br>
<br>
PYTHONIOENCODING=utf-8 python /srv/bin/mythvidexport.py --skiplist
--listingonly --delete %JOBID%<span class="gmail-m_-8410849394549314402gmail-HOEnZb"><font color="#888888"><br>
<pre class="gmail-m_-8410849394549314402gmail-m_-7250851446566318720moz-signature" cols="72"></pre></font></span></div></blockquote></div><br></div><div class="gmail_extra"><br></div></div></div><div class="gmail_extra">Took your suggestion and added
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">PYTHONIOENCODING=utf-8</span>
to the start of the command line. Got the same result at the end of the logging:</div><div class="gmail_extra"><br></div><div class="gmail_extra">"UnicodeEncodeError: 'ascii' codec can't encode character u'\xf1' i"n position 105: ordinal not in range(128)"<br></div></div></blockquote><div><br></div><div>A question about the error line about the ascii codec: is it being thrown by is the error in line 428 of /usr/lib/python2.7/dist-packa<wbr>ges/MythTV/logging.py which is:</div><div><br></div><div><div>message + (' -- {0}'.format(detail) if detail else '')))</div></div><div><br></div></div><br></div></div>