Encoding POST data as bytes

This commit is contained in:
Fabio Manganiello 2018-04-19 23:46:47 +02:00
parent 02f6e163bf
commit 6135089d60

View file

@ -19,7 +19,7 @@ class VideoTorrentcastPlugin(Plugin):
'http://{}:{}/play/'.format(self.server, self.port),
data=urllib.parse.urlencode({
'url': url
})
}).encode()
)
self.playing = True