We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51e9094 commit 0367ca3Copy full SHA for 0367ca3
zap2epg.py
@@ -541,8 +541,9 @@ def parseXdetails():
541
logging.info('Downloading details data for: %s', EPseries)
542
url = 'https://tvlistings.zap2it.com/api/program/overviewDetails'
543
data = 'programSeriesID=' + EPseries
544
+ data_encode = data.encode('utf-8')
545
try:
- URLcontent = urllib.request.Request(url, data=data)
546
+ URLcontent = urllib.request.Request(url, data=data_encode)
547
JSONcontent = urllib.request.urlopen(URLcontent).read()
548
if JSONcontent:
549
with open(fileDir,"wb+") as f:
0 commit comments