def build_entry_list(self, user='default', titles=None, query=None,
                         force_photos=False, photo_title=None):
        """Build a list of entries of either photos or albums.

        If no title is specified, entries will be of photos matching the query.
        If no query is specified, entries will be of albums matching the title.
        If both title and query are specified, entries will be of photos matching
          the query that are also in albums matching the title.

        Keyword arguments:
          user: Username of the owner of the albums / photos (Default 'default').
          titles: list Titles of the albums (Default None).
          query: Query for photos, url-encoded (Default None).
          force_photos: If true, returns photo entries, even if album entries would
                        typically be returned. The entries will be for all photos
                        in each album.
          photo_title: Title of the photo(s) to return. Default None for all photos.

        Returns:
          A list of entries, as specified above.

        """
        album_entry = []
        if titles[0] or not(titles[0] or query):
            album_entry = self.GetAlbum(user=user, titles=titles)
        if photo_title or query or force_photos:
            uri = '/data/feed/api/user/' + user
            if query and not album_entry:
                entries = self.GetEntries(
                    uri + '?kind=photo&q=' + query, photo_title)
            else:
                entries = []
                uri += '/albumid/%s?kind=photo'
                if query:
                    uri += '&q=' + query
                for album in album_entry:
                    photo_entries = self.GetEntries(album.gphoto_id.text % uri,
                                                    photo_title)
                    entries.extend(photo_entries)
        else:
            entries = album_entry

        return entries
dataset/ETHPy150Open vinitkumar/googlecl/src/googlecl/picasa/service.py/PhotosServiceCL.build_entry_list/swapped operands of `%`