{"action":"created","issue":{"url":"https://api.github.com/repos/xbmc/xbmc/issues/8333","labels_url":"https://api.github.com/repos/xbmc/xbmc/issues/8333/labels{/name}","comments_url":"https://api.github.com/repos/xbmc/xbmc/issues/8333/comments","events_url":"https://api.github.com/repos/xbmc/xbmc/issues/8333/events","html_url":"https://github.com/xbmc/xbmc/pull/8333","id":114478599,"number":8333,"title":"Add Audio and Subtitle Track Count to Smart Playlist selections","user":{"login":"TonyPh12345","id":15570946,"avatar_url":"https://avatars.githubusercontent.com/u/15570946?v=3","gravatar_id":"","url":"https://api.github.com/users/TonyPh12345","html_url":"https://github.com/TonyPh12345","followers_url":"https://api.github.com/users/TonyPh12345/followers","following_url":"https://api.github.com/users/TonyPh12345/following{/other_user}","gists_url":"https://api.github.com/users/TonyPh12345/gists{/gist_id}","starred_url":"https://api.github.com/users/TonyPh12345/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TonyPh12345/subscriptions","organizations_url":"https://api.github.com/users/TonyPh12345/orgs","repos_url":"https://api.github.com/users/TonyPh12345/repos","events_url":"https://api.github.com/users/TonyPh12345/events{/privacy}","received_events_url":"https://api.github.com/users/TonyPh12345/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/xbmc/xbmc/labels/Database","name":"Database","color":"009800"},{"url":"https://api.github.com/repos/xbmc/xbmc/labels/Feature","name":"Feature","color":"0b02e1"},{"url":"https://api.github.com/repos/xbmc/xbmc/labels/K*******","name":"K*******","color":"fbca04"},{"url":"https://api.github.com/repos/xbmc/xbmc/labels/Video","name":"Video","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-11-01T16:21:14Z","updated_at":"2015-11-11T03:16:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/xbmc/xbmc/pulls/8333","html_url":"https://github.com/xbmc/xbmc/pull/8333","diff_url":"https://github.com/xbmc/xbmc/pull/8333.diff","patch_url":"https://github.com/xbmc/xbmc/pull/8333.patch"},"body":"This adds a new Smart Playlist Rule field named \"audiocount\" which can be used to locate video files that have a specific number of audio tracks.\r\n\r\nI'm a big fan of commentary tracks, and using the existing GUI to locate movies or TV show episodes that have commentaries is almost impossible -- one must be using a skin that supports that info and displays it in navigation.  And even then, one must scroll through the library to locate the files.\r\n\r\nThis addition makes it simple -- just make a playlist for Movies or Episodes that contain more than 1 audio tracks.   Such as:\r\n\r\n```\r\n<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\" ?>\r\n<smartplaylist type=\"episodes\">\r\n    <name>Test</name>\r\n    <match>all</match>\r\n    <rule field=\"audiocount\" operator=\"greaterthan\">\r\n        <value>1</value>\r\n    </rule>\r\n    <order direction=\"ascending\">tvshowtitle</order>\r\n</smartplaylist>\r\n```"},"comment":{"url":"https://api.github.com/repos/xbmc/xbmc/issues/comments/155649266","html_url":"https://github.com/xbmc/xbmc/pull/8333#issuecomment-155649266","issue_url":"https://api.github.com/repos/xbmc/xbmc/issues/8333","id":155649266,"user":{"login":"TonyPh12345","id":15570946,"avatar_url":"https://avatars.githubusercontent.com/u/15570946?v=3","gravatar_id":"","url":"https://api.github.com/users/TonyPh12345","html_url":"https://github.com/TonyPh12345","followers_url":"https://api.github.com/users/TonyPh12345/followers","following_url":"https://api.github.com/users/TonyPh12345/following{/other_user}","gists_url":"https://api.github.com/users/TonyPh12345/gists{/gist_id}","starred_url":"https://api.github.com/users/TonyPh12345/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TonyPh12345/subscriptions","organizations_url":"https://api.github.com/users/TonyPh12345/orgs","repos_url":"https://api.github.com/users/TonyPh12345/repos","events_url":"https://api.github.com/users/TonyPh12345/events{/privacy}","received_events_url":"https://api.github.com/users/TonyPh12345/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T03:16:44Z","updated_at":"2015-11-11T03:16:44Z","body":"Just noticed that some playlist selection criteria that have existed \"forever\" such as audio language or subtitle language are similarly limited even though the Wiki doesn't mention it so it seems a precedent is already set...\r\n\r\nSo, I'm hoping this can be merged.  I've been compiling this same change into Isengard on Pi and Linux and am quite enjoying it."}}