Skip to content

Commit 0367ca3

Browse files
committed
fix xtra details download error
1 parent 51e9094 commit 0367ca3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

zap2epg.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,9 @@ def parseXdetails():
541541
logging.info('Downloading details data for: %s', EPseries)
542542
url = 'https://tvlistings.zap2it.com/api/program/overviewDetails'
543543
data = 'programSeriesID=' + EPseries
544+
data_encode = data.encode('utf-8')
544545
try:
545-
URLcontent = urllib.request.Request(url, data=data)
546+
URLcontent = urllib.request.Request(url, data=data_encode)
546547
JSONcontent = urllib.request.urlopen(URLcontent).read()
547548
if JSONcontent:
548549
with open(fileDir,"wb+") as f:

0 commit comments

Comments
 (0)