Some error paths out of this function are not setting the podcast status
to 'error'. Move the deferred error checking earlier to ensure the
status is set.
Signed-off-by: Eric B Munson <eric@munsonfam.org>
I came across this issue when I started to use a custom RSS
generator that works fine for e.g. the Apple Podcasts app
but results in a crash in gonic.
I found these nil pointer dereferences by looking at the stacktraces
only.
No time was spent looking for additional locations were this might need to
be fixed.
The custom generator if that helps
https://gist.github.com/diepfote/59aaf5eb8ea3e2d7bcdd97b8efd2a472
There were a number of error codes being returned that did not match the
the code given by the spec. Primarily this was the use of error code 10
(missing input parameter) when 70 (data not found) was the more
appropriate return. Though several uses of 10 are actually 0 (internal
server or unspecified error).
Signed-off-by: Eric B Munson <eric@munsonfam.org>
* [ PR Year @ Track-level ] This resolves issue #549
* Update db/migrations.go
Co-authored-by: Senan Kelly <senan@senan.xyz>
* [ PR #661 ] Fixes proposed by Sentriz (file indentation, simpler call to functions)
* [ PR #661 ] Fix File indentation for construct_by_folder
* [ PR #661 ] Set known tracks year field to their parent (album) year value ; until next deep scan.
* [ PR #661 ] Fix database field names in sql query
* Update db/migrations.go
Co-authored-by: Senan Kelly <senan@senan.xyz>
* Update db/migrations.go
Co-authored-by: Senan Kelly <senan@senan.xyz>
---------
Co-authored-by: Senan Kelly <senan@senan.xyz>
listenbrainz's server can't handle the larger TLS ClientHello from
Go's post-quantum key exchange (Kyber). Explicitly set classic curve
preferences to avoid "connection reset by peer" errors.
https://github.com/golang/go/issues/70139
last.fm intermittently omits the og:image meta tag from artist pages.
previously this would overwrite a good cached image URL with empty, leaving artists without
artwork until the next cache cycle
Some error paths out of this function are not setting the podcast status
to 'error'. Move the deferred error checking earlier to ensure the
status is set.
Signed-off-by: Eric B Munson <eric@munsonfam.org>
I came across this issue when I started to use a custom RSS
generator that works fine for e.g. the Apple Podcasts app
but results in a crash in gonic.
I found these nil pointer dereferences by looking at the stacktraces
only.
No time was spent looking for additional locations were this might need to
be fixed.
The custom generator if that helps
https://gist.github.com/diepfote/59aaf5eb8ea3e2d7bcdd97b8efd2a472
There were a number of error codes being returned that did not match the
the code given by the spec. Primarily this was the use of error code 10
(missing input parameter) when 70 (data not found) was the more
appropriate return. Though several uses of 10 are actually 0 (internal
server or unspecified error).
Signed-off-by: Eric B Munson <eric@munsonfam.org>
* [ PR Year @ Track-level ] This resolves issue #549
* Update db/migrations.go
Co-authored-by: Senan Kelly <senan@senan.xyz>
* [ PR #661 ] Fixes proposed by Sentriz (file indentation, simpler call to functions)
* [ PR #661 ] Fix File indentation for construct_by_folder
* [ PR #661 ] Set known tracks year field to their parent (album) year value ; until next deep scan.
* [ PR #661 ] Fix database field names in sql query
* Update db/migrations.go
Co-authored-by: Senan Kelly <senan@senan.xyz>
* Update db/migrations.go
Co-authored-by: Senan Kelly <senan@senan.xyz>
---------
Co-authored-by: Senan Kelly <senan@senan.xyz>
listenbrainz's server can't handle the larger TLS ClientHello from
Go's post-quantum key exchange (Kyber). Explicitly set classic curve
preferences to avoid "connection reset by peer" errors.
https://github.com/golang/go/issues/70139
* getSimilarSongs for artists and albums
* Use preloaded album tracks
* Return after no similar tracks have been found for album
* Move controller to params
* Move getSimilarSongsFrom functions
* Fix getSimilarSongs returning similarSongs2 & refactor
---------
Co-authored-by: snoutie <snoutie@achtarmig.org>