Skip to content

Commit

Permalink
Merge pull request #126 from charky/master
Browse files Browse the repository at this point in the history
Fix: Issue #59 Play Folder @charky
  • Loading branch information
jez500 authored Aug 7, 2016
2 parents 420075d + 1806261 commit f0d45a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/js/views/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,11 @@ app.FileView = Backbone.View.extend({
if(file.type == "directory"){
ret.key = file.type;
}

// Fix: Issue #59 Play Folder @Charky
if(file.filetype && file.filetype == "directory"){
ret.key = file.filetype;
}

return ret;
},
Expand Down

1 comment on commit f0d45a6

@b3rnhard
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although this works well on unknown types this now doesn't work anymore for folders marked as "artist" or "album": in that case filetype is also "directory" but file.type is "artist" / "album". The if clause still executes. Somehow telling kodi to add this directory which is known to kodi as album does not go well with its api.

Please sign in to comment.