[mythtv-users] mythmetadataloookup - v29.1-v29.1-8-g925ceea0fb

Greg Oliver oliver.greg at gmail.com
Thu Jun 28 21:52:38 UTC 2018


And for those interested in running the grabber for past recorddings, here
is a one liner - change the "mythtv" user/pass on mysql if required..
Also, the 2018-01-01 00:00:00 can be changed to any date/time (it uses
anything recroded since then).

IFS=$'\n'; for i in $(echo "select chanid, starttime from recorded where
starttime > '2018-01-01 00:00:00' ;"|mysql -u mythtv -pmythtv mythconverg)
; do c=$(echo $i|awk '{print $1}') ; d=$(echo $i |awk '{print $2}');
t=$(echo $i|awk '{print $3}') ; fd=$(echo ${d}${t} |sed 's/ //g'|sed
's/\://g'|sed 's/-//g'); mythmetadatalookup --chanid=$c --starttime=$fd ;
done

-Greg

On Thu, Jun 28, 2018 at 9:42 AM, Greg Oliver <oliver.greg at gmail.com> wrote:

> Sorry, that was:
>
> mythmetadatalookup-backend-0
>
> *not*
>
> mythfilldatabase-backend-0
>
> On Thu, Jun 28, 2018 at 8:56 AM, Greg Oliver <oliver.greg at gmail.com>
> wrote:
>
>> On Mon, Jun 25, 2018 at 10:06 AM, Greg Oliver <oliver.greg at gmail.com>
>> wrote:
>>
>>> On Mon, Jun 25, 2018 at 8:23 AM, Michael T. Dean <
>>> mtdean at thirdcontact.com> wrote:
>>>
>>>> On 06/22/2018 11:02 AM, Greg Oliver wrote:
>>>>
>>>>> The lookups are happening after each recording, but they fail with no
>>>>> results every time, even though the results are there.
>>>>>
>>>>
>>>> Generally if it works when run from the command line but fails when run
>>>> by the backend, it's due to a bad environment.  So, perhaps your backend is
>>>> started in such a way that the environment is missing something required
>>>> for proper execution of the scripts.
>>>>
>>>> For example, if the backend is started with a HOME defined such that it
>>>> finds $HOME/.mythtv , but does not export the HOME for children processes,
>>>> it could fail.  Or, perhaps the backend is started in an environment that
>>>> does not include the requirements to successfully execute the Python
>>>> scripts (PATH, PYTHONPATH, ...).
>>>>
>>>> Mike
>>>>
>>>
>>>
>>> ​Thanks for the pointers Mike, but the mythmetadata​lookup* logs show no
>>> errors and when I lookup metadata with MythVideo, it works every time as
>>> well.  I would assume the Videos section would fail if it was an
>>> environment issue, plus I was runnign 0.28 on this same host/OS prior.
>>> This only just started with 0.29.
>>>
>>
>> ​Just to keep an answer with the issue - I went back and looked through
>> all posts and open tickets for 0.29, andf the only thing I could find that
>> might apply were permissions issues in the .cache folder mythtv uses.
>>
>> I did not have permissions issues, but I went ahead and deleted the
>> following folders (and file):
>>
>> mythfilldatabase-backend-0
>> pytmdb3.cache (the file)
>> tvdb_api
>>
>> After this, it started working again!
>>
>> Anyone know how to force mythmetadatalookup to run when supplied a date
>> to start @ in the recorded table - I am sure I can figure it out, but if
>> someone already knows, it will save some time :)
>>
>> -Greg​
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20180628/e7461fe4/attachment.html>


More information about the mythtv-users mailing list