rechigo 293 Posted March 26, 2020 Share Posted March 26, 2020 ok i have a baseitem and i need to get the type of library it is in (movies, tv, music) there is a mediatype property but that gives me the type of media that it is (video, audio, etc) which isnt relevant because i need to discern between tv shows and movies thanks Link to comment Share on other sites More sharing options...
Solution Luke 37112 Posted March 26, 2020 Solution Share Posted March 26, 2020 item.GetType() 1 Link to comment Share on other sites More sharing options...
rechigo 293 Posted March 27, 2020 Author Share Posted March 27, 2020 @@Luke one more thing - where would I be able to find the ServerId? Link to comment Share on other sites More sharing options...
chef 3746 Posted March 27, 2020 Share Posted March 27, 2020 (edited) System/Info has ID in it Which might be the same as "IServerApplicationHost" systemId Edited March 27, 2020 by chef 1 Link to comment Share on other sites More sharing options...
rechigo 293 Posted March 27, 2020 Author Share Posted March 27, 2020 (edited) System/Info has ID in it Which might be the same as "IServerApplicationHost" systemId Got it, thanks. Had to use PublicSystemInfo which not only gives me the ID but a formatted wan address as well (less work for me) Edited March 27, 2020 by rechigo 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now