Viperinius / jellyfin-plugin-spotify-import

Import playlists from Spotify in Jellyfin
GNU General Public License v3.0
35 stars 2 forks source link

Error when trying to import #2

Closed tyzingit closed 1 year ago

tyzingit commented 1 year ago

Thanks for this plugin! Sorry if I'm not providing this issue correctly, first issue I've ever done on here. When I'm trying to do a manual import it fails with the following error:

[2023-05-05 22:01:42.902 -04:00] [INF] [49] Emby.Server.Implementations.ScheduledTasks.TaskManager: Executing "Import Spotify playlists" [2023-05-05 22:01:42.931 -04:00] [INF] [49] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyPlaylistProvider: Starting to query 45 playlists from "Spotify" [2023-05-05 22:01:42.934 -04:00] [INF] [49] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/5RaVopYCKGV35v9CtPTZku ["additional_types=track,episode"] null [2023-05-05 22:01:43.804 -04:00] [INF] [47] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"This" [2023-05-05 22:01:43.813 -04:00] [INF] [47] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/17LkxNsWjzjdqyEQggFMom ["additional_types=track,episode"] null [2023-05-05 22:01:44.885 -04:00] [INF] [47] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"\", " [2023-05-05 22:01:44.952 -04:00] [INF] [47] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/37i9dQZF1E4xrfzBBWuj3M ["additional_types=track,episode"] null [2023-05-05 22:01:45.547 -04:00] [INF] [49] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"With" [2023-05-05 22:01:45.601 -04:00] [INF] [49] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/37i9dQZF1DX6lOApl1SnDm ["additional_types=track,episode"] null [2023-05-05 22:01:46.107 -04:00] [INF] [48] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"\", " [2023-05-05 22:01:46.144 -04:00] [INF] [48] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/37i9dQZF1DX24Kh15JFQJ0 ["additional_types=track,episode"] null [2023-05-05 22:01:47.392 -04:00] [INF] [44] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"The " [2023-05-05 22:01:47.451 -04:00] [INF] [44] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" https://api.spotify.com/v1/playlists/37i9dQZF1DX24Kh15JFQJ0/tracks?offset=100&limit=100&additional_types=track%2Cepisode [""] null [2023-05-05 22:01:47.905 -04:00] [INF] [50] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"href\" : \"https://api.spotify.com/v1/playlists/" [2023-05-05 22:01:47.933 -04:00] [INF] [50] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/37i9dQZF1DWWH0izG4erma ["additional_types=track,episode"] null [2023-05-05 22:01:49.015 -04:00] [INF] [47] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"Coun" [2023-05-05 22:01:49.077 -04:00] [INF] [47] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/37i9dQZF1E371RstrE3yly ["additional_types=track,episode"] null [2023-05-05 22:01:49.562 -04:00] [INF] [46] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"Kidz" [2023-05-05 22:01:49.593 -04:00] [INF] [46] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/37i9dQZF1EQqZgBURAEzWH ["additional_types=track,episode"] null [2023-05-05 22:01:50.208 -04:00] [INF] [28] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"<a h" [2023-05-05 22:01:50.232 -04:00] [INF] [28] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/37i9dQZF1EIfLh3vzsUwSp ["additional_types=track,episode"] null [2023-05-05 22:01:50.729 -04:00] [INF] [44] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"Upbe" [2023-05-05 22:01:50.805 -04:00] [INF] [44] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/37i9dQZF1DWTQebjaPYhvs ["additional_types=track,episode"] null [2023-05-05 22:01:51.894 -04:00] [INF] [47] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"The " [2023-05-05 22:01:51.946 -04:00] [INF] [47] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" https://api.spotify.com/v1/playlists/37i9dQZF1DWTQebjaPYhvs/tracks?offset=100&limit=100&additional_types=track%2Cepisode [""] null [2023-05-05 22:01:52.895 -04:00] [INF] [44] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"href\" : \"https://api.spotify.com/v1/playlists/" [2023-05-05 22:01:52.947 -04:00] [INF] [44] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/37i9dQZF1DWTkxQvqMy4WW ["additional_types=track,episode"] null [2023-05-05 22:01:53.704 -04:00] [INF] [28] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"Coun" [2023-05-05 22:01:53.749 -04:00] [INF] [28] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/37i9dQZF1DWXi7h4mmmkzD ["additional_types=track,episode"] null [2023-05-05 22:01:54.761 -04:00] [INF] [44] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"Nigh" [2023-05-05 22:01:54.815 -04:00] [INF] [44] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/37i9dQZF1DX8WMG8VPSOJC ["additional_types=track,episode"] null [2023-05-05 22:01:55.951 -04:00] [INF] [44] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"Noth" [2023-05-05 22:01:55.991 -04:00] [INF] [44] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/37i9dQZF1EQmPV0vrce2QZ ["additional_types=track,episode"] null [2023-05-05 22:01:56.422 -04:00] [INF] [49] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"<a h" [2023-05-05 22:01:56.440 -04:00] [INF] [49] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/1bJQE1wWzKigCazmql9GOS ["additional_types=track,episode"] null [2023-05-05 22:01:57.157 -04:00] [INF] [44] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"\", " [2023-05-05 22:01:57.181 -04:00] [INF] [44] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/7owszSrCw7tXCjoVHxc8B7 ["additional_types=track,episode"] null [2023-05-05 22:01:57.646 -04:00] [INF] [49] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"\", " [2023-05-05 22:01:57.675 -04:00] [INF] [49] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/6U3lDn1EPqlFEZrIOzoxVf ["additional_types=track,episode"] null [2023-05-05 22:01:58.663 -04:00] [INF] [34] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"The " [2023-05-05 22:01:58.710 -04:00] [INF] [34] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/37i9dQZF1DWVn8zvR5ROMB ["additional_types=track,episode"] null [2023-05-05 22:01:59.279 -04:00] [INF] [34] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"All " [2023-05-05 22:01:59.316 -04:00] [INF] [34] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/37i9dQZF1DXaJXCbmtHVHV ["additional_types=track,episode"] null [2023-05-05 22:02:00.423 -04:00] [INF] [34] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"Top " [2023-05-05 22:02:00.507 -04:00] [INF] [34] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/37i9dQZF1DX7hnECllVaUq ["additional_types=track,episode"] null [2023-05-05 22:02:01.656 -04:00] [INF] [45] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"The " [2023-05-05 22:02:01.706 -04:00] [INF] [45] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/37i9dQZF1DX13kFuGnInkY ["additional_types=track,episode"] null [2023-05-05 22:02:02.202 -04:00] [INF] [49] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"Cong" [2023-05-05 22:02:02.222 -04:00] [INF] [49] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/37i9dQZF1DWZBCPUIUs2iR ["additional_types=track,episode"] null [2023-05-05 22:02:03.193 -04:00] [INF] [34] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"A co" [2023-05-05 22:02:03.236 -04:00] [INF] [34] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/37i9dQZF1DX5iKSDtVcf7Q ["additional_types=track,episode"] null [2023-05-05 22:02:04.181 -04:00] [INF] [34] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"Musi" [2023-05-05 22:02:04.238 -04:00] [INF] [34] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/79beQYmpATfGXz9Bns3mT9 ["additional_types=track,episode"] null [2023-05-05 22:02:04.618 -04:00] [INF] [45] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"\", " [2023-05-05 22:02:04.636 -04:00] [INF] [45] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/37i9dQZF1DX2SzDYPXnP1a ["additional_types=track,episode"] null [2023-05-05 22:02:05.130 -04:00] [INF] [49] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"Coun" [2023-05-05 22:02:05.152 -04:00] [INF] [49] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/37i9dQZF1DWW7RgkOJG32Y ["additional_types=track,episode"] null [2023-05-05 22:02:05.623 -04:00] [INF] [43] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"Top " [2023-05-05 22:02:05.652 -04:00] [INF] [43] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/5sC7iKLcQ5cad1gLHulhSy ["additional_types=track,episode"] null [2023-05-05 22:02:06.105 -04:00] [INF] [48] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"\", " [2023-05-05 22:02:06.136 -04:00] [INF] [48] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/37i9dQZF1DX7aUUBCKwo4Y ["additional_types=track,episode"] null [2023-05-05 22:02:06.654 -04:00] [INF] [43] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"Coun" [2023-05-05 22:02:06.690 -04:00] [INF] [43] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/37i9dQZF1DWYyZ38lseF2K ["additional_types=track,episode"] null [2023-05-05 22:02:07.526 -04:00] [INF] [48] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"Our " [2023-05-05 22:02:07.571 -04:00] [INF] [48] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/37i9dQZF1DX8S0uQvJ4gaa ["additional_types=track,episode"] null [2023-05-05 22:02:08.536 -04:00] [INF] [43] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"New " [2023-05-05 22:02:08.619 -04:00] [INF] [43] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/37i9dQZF1DZ06evO1TkYCI ["additional_types=track,episode"] null [2023-05-05 22:02:09.210 -04:00] [INF] [47] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"This" [2023-05-05 22:02:09.240 -04:00] [INF] [47] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/37i9dQZF1E35JmMSzsiIaX ["additional_types=track,episode"] null [2023-05-05 22:02:09.651 -04:00] [INF] [48] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"Ian " [2023-05-05 22:02:09.677 -04:00] [INF] [48] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: "GET" playlists/2X0ZTyy8fPDkL5BzxWfECm ["additional_types=track,episode"] null [2023-05-05 22:02:09.857 -04:00] [INF] [49] Viperinius.Plugin.SpotifyImport.Spotify.SpotifyLogger: --> OK "application/json" "{ \"collaborative\" : false, \"description\" : \"vibe" [2023-05-05 22:02:09.859 -04:00] [ERR] [49] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error System.NullReferenceException: Object reference not set to an instance of an object. at Viperinius.Plugin.SpotifyImport.Spotify.SpotifyPlaylistProvider.GetTrackInfo(PlaylistTrack1 track) at Viperinius.Plugin.SpotifyImport.Spotify.SpotifyPlaylistProvider.GetPlaylist(String playlistId, Nullable1 cancellationToken) at Viperinius.Plugin.SpotifyImport.Spotify.SpotifyPlaylistProvider.GetPlaylist(String playlistId, Nullable1 cancellationToken) at Viperinius.Plugin.SpotifyImport.GenericPlaylistProvider.PopulatePlaylists(List1 playlistIds, Nullable1 cancellationToken) at Viperinius.Plugin.SpotifyImport.Tasks.SpotifyImportTask.ExecuteAsync(IProgress1 progress, CancellationToken cancellationToken) at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options) [2023-05-05 22:02:09.860 -04:00] [INF] [49] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Import Spotify playlists" Failed after 0 minute(s) and 26 seconds [2023-05-05 22:02:09.861 -04:00] [INF] [49] Emby.Server.Implementations.ScheduledTasks.TaskManager: ExecuteQueuedTasks

Viperinius commented 1 year ago

Will take a look at the failing playlist, thanks for letting me know!

Viperinius commented 1 year ago

I pushed a new version of the plugin to address this problem (v1.1.1.0).

Let me know if you encounter any other problems.