1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-25 04:02:32 +01:00

[flickr] replace getPublic... API call with regular ones

This commit is contained in:
Mike Fährmann 2017-06-12 16:37:06 +02:00
parent 9a620784f9
commit 5f55c854b9
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 13 additions and 8 deletions

View File

@ -58,6 +58,11 @@
"date-min": 0,
"date-max": 253402210800,
"recursion": 0
},
"flickr":
{
"access-token": null,
"access-token-secret": null
}
},
"output":

View File

@ -195,7 +195,7 @@ class FlickrUserExtractor(FlickrExtractor):
})]
def photos(self):
return self.api.people_getPublicPhotos(self.user["nsid"])
return self.api.people_getPhotos(self.user["nsid"])
class FlickrFavoriteExtractor(FlickrExtractor):
@ -209,7 +209,7 @@ class FlickrFavoriteExtractor(FlickrExtractor):
})]
def photos(self):
return self.api.favorites_getPublicList(self.user["nsid"])
return self.api.favorites_getList(self.user["nsid"])
class FlickrAPI():
@ -232,10 +232,10 @@ class FlickrAPI():
self.session = extractor.session
self.subcategory = extractor.subcategory
def favorites_getPublicList(self, user_id):
"""Returns a list of favorite public photos for the given user."""
def favorites_getList(self, user_id):
"""Returns a list of the user's favorite photos."""
params = {"user_id": user_id}
return self._listing("favorites.getPublicList", params)
return self._listing("favorites.getList", params)
def galleries_getInfo(self, gallery_id):
"""Gets information about a gallery."""
@ -257,10 +257,10 @@ class FlickrAPI():
params = {"group_id": group_id}
return self._listing("groups.pools.getPhotos", params)
def people_getPublicPhotos(self, user_id):
"""Get a list of public photos for the given user."""
def people_getPhotos(self, user_id):
"""Return photos from the given user's photostream."""
params = {"user_id": user_id}
return self._listing("people.getPublicPhotos", params)
return self._listing("people.getPhotos", params)
def photos_getInfo(self, photo_id):
"""Get information about a photo."""