mirror of
https://github.com/apricote/Listory.git
synced 2026-02-06 17:57:03 +00:00
feat: import listens from spotify extended streaming history (#305)
This commit is contained in:
parent
23d7ea0995
commit
7140cb0679
50 changed files with 1051 additions and 215 deletions
|
|
@ -1,5 +1,6 @@
|
|||
export class FindTrackDto {
|
||||
spotify: {
|
||||
id: string;
|
||||
id?: string;
|
||||
uri?: string;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -175,9 +175,7 @@ export class MusicLibraryService {
|
|||
}
|
||||
|
||||
async findTrack(query: FindTrackDto): Promise<Track | undefined> {
|
||||
return this.trackRepository.findOneBy({
|
||||
spotify: { id: query.spotify.id },
|
||||
});
|
||||
return this.trackRepository.findOneBy(query);
|
||||
}
|
||||
|
||||
async findTracks(query: FindTrackDto[]): Promise<Track[]> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue