[mythtv-commits] Ticket #12496: Daily tmdb3.py exception

MythTV noreply at mythtv.org
Sun Aug 23 11:05:55 UTC 2015


#12496: Daily tmdb3.py exception
---------------------------------------------+-------------------------
     Reporter:  jfbauer@…                    |      Owner:  jyavenard
         Type:  Bug Report - Crash           |     Status:  new
     Priority:  minor                        |  Milestone:  unknown
    Component:  MythTV - Mythmetadatalookup  |    Version:  Unspecified
     Severity:  medium                       |   Keywords:
Ticket locked:  0                            |
---------------------------------------------+-------------------------
 Most every day I get a popup about an error in some program.  It is
 /usr/share/mythtv/metadata/Movie/tmdb3.py.  (The popup is a bit of a pain
 to deal with on a TV BTW.  And I am getting realy tired of it.)

 Looking at the logs I found this triggers the error:

 /usr/share/mythtv/metadata/Movie/tmdb3.py -l en -a US -C 2731

 Traceback (most recent call last):
   File "/usr/share/mythtv/metadata/Movie/tmdb3.py", line 300, in <module>
     main()
   File "/usr/share/mythtv/metadata/Movie/tmdb3.py", line 297, in main
     buildCollection(args[0], opts)
   File "/usr/share/mythtv/metadata/Movie/tmdb3.py", line 179, in
 buildCollection
     m.title = collection.name
   File "/usr/lib/python2.7/dist-packages/MythTV/tmdb3/util.py", line 153,
 in __get__
     self.poller.__get__(inst, owner)()
   File "/usr/lib/python2.7/dist-packages/MythTV/tmdb3/util.py", line 70,
 in __call__
     if not self.apply(req.readJSON(), False):
   File "/usr/lib/python2.7/dist-packages/MythTV/tmdb3/cache.py", line 118,
 in __call__
     data = self.func(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/MythTV/tmdb3/request.py", line
 129, in readJSON
     handle_status(data, url)
   File "/usr/lib/python2.7/dist-packages/MythTV/tmdb3/request.py", line
 164, in handle_status
     status = status_handlers[data.get('status_code', 1)]
 KeyError: 34

 I added a print in after 'url = self.get_full_url()' and the URL was
 'http://api.themoviedb.org/3/collection/2731?api_key=c27cb71cff5bd76e1a7a009380562c62&language=en'
 Fetching that, you get a 404 Not Found error.


 System mythbuntu (Ubuntu 12.04.5 LTS)
 mythtv version 2:0.27.5+fixes.20150803.e2a11c9-0ubuntu0mythbuntu4


 Looks similar but not identical to bug #12455

--
Ticket URL: <https://code.mythtv.org/trac/ticket/12496>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list