aboutsummaryrefslogtreecommitdiffstats
path: root/youtube
diff options
context:
space:
mode:
Diffstat (limited to 'youtube')
-rw-r--r--youtube/playlist.py4
-rw-r--r--youtube/util.py6
2 files changed, 2 insertions, 8 deletions
diff --git a/youtube/playlist.py b/youtube/playlist.py
index 64c717e..357a7ec 100644
--- a/youtube/playlist.py
+++ b/youtube/playlist.py
@@ -47,7 +47,7 @@ headers_1 = (
def playlist_first_page(playlist_id, report_text="Retrieved playlist"):
url = 'https://m.youtube.com/playlist?list=' + playlist_id + '&pbj=1'
content = util.fetch_url(url, util.mobile_ua + headers_1, report_text=report_text, debug_name='playlist_first_page')
- content = json.loads(util.uppercase_escape(content.decode('utf-8')))
+ content = json.loads(content.decode('utf-8'))
return content
@@ -68,7 +68,7 @@ def get_videos(playlist_id, page):
url, headers,
report_text="Retrieved playlist", debug_name='playlist_videos')
- info = json.loads(util.uppercase_escape(content.decode('utf-8')))
+ info = json.loads(content.decode('utf-8'))
return info
diff --git a/youtube/util.py b/youtube/util.py
index 1d7eb59..e7b12ad 100644
--- a/youtube/util.py
+++ b/youtube/util.py
@@ -476,12 +476,6 @@ def update_query_string(query_string, items):
return urllib.parse.urlencode(parameters, doseq=True)
-def uppercase_escape(s):
- return re.sub(
- r'\\U([0-9a-fA-F]{8})',
- lambda m: chr(int(m.group(1), base=16)), s)
-
-
def prefix_url(url):
if url is None:
return None