Skip to content

fix: restore Tidal session robustly + countryCode US fallback in plug… - #60

Closed
springjools wants to merge 1 commit into
TrevTV:mainfrom
springjools:merge-pr-55
Closed

springjools wants to merge 1 commit into
TrevTV:mainfrom
springjools:merge-pr-55

Conversation

@springjools

Copy link
Copy Markdown

…in TidalAPI

Root cause of 'error processing feed' / 0 results / indexer auto-disabled: CheckForStoredUser() set a valid ActiveUser then called GetSession(); any throw there hit the blanket catch and discarded the valid restored user -> Login() false -> GetRequestGenerator() null -> Lidarr core NRE. Now GetSession is best-effort and the restored tokens are kept.

Also mirror PR #54's countryCode->US fallback in the plugin's own TidalAPI.GetAPIUrl (PR #54 only patched TidalSharp/API.cs); the search path uses this builder and sent an empty countryCode before sessionInfo was populated.

…in TidalAPI

Root cause of 'error processing feed' / 0 results / indexer auto-disabled:
CheckForStoredUser() set a valid ActiveUser then called GetSession();
any throw there hit the blanket catch and discarded the valid restored
user -> Login() false -> GetRequestGenerator() null -> Lidarr core NRE.
Now GetSession is best-effort and the restored tokens are kept.

Also mirror PR TrevTV#54's countryCode->US fallback in the plugin's own
TidalAPI.GetAPIUrl (PR TrevTV#54 only patched TidalSharp/API.cs); the search
path uses this builder and sent an empty countryCode before sessionInfo
was populated.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@springjools

Copy link
Copy Markdown
Author

Sorry, wrong repo. Wanted to test this locally and merge into my fork

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants