diff options
Diffstat (limited to 'youtube')
-rw-r--r-- | youtube/common.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube/common.py b/youtube/common.py index 3133fed..c65f545 100644 --- a/youtube/common.py +++ b/youtube/common.py @@ -371,7 +371,11 @@ def get_text(node): try: return node['simpleText'] except KeyError: + pass + try: return node['runs'][0]['text'] + except IndexError: # empty text runs + return '' def get_formatted_text(node): try: |