|Title:||In the tunein.py line 103 needs to be changed into "if int(len(r)) < int(conf.max_streams) and max > 0:" to work properly|
|Last Modified:||2020-05-04 17:53:09|
|Version Found In:||2.2.1|
joostden added on 2020-04-13 15:31:58:
The change of file tunein.py; line 103 into "if int(len(r)) < int(conf.max_streams) and max > 0: " solves the following error: File "/usr/share/streamtuner2/channels/tunein.py", line 103, in api if len(r) < conf.max_streams and max > 0: TypeError: '<' not supported between instances of 'int' and 'str'
joostden added on 2020-04-13 15:38:14:
The error occurs when using tune-in and switching from local stations to any other category.
mario added on 2020-05-04 17:53:09:
Fixed now. Thanks!
(IIRC there was a similar issue in another channel. The typecasting should have happened in the config. class, but seemingly didn't. Thus it's probably best to carry explicit casts around.)