anyaudio / anyaudio-server

:musical_note: Simple server to search youtube and give direct audio download and stream links
91 stars 19 forks source link

Search not working #34

Closed aviaryan closed 8 years ago

aviaryan commented 8 years ago

Upon inspection, I found out that setting INF in search.get_videos was the issue.

        pos = html.find('yt-lockup-tile')
        if pos == -1:
            pos = INF
        vid.append(html[:pos + 2])

So string operation html[:pos+2] didn't work (as INF is not an integer).