Internet radio browser GUI for music/video streams from various directory services.

⌈⌋ branch:  streamtuner2

View Ticket

Ticket Hash: 4163057c375ef104d431de2dbbc866d21a117d25
Title: In the line 103 needs to be changed into "if int(len(r)) < int(conf.max_streams) and max > 0:" to work properly
Status: Fixed Type: Code_Defect
Severity: Critical Priority: Immediate
Subsystem: Resolution: Fixed
Last Modified: 2020-05-04 17:53:09
Version Found In: 2.2.1
User Comments:
joostden added on 2020-04-13 15:31:58: (text/x-fossil-plain)
The change of file; line 103 into "if int(len(r)) < int(conf.max_streams) and max > 0:
" solves the following error:
File "/usr/share/streamtuner2/channels/", 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: (text/x-fossil-plain)
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: (text/x-fossil-wiki)
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.)