Trying to use objects mentioned in the title gives me the following error in the log file:
AttributeError: 'NoneType' object has no attribute 'sandbox'
I can, however, use DirectoryObject with no issues. I have followed along with several examples in other bundles as well as code snippets online but no matter what I do I get that same error. Is there something I'm missing?
Do you have an URL Service for the urls that you're attempting to generate EpisodeObjects or VideoClipObjects for? That sort of error is common when (a.) there is no URL Service and you pass the "url=..." argument to the Object, or (b.) there's nothing being returned from the URL Service, possibly due to an error.
If you do have an URL Service, or are making use of a pre-existing one, check the system log (com.plexapp.system.log) for more error detail.
An excerpt of the code generating the error and a larger snippet from the log may help in further diagnosis.
I do have a URL Service but I just noticed there are other errors in the logs:
2014-07-02 15:09:25,177 (117c) : DEBUG (services:602) - No service found for URL 'http://videobam.com/widget/chVMA/custom/530'
2014-07-02 15:09:25,177 (117c) : DEBUG (services:617) - No matching services found for 'http://videobam.com/widget/chVMA/custom/530'
2014-07-02 15:09:25,178 (117c) : DEBUG (services:602) - No service found for URL 'http://videobam.com/widget/chVMA/custom/530'
Ah, restarting PMS did the trick. My URL Service still does not work, but it is at least finding the correct service. In that videobam example above, should I be passing the MP4 file to the service (that I can get by digging down into the player embedded on that page) or should I get the MP4 file within the service which might be hard as they can come from many different sources. Currently I am trying to get it in the service but it's hard to get since the Log functions don't seem to work there.
Generally, the URL Service is responsible for taking a web address and turning it into a playable video file (as well as returning as much metadata as possible). So, passing the url for an MP4 file to any url service is not the intended use case and really could be considered counter-productive.
Regarding the log function from the URL Service, the log statements should show up in either the plugin log or the system log.