diff options
author | James Taylor <user234683@users.noreply.github.com> | 2018-08-31 16:22:54 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2018-08-31 16:22:54 -0700 |
commit | 6980d93107354a8c075030a7bda4c3870449163b (patch) | |
tree | 7356140c8967fc16b7fe2a7f591bb699568221b6 | |
parent | 8cf42ed00b9c570100ef7013204d53e732159968 (diff) | |
download | yt-local-6980d93107354a8c075030a7bda4c3870449163b.tar.lz yt-local-6980d93107354a8c075030a7bda4c3870449163b.tar.xz yt-local-6980d93107354a8c075030a7bda4c3870449163b.zip |
ignore unknown renderer types
-rw-r--r-- | youtube/common.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube/common.py b/youtube/common.py index f867ea9..a20dbf1 100644 --- a/youtube/common.py +++ b/youtube/common.py @@ -638,5 +638,6 @@ def renderer_html(renderer, additional_info={}, current_query_string=''): if type in ('playlistRenderer', 'gridPlaylistRenderer', 'radioRenderer', 'gridRadioRenderer', 'gridShowRenderer', 'showRenderer'): return playlist_item_html(info, medium_playlist_item_template, html_exclude=html_exclude) - print(renderer) - raise NotImplementedError('Unknown renderer type: ' + type) + #print(renderer) + #raise NotImplementedError('Unknown renderer type: ' + type) + return '' |