Skip to content

Commit

Permalink
updated len()
Browse files Browse the repository at this point in the history
line 297 changed len()
  • Loading branch information
Geletinousamigo authored Jan 6, 2023
1 parent 61458b3 commit 4134cdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/lib/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def play(plugin, channel_id, showtime=None, srno=None):
uriToUse = resp.get("result","") + "?" + urlencode(params)
variant_m3u8 = m3u8.load(resp.get("result","") + "?" + urlencode(params), headers=getHeaders())
if variant_m3u8.is_variant:
quality = variant_m3u8.playlists.len() - 1
quality = len(variant_m3u8.playlists) - 1
uriToUse = uriToUse.replace(resp.get("result", "").split("/")[-1], variant_m3u8.playlists[quality].uri)

return Listitem().from_dict(**{
Expand Down

0 comments on commit 4134cdb

Please sign in to comment.