Fix auth sanity check

This commit is contained in:
sigma67 2021-01-16 00:08:46 +01:00
commit 8f4dfd19ee
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0

View file

@ -117,7 +117,7 @@ class YTMusic(BrowsingMixin, WatchMixin, LibraryMixin, PlaylistsMixin, UploadsMi
return response_text return response_text
def _check_auth(self): def _check_auth(self):
if self.auth == "": if not self.auth:
raise Exception("Please provide authentication before using this function") raise Exception("Please provide authentication before using this function")
@classmethod @classmethod