Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Is login_oauth_simple still relevant? #284

Open
GioF71 opened this issue Sep 21, 2024 · 4 comments
Open

[Question] Is login_oauth_simple still relevant? #284

GioF71 opened this issue Sep 21, 2024 · 4 comments

Comments

@GioF71
Copy link
Contributor

GioF71 commented Sep 21, 2024

Hello, in an effort of cleanup up the code of my tidal plugin for upmpdcli and remove unnecessary old stuff, I was wondering whether the login_oauth_simple method is still relevant. It seems to me that it eventually calls the login_session_file method, but I am not sure if something is different from calling that method just after creating an instance of the Session class.

OTOH, is there still a way of forcing streaming from FLAC files and avoiding MPEG-DASH, even if this means to lose access to hires content? That would still leave the change to select players that are not able to natively process MPEG-DASH.
If that is not possible, I'd like to clarify that in the documentation of the plugin.

Thank you for any help!

@tehkillerbee
Copy link
Collaborator

tehkillerbee commented Sep 23, 2024

whether the login_oauth_simple method is still relevant ... It seems to me that it eventually calls the login_session_file

Well currently, yes. login_session_file() calls login_oauth_simple() (or login_pkce().) so it is definitely used. You have multiple ways to login, but I suggest using the login_session_file() in most cases.

I do think we should cleanup the methods related to login, perhaps combine them and make some of them protected member classes to avoid calling them directly.

OTOH, is there still a way of forcing streaming from FLAC files and avoiding MPEG-DASH

Yes, by setting the quality to high_lossless, you can still use the get_url() method.

@GioF71
Copy link
Contributor Author

GioF71 commented Oct 8, 2024

Hello, getting back to this, I have to tell you that I don't use the login_oauth_simple() anymore in my code. Would you accept a pull request removing this method and cleaning up the code if needed?

Edit: sorry I inadvertently closed the issue

@GioF71 GioF71 closed this as completed Oct 8, 2024
@GioF71 GioF71 reopened this Oct 8, 2024
@tehkillerbee
Copy link
Collaborator

Well it is used in python-tidal, so we cannot remove the method (yet). See my previous answer.

... login_session_file() calls login_oauth_simple() (or login_pkce().) so it is definitely used. You have multiple ways to login, but I suggest using the login_session_file() in most cases.

@GioF71
Copy link
Contributor Author

GioF71 commented Oct 8, 2024

Well it is used in python-tidal, so we cannot remove the method (yet). See my previous answer.

... login_session_file() calls login_oauth_simple() (or login_pkce().) so it is definitely used. You have multiple ways to login, but I suggest using the login_session_file() in most cases.

yes, sure you are right, maybe we can make it private as you were saying?

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

No branches or pull requests

2 participants