Simplify this useless two-step assignment.

This commit is contained in:
voussoir 2020-08-12 11:17:30 -07:00
parent 3f3eda58b1
commit 299ea6b579

View file

@ -48,13 +48,12 @@ class Video:
class Youtube:
def __init__(self, key):
youtube = apiclient.discovery.build(
self.youtube = apiclient.discovery.build(
developerKey=key,
serviceName='youtube',
version='v3',
)
self.log = logging.getLogger(__name__)
self.youtube = youtube
def get_playlist_videos(self, playlist_id):
page_token = None