Don't use "print"

Just a quick note:



It took me quite some time to find an error until I noticed, that I accidently used the print command in one place instead of Log.Add(). PMS doesn’t like that at all.

Yeah, all these quirks will be more clear once we’ve finished the documentation. PMS communicates with the plug-ins over pipes, so “print” is actually outputting data back to your plug-in. This is required to make plug-ins language independent - you can implement a PMS plug-in in any language you want. As long as it returns valid HTTP headers followed by either directory XML or data, it will work. We’d like to look in to porting the framework to other languages, but we want to make the Python implementation as solid as possible first.

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