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

Apollo.rip Uncaught exception: Traceback (most recent call last) #3110

Closed
Gandrushka opened this issue Apr 18, 2018 · 9 comments
Closed

Apollo.rip Uncaught exception: Traceback (most recent call last) #3110

Gandrushka opened this issue Apr 18, 2018 · 9 comments

Comments

@Gandrushka
Copy link

ERROR | Uncaught exception: Traceback (most recent call last):File "C:\headphones\headphones\logger.py", line 214, in new_runold_run(*args, **kwargs)File "C:\Program Files (x86)\Python 27\lib\threading.py", line 754, in runself.__target(*self.__args, **self.__kwargs)File "C:\headphones\headphones\searcher.py", line 227, in searchforalbumdo_sorted_search(album, new, losslessOnly)File "C:\headphones\headphones\searcher.py", line 302, in do_sorted_searchresults = searchTorrent(album, new, losslessOnly, albumlength)File "C:\headphones\headphones\searcher.py", line 1624, in searchTorrentreleasetype=album_type)['results'])UnboundLocalError: local variable 'album_type' referenced before assignment

What shall i do? I use last version 0.5.19, master branch

@YipYup
Copy link
Contributor

YipYup commented Apr 18, 2018

What is your musicbrainz data source set to? Do you use a locally hosted mirror, the musicbrainz hosted public instance, rembo10's hosted musicbrainz mirror, or another one entirely?

@Gandrushka
Copy link
Author

I use most common source - official musicbrainz.org

@YipYup
Copy link
Contributor

YipYup commented Apr 19, 2018

Do you know for what artist and album the search was performing at the time?

@Gandrushka
Copy link
Author

yes, artist is 1349

@AdeHub AdeHub changed the title Uncaught exception: Traceback (most recent call last) Apollo.rip Uncaught exception: Traceback (most recent call last) Apr 20, 2018
@AdeHub
Copy link
Collaborator

AdeHub commented Apr 20, 2018

Paging @doucheymcdoucherson

@nopoz
Copy link
Contributor

nopoz commented Jul 4, 2018

I'm not able to reproduce this. What's the album name?

@Gandrushka
Copy link
Author

@nopoz
Copy link
Contributor

nopoz commented Jul 4, 2018

It's because that's an album type "Other". Other album type isn't defined in searcher.py. It would probably work if you added this line:

            if album['Type'] == 'Other':
                album_type = [gazellerelease_type.UNKNOWN]

To the end of this block:

# Specify release types to filter by
if album['Type'] == 'Album':
album_type = [gazellerelease_type.ALBUM]
if album['Type'] == 'Soundtrack':
album_type = [gazellerelease_type.SOUNDTRACK]
if album['Type'] == 'EP':
album_type = [gazellerelease_type.EP]
# No musicbrainz match for this type
# if album['Type'] == 'Anthology':
# album_type = [gazellerelease_type.ANTHOLOGY]
if album['Type'] == 'Compilation':
album_type = [gazellerelease_type.COMPILATION]
if album['Type'] == 'DJ-mix':
album_type = [gazellerelease_type.DJ_MIX]
if album['Type'] == 'Single':
album_type = [gazellerelease_type.SINGLE]
if album['Type'] == 'Live':
album_type = [gazellerelease_type.LIVE_ALBUM]
if album['Type'] == 'Remix':
album_type = [gazellerelease_type.REMIX]
if album['Type'] == 'Bootleg':
album_type = [gazellerelease_type.BOOTLEG]
if album['Type'] == 'Interview':
album_type = [gazellerelease_type.INTERVIEW]
if album['Type'] == 'Mixtape/Street':
album_type = [gazellerelease_type.MIXTAPE]

However, this album doesn't exist on Apollo.rip anways so you're not going to get any results.

@AdeHub
Copy link
Collaborator

AdeHub commented Aug 18, 2018

In develop

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

4 participants