Use six.moves.urllib

This commit is contained in:
JonnyWong16 2019-12-08 12:49:09 -08:00
parent ac63d3c3ce
commit 3b8234ce67
2 changed files with 3 additions and 3 deletions

View file

@ -62,7 +62,7 @@ DOCUMENTATION :: END
% if session is not None:
<%
from collections import defaultdict
from urllib import quote
from six.moves.urllib.parse import quote
from plexpy import helpers
from plexpy.common import VIDEO_RESOLUTION_OVERRIDES, AUDIO_CODEC_OVERRIDES, EXTRA_TYPES
import plexpy

View file

@ -1,5 +1,5 @@
<%
import urllib
from six.moves.urllib.parse import urlencode
%>
<!doctype html>
@ -32,7 +32,7 @@
<script>
$(document).ready(function () {
var frame = $('<iframe></iframe>', {
src: 'real_newsletter?${urllib.urlencode(kwargs) | n}',
src: 'real_newsletter?${urlencode(kwargs) | n}',
frameborder: '0',
style: 'display: none; height: 100vh; width: 100vw;'
});