Skip to content
Scott Morton edited this page Jun 15, 2015 · 4 revisions

Welcome to the Myth-Scripts wiki!

Currently checking on some issues with Myth_Rec_to_Vid.py Tracked the issue down to a couple of things:

  1. The throttling method of tmdb api limits each query to 40 returns per minute and as a shared key service that means for everyone simultaneously. Adjusted line 167 in tmdb3.py to 15. Will consider filing an enhancement request to Myth Dev to make everyone acquire their own key and input into general settings

  2. The next issue lies also within myth where the method 'update()' for a video object will fail if the metadata contains a 'videocategory' type the does not exist in that table. The traceback points to a bad cursor.execute statement at line 870 of dataheap.py in method 'def _cat_toid(self):' I adjusted the code as follows to correct the errant behavior.

cursor.execute("INSERT INTO videocategory (category) VALUES (%s)", [self.category])

Traceback (most recent call last): File "", line 1, in File "/mnt/data/mythtv/Myth-Rec-to-Vid.py", line 288, in update_vid self.vid.update() File "/usr/lib/python2.7/site-packages/MythTV/database.py", line 429, in update self._push() File "/usr/lib/python2.7/site-packages/MythTV/dataheap.py", line 885, in _push self._cat_toid() File "/usr/lib/python2.7/site-packages/MythTV/dataheap.py", line 870, in _cat_toid self.category) File "/usr/lib/python2.7/site-packages/MythTV/_conn_mysqldb.py", line 71, in execute raise MythDBError(MythDBError.DB_RAW, e.args) MythTV.exceptions.MythDBError: MySQL error: not all arguments converted during string formatting

Clone this wiki locally