jkaberg / tvhProxy

An small flask app to help Plex DVR connect with Tvheadend
Other
216 stars 107 forks source link

jsonify issue with lineup.json #22

Closed behinddesign closed 7 years ago

behinddesign commented 7 years ago

Error : error: ValueError('dictionary update sequence element #0 has length 3; 2 is required',)

When : [2017-06-13 19:25:23] "GET /lineup.json HTTP/1.1" 500 412 0.007177

Sample TVH API data : {"entries":[{"uuid":"34beb5873ce84c5945b3327948cb93fd","enabled":true,"autoname":false,"name":"Chan 1","number":0,"epgauto":false,"epggrab":[],"dvr_pre_time":0,"dvr_pst_time":0,"epg_running":0,"services":["1dc53bf226d1448af277c24b5c772712"],"tags":[],"bouquet":""},{"uuid":"753b86ddd565d2f19e88003d4d80f636","enabled":true,"autoname":false,"name":"Chan 2","number":0,"epgauto":false,"epggrab":[],"dvr_pre_time":0,"dvr_pst_time":0,"epg_running":0,"services":["4abaf153eef2eb952dc29f518301f8c4"],"tags":[],"bouquet":""}],"total":2}

Python Details : Python 2.7.9

Happy to supply more details if required.

behinddesign commented 7 years ago

Appears that I had some issues with venv and it was using an older version of jsonify