예제 #1
0
 def get_album(self, album_id: str) -> DatabaseMedia:
     query = "SELECT {0} FROM Albums WHERE RemoteId = ?;".format(
         GoogleAlbumsRow.columns
     )
     self.cur.execute(query, (album_id,))
     res = self.cur.fetchone()
     return GoogleAlbumsRow(res).to_media()
예제 #2
0
 def test_google_albums_media(self):
     m = GoogleAlbumMedia("")
     g = GoogleAlbumsRow(None)
     g.from_media(m)