Skip to content

Commit 99c718c

Browse files
author
api.jhartmann
committed
Fixed issue 132
1 parent 8ef935e commit 99c718c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/gdata/youtube/service.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,10 @@ class YouTubeService(gdata.service.GDataService):
132132
def __init__(self, email=None, password=None, source=None,
133133
server=YOUTUBE_SERVER, additional_headers=None, client_id=None,
134134
developer_key=None):
135+
self.additional_headers = {}
135136
if client_id is not None and developer_key is not None:
136-
self.additional_headers = {'X-Gdata-Client': self.client_id,
137-
'X-GData-Key': 'key=%s' % self.developer_key}
137+
self.additional_headers = {'X-Gdata-Client': client_id,
138+
'X-GData-Key': 'key=%s' % developer_key}
138139

139140
gdata.service.GDataService.__init__(
140141
self, email=email, password=password, service=YOUTUBE_SERVICE,

0 commit comments

Comments
 (0)