Channel code that is obsolete or needs to be updated

I thought I would start a post on this topic so we could have one place to list some of the channel code that is no longer needed or needs to be updated. I know it will help me if I am tweaking a channel to know any areas that are obsolete and need to be removed or places where I may need to use a newer version of the code.

 

Per some earlier discussions, I am aware that the following code is obsolete and no longer needed in the Start() function:

 

Plugin.AddViewGroup("List", viewMode="List", mediaType="items")

 

Also, it is just good practice to add @route to all of your functions, so the logs are cleaner.

 

As people run across some old code and are thinking about it, it would be nice if you could add a post here so we would all know any code that is obsolete or needs to be updated if any of us start tweaking an older plugin.


 

One I was just told a minute ago is Using Plugin.AddPrefixHandler(PREFIX,...) vs using @handler(PREFIX,...). And you should use the @handler(PREFIX,...) now.

I just encountered a info.plist that has two items I was not familiar with.  PlexMediaContainer of Flash and PlexClientCapabilities(has dictionary with a protocol of Webkit. When I was making those templates, those were settings I did not see. Are they used any longer?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.