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

Wont scrobble because not music #13

Closed
durandom opened this issue Nov 2, 2010 · 3 comments
Closed

Wont scrobble because not music #13

durandom opened this issue Nov 2, 2010 · 3 comments

Comments

@durandom
Copy link

durandom commented Nov 2, 2010

I am on a german locale and Audiscrobbler complains about files not being music.
This is because you just check against the string suffix of itunes.currentTrack.kind, which happens to be localized.

For a german setup and mp3 files its "MPEG Audiodatei"
I dont know if you can get the english version of currentTrack.kind ?

@durandom
Copy link
Author

durandom commented Nov 2, 2010

diff --git a/ITunesListener.m b/ITunesListener.m
index a9ea267..7b446f0 100644
--- a/ITunesListener.m
+++ b/ITunesListener.m
@@ -128,7 +128,7 @@ static NSData* itunes_current_track_artwork_as_data(ITunesApplication* itunes)
             [delegate iTunesWontScrobble:newtrack because:@"a podcast"];
             goto stop;
         }
-        if (![itunes.currentTrack.kind hasSuffix:@"audio file"]) {
+        if (![itunes.currentTrack.kind hasSuffix:@"Audiodatei"]) {
             [delegate iTunesWontScrobble:newtrack because:@"not music"];
             goto stop;
         }

@MikeMcQuaid
Copy link
Contributor

Is this still a problem with 0.9.13?

@MikeMcQuaid
Copy link
Contributor

Closing due to no response.

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