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

jsonrpc: fix Files.GetDirectory returning wrong type "song" instead of "unknown" #4217

Merged
merged 1 commit into from
Feb 17, 2014

Conversation

Montellese
Copy link
Member

This fixes the case where JSON-RPC's Files.GetDirectory would return items with the type "song" even though they aren't songs e.g. when retrieving a list of album years using the "musicdb://years/" path. Years obviously aren't songs so the returned type should be unknown.

@jmarshallnz
Copy link
Contributor

I wonder if this should be if (!item->m_bIsFolder) ?

@MartijnKaijser MartijnKaijser added this to the Pending for inclusion milestone Feb 17, 2014
@Tolriq
Copy link
Contributor

Tolriq commented Feb 17, 2014

Yes the jmarshallnz remark is what I use as hack in Yatse to cover all known cases.

@Montellese
Copy link
Member Author

I agree, this sounds like a better approach. Will do the necessary changes ASAP.

@Montellese
Copy link
Member Author

Updated as discussed.

@t-nelson
Copy link
Contributor

@jmarshallnz's button

jmarshallnz added a commit that referenced this pull request Feb 17, 2014
jsonrpc: fix Files.GetDirectory returning wrong type "song" instead of "unknown"
@jmarshallnz jmarshallnz merged commit d52bf4c into xbmc:master Feb 17, 2014
@Montellese Montellese deleted the jsonrpc_music_type_unknown branch February 17, 2014 19:57
@MartijnKaijser MartijnKaijser modified the milestones: Gotham13.0-alpha12 January 2014, Pending for inclusion Feb 21, 2014
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

Successfully merging this pull request may close these issues.

5 participants