diff options
author | James Taylor <user234683@users.noreply.github.com> | 2020-12-26 19:35:45 -0800 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2020-12-28 11:43:57 -0500 |
commit | e1fe6b1d8e195de2c2fed8d9e6a06a6f4bc6f22c (patch) | |
tree | 4e45c3c2194063cf13f44b8254db9f3e8f573076 /youtube/playlist.py | |
parent | b567a34ecd0c9c627d22faab97393107eccc314c (diff) | |
download | yt-local-e1fe6b1d8e195de2c2fed8d9e6a06a6f4bc6f22c.tar.lz yt-local-e1fe6b1d8e195de2c2fed8d9e6a06a6f4bc6f22c.tar.xz yt-local-e1fe6b1d8e195de2c2fed8d9e6a06a6f4bc6f22c.zip |
Remove obsolete uppercase_escape function
This function was only necessary with the old ajax format, which
was removed in 4d7bba92eb62518e2273d030235214f4a7605444
Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'youtube/playlist.py')
-rw-r--r-- | youtube/playlist.py | 4 |
1 files changed, 2 insertions, 2 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 |