Skip to content

Commit

Permalink
Merge pull request #23 from guipenedo/master
Browse files Browse the repository at this point in the history
Fixes for on demand url retrieval
  • Loading branch information
enen92 authored Feb 25, 2020
2 parents 1a2bd4c + 2d20f87 commit ab08a96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/lib/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ def programs_play():

try:
req = requests.get("https://www.rtp.pt" + url, headers=HEADERS)
req.encoding = "utf-8"
stream = re.search(r'"https://(.+?)ondemand.rtp.pt(.*)"', req.text)
req.encoding = "latin-1"
stream = re.search(r'"https://(.+?)ondemand.rtp.pt(.*?)"', req.text)
stream = "https://" + stream.group(1) + "ondemand.rtp.pt" + stream.group(2)
except:
raise_notification()
Expand Down

0 comments on commit ab08a96

Please sign in to comment.