jkaberg / tvhProxy

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

Environmental Variables need to be converted to integer #10

Closed ghost closed 7 years ago

ghost commented 7 years ago

tvhProxy.py: 'tunerCount': int(os.environ.get('TVH_TUNER_COUNT')) or 6, # number of tuners in tvh

jkaberg commented 7 years ago

It's already casted to int, just look at your quote @eatmoretv.

ghost commented 7 years ago

Sorry, I should have been clearer, the quote is my fix not from your code. The environmental variable, TVH_TUNER_COUNT, is parsed to 'tunerCount' as text. Resulting in an incorrect tuner count being shown in plex. For example, TVH_TUNER_COUNT=4 becomes 1 tuner in plex. p.s. Thanks for your code it makes Plex DVR actually usable :)

jkaberg commented 7 years ago

My bad! 😆

Pushed and fix now