TrevTV / Lidarr.Plugin.Tidal

Lidarr plugin adding Tidal as an indexer and downloader
2 stars 0 forks source link

Error while downloading Tidal track #4

Closed d3mystified closed 2 hours ago

d3mystified commented 4 hours ago

To repro, add Elvis Presley, and mark a couple of albums/singles as monitored. Then hit "Search Monitored".

The same error is repeated to multiple tracks.

lidarr  | [Error] TidalProxy: Error while downloading Tidal track 144958625
lidarr  | [Error] TidalProxy: Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.
lidarr  |    at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
lidarr  |    at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
lidarr  |    at TidalSharp.API.Call(HttpMethod method, String path, Dictionary`2 formParameters, Dictionary`2 urlParameters, Dictionary`2 headers, String baseUrl, CancellationToken token)
lidarr  |    at TidalSharp.Downloader.GetTrackStreamData(String trackId, AudioQuality quality, CancellationToken token)
lidarr  |    at TidalSharp.Downloader.GetExtensionForTrack(String trackId, AudioQuality quality, CancellationToken token)
lidarr  |    at NzbDrone.Core.Download.Clients.Tidal.Queue.DownloadItem.DoTrackDownload(String track, TidalSettings settings, CancellationToken cancellation)
lidarr  |    at NzbDrone.Core.Download.Clients.Tidal.Queue.DownloadItem.<>c__DisplayClass51_1.<<DoDownload>b__0>d.MoveNext()
d3mystified commented 3 hours ago

More errors:

lidarr  | [Error] TidalProxy: Error while downloading Tidal track 186903095
lidarr  | [Error] TidalProxy: System.FormatException: String '' was not recognized as a valid DateTime.
lidarr  |    at NzbDrone.Core.Download.Clients.Tidal.MetadataUtilities.GetFilledTemplate(String template, String ext, JObject tidalPage, JObject tidalAlbum)
lidarr  |    at NzbDrone.Core.Download.Clients.Tidal.Queue.DownloadItem.DoTrackDownload(String track, TidalSettings settings, CancellationToken cancellation)
lidarr  |    at NzbDrone.Core.Download.Clients.Tidal.Queue.DownloadItem.<>c__DisplayClass51_1.<<DoDownload>b__0>d.MoveNext()
lidarr  | [Error] TidalProxy: Error while downloading Tidal track 186903094
lidarr  | [Error] TidalProxy: System.FormatException: String '' was not recognized as a valid DateTime.
lidarr  |    at NzbDrone.Core.Download.Clients.Tidal.MetadataUtilities.GetFilledTemplate(String template, String ext, JObject tidalPage, JObject tidalAlbum)
lidarr  |    at NzbDrone.Core.Download.Clients.Tidal.Queue.DownloadItem.DoTrackDownload(String track, TidalSettings settings, CancellationToken cancellation)
lidarr  |    at NzbDrone.Core.Download.Clients.Tidal.Queue.DownloadItem.<>c__DisplayClass51_1.<<DoDownload>b__0>d.MoveNext()
TrevTV commented 2 hours ago

I was able to fix the second issue, though the first one is being a lot more of a pain. I can't quite figure out what's causing it.

TrevTV commented 2 hours ago

Fixed them both, will release soon.