Simplify this useless two-step assignment.
This commit is contained in:
parent
3f3eda58b1
commit
299ea6b579
1 changed files with 1 additions and 2 deletions
|
@ -48,13 +48,12 @@ class Video:
|
||||||
|
|
||||||
class Youtube:
|
class Youtube:
|
||||||
def __init__(self, key):
|
def __init__(self, key):
|
||||||
youtube = apiclient.discovery.build(
|
self.youtube = apiclient.discovery.build(
|
||||||
developerKey=key,
|
developerKey=key,
|
||||||
serviceName='youtube',
|
serviceName='youtube',
|
||||||
version='v3',
|
version='v3',
|
||||||
)
|
)
|
||||||
self.log = logging.getLogger(__name__)
|
self.log = logging.getLogger(__name__)
|
||||||
self.youtube = youtube
|
|
||||||
|
|
||||||
def get_playlist_videos(self, playlist_id):
|
def get_playlist_videos(self, playlist_id):
|
||||||
page_token = None
|
page_token = None
|
||||||
|
|
Loading…
Reference in a new issue