[mythtv-users] tmdb3 wonkiness

Mike Perkins mikep at randomtraveller.org.uk
Wed Sep 16 19:35:01 UTC 2015


On 16/09/15 20:21, Phil Bridges wrote:
> On Wed, Sep 16, 2015 at 2:04 PM, Bill Meek <keemllib at gmail.com> wrote:
>
>> On 09/16/2015 12:44 PM, Phil Bridges wrote:
>>
>>> <         confpath = os.path.join(confdir, 'pytmdb3.cache')
>>> ---
>>>
>>>>>          confpath = os.path.join(confdir, 'cache', 'pytmdb3.cache')
>>>>
>>>
>> Forgot that there's now a cache directory in 0.28-pre, so the
>> version I'm using may not work for you.
>>
>> It might be worthwhile to remove your tmdb3.cache. I tried it and it failed
>> like yours:
>>
>>      /usr/local/share/mythtv/metadata/Movie/tmdb3.py -l en -a US -D 116149
>> ...
>>      status = status_handlers[data.get('status_code', 1)]
>> KeyError: 25
>>
>> Then I ran /usr/local/share/mythtv/metadata/Movie/tmdb3.py -l en -a US -D
>> 11614
>> (note the missing last digit):
>>
>> and it worked, as did the original (-D 116149.) And I repeated it
>> eight times. All returned the same non-errored result.
>>
>>
>>
> The first few times I ran the 11614 query it worked fine, then it crashed
> with the same error.   Running it again worked.  I can't seem to figure out
> why it errors sometimes, and doesn't others.
>
That's the kind of bug that can result from, e.g. a uninitialized variable. Most 
of the time it may start life as zero, other tims it could contain whatever was 
left at that memory location.

-- 

Mike Perkins



More information about the mythtv-users mailing list