[mythtv-users] tmdb3 python bindings: how best to report bugs

Doug Scoular (dscoular) dscoular at cisco.com
Wed May 5 06:04:54 UTC 2021

	I think I've found a bug in the latest MythTV tmdb3 python bindings (fixes/31).

MythTV/tmdb3/lookup.py, line 138:
    if loc_posters[0].language != locale_language \
                    and locale_language != system_language:

	I guess the fix would be to change MythTV/tmdb3/lookup.py, line 138 to:

    if len(loc_posters) and loc_posters[0].language != locale_language \
                    and locale_language != system_language:

	To repeat the issue I can run the following:

# /usr/bin/python3 /usr/share/mythtv/metadata/Movie/tmdb3.py -l en -a AU -D 323614
Traceback (most recent call last):
  File "/usr/share/mythtv/metadata/Movie/tmdb3.py", line 150, in <module>
  File "/usr/share/mythtv/metadata/Movie/tmdb3.py", line 127, in main
    xml = buildSingle(args[0], opts)
  File "/usr/lib/python3/dist-packages/MythTV/tmdb3/lookup.py", line 138, in buildSingle
    if loc_posters[0].language != locale_language \
IndexError: list index out of range

	This finds the related documentary but it has no associated movie.posters and this causes loc_posters to be assigned an empty list leading to the IndexError.

	I wasn't sure how best to report this, the mythtv.org site links to code.mythtv.org/trac while github has its own issues page https://github.com/MythTV/mythtv/issues.

	I was just wondering how best to make developers aware of the problem and my suggested fix?

"The big print giveth and the small print taketh away."

More information about the mythtv-users mailing list