| | |
| | | |
| | | |
| | | def findalbumbyname(album): |
| | | album = album.strip() |
| | | alj = getalbumlist('testuser', 'testpass') |
| | | for item in alj["subsonic-response"]["albumList"]["album"]: |
| | | sablum = str(item['album']) |
| | | sablum = sablum.strip() |
| | | if sablum.lower() == album.lower(): |
| | | return True |
| | | # album = album.strip() |
| | | # alj = getalbumlist('testuser', 'testpass') |
| | | # for item in alj["subsonic-response"]["albumList"]["album"]: |
| | | # sablum = str(item['album']) |
| | | # sablum = sablum.strip() |
| | | # if sablum.lower() == album.lower(): |
| | | # return True |
| | | return False |
| | | |
| | | |