From 7c912c7152c337359ce06606a5909f3602f7afe0 Mon Sep 17 00:00:00 2001 From: Madars Auns Date: Wed, 23 Aug 2023 16:12:32 +0300 Subject: [PATCH] Fix TypeError in OAuth Intruduced in https://github.com/Taapat/enigma2-plugin-youtube/commit/0e804f6da33673a18cdc2ea3c8871b87f8ab31e2 skip-release --- src/OAuth.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/OAuth.py b/src/OAuth.py index c7573012..f81db537 100644 --- a/src/OAuth.py +++ b/src/OAuth.py @@ -34,11 +34,11 @@ def get_key(x): if len(line) < 30 or line[0] == '#' or '=' not in line: continue line = line.split('=', 1) - if line[1].startswith() == '"' or line[1].startswith() == "'": + if line[1].startswith('"') or line[1].startswith("'"): line[1] = line[1][1:] - if line[1].endswith() == '"' or line[1].endswith() == "'": + if line[1].endswith('"') or line[1].endswith("'"): line[1] = line[1][:-1] - if line[1].startswith() == 'GET_': + if line[1].startswith('GET_'): line[1] = get_key(line[1][4:]) if 'API_KEY' in line[0]: API_KEY = line[1]