Videoitem Does Not Work For Local Files ?

Hi,



The following code didn’t work



<br />
dir.Append(<br />
            VideoItem(<br />
                        key = '/Users/me/1.avi', <br />
                        title = 'my video' <br />
            )<br />
}




It works when it is an url :


<br />
dir.Append(<br />
            VideoItem(<br />
                        key = 'http://blip.tv/file/get/Demnow-DemocracyNowFridayMarch272009844.mp4',<br />
                        title = 'my video' <br />
            )<br />
}



Am I missing something ?

Thx !

up !

Accessing the local filesystem from plug-ins isn’t supported at the moment. Upcoming versions of the framework will actively prevent this practice. We’re looking in to ways of giving verified plug-ins elevated privileges, but I’m not sure when we’ll be making this available.

Thanks for your reply Jam,




I understand it is a security/privacy issue but I don't see how this can be harmful ? The plugin can access the files. It just can't play them !

OncleBen31, advised me to run a http server that streams the contents of the hard drive. It means that it is actually possible to play these files but it is just harder :(

A solution could be a check box in the configuration of the plugin allowing/refusing the access to local disks ? e.g. " Allow this plugin to access local files"

Python has a "we're all adults here" mentality. It allows you to do things at your own risk. And this is what people expect from python-based programs.

This may be what developers expect from Python-based programs, but end users of a media center application generally don’t want to worry about the specifics of how it’s implemented, and definitely don’t want it to contain potential security holes. Yes, as you say, plugins can currently access the local file system. We will be preventing this in future updates for the security reasons I’ve already stated. We are all adults here, and some adults can behave maliciously :slight_smile:

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