mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 17:35:16 +00:00
Daniel Mason
2f8aa2e502
- Only allow ItemType:Audio from Jellyfin - Fix NavBar for Mobile (Ugly hack but.. TO REWORK) - Fixed registration page issues - Add functionality to pull recent scrobbles to Dashboard - Add MX record lookup validation for emails - Add username validation for a-Z 0-9 _ and . - Dashboard shows basic table of last 500 scrobbles.
14 lines
879 B
Markdown
14 lines
879 B
Markdown
## Removing bad data
|
|
|
|
This is by no means recommended.. But during testing I somehow scrobbled movies.
|
|
|
|
SET FOREIGN_KEY_CHECKS=0;
|
|
DELETE FROM artists WHERE `name` = "%!s(<nil>)";
|
|
DELETE FROM albums WHERE `name` = "%!s(<nil>)";
|
|
DELETE album_artist FROM album_artist LEFT JOIN artists ON artists.uuid = album_artist.artist WHERE artists.uuid is null;
|
|
DELETE album_artist FROM album_artist LEFT JOIN albums ON albums.uuid = album_artist.album WHERE albums.uuid is null;
|
|
DELETE track_artist FROM track_artist LEFT JOIN artists ON artists.uuid = track_artist.artist WHERE artists.uuid is null;
|
|
DELETE tracks FROM tracks LEFT JOIN track_artist ON track_artist.track = tracks.uuid WHERE track_artist.track IS NULL;
|
|
DELETE scrobbles FROM scrobbles LEFT JOIN tracks ON tracks.uuid = scrobbles.track WHERE tracks.uuid is null;
|
|
SET FOREIGN_KEY_CHECKS=1;
|