-import httplib
+import http.client
import gdata_oauth
import file_writer
import renderer
temp_width = {}
temp_height = {}
temp_is_video = {}
- conn = httplib.HTTPSConnection("photoslibrary.googleapis.com")
+ conn = http.client.HTTPSConnection("photoslibrary.googleapis.com")
conn.request("GET",
"/v1/albums",
None,
})
response = conn.getresponse()
if response.status != 200:
- print("Failed to fetch albums, status %d\n" % response.status)
- print response.read()
+ print(("Failed to fetch albums, status %d\n" % response.status))
+ print(response.read())
albums = self.pws.GetUserFeed().entry
for album in albums:
if (album.title.text not in picasa_renderer.album_whitelist):
if not oauth.has_token():
user_code = oauth.get_user_code()
print('------------------------------------------------------------')
- print('Go to %s and enter the code "%s" (no quotes, case-sensitive)' % (
- oauth.verification_url, user_code))
+ print(('Go to %s and enter the code "%s" (no quotes, case-sensitive)' % (
+ oauth.verification_url, user_code)))
oauth.get_new_token()
x = picasa_renderer({"Fetch Photos": (60 * 60 * 12),
"Shuffle Cached Photos": (1)},