[mythtv-users] Can a frontend have a different mythvideo directory?

David Won daveshome at gmail.com
Mon Apr 16 15:07:19 UTC 2007


Found a way around this. Not for everybody but it works for me. Basically I
just made mythvideo ask for a password when you enter it. Here is what I
did.

Edit main.cpp in the mythvideo directory

Find this


        static int runVideoTree(VideoList *video_list)
        {
            return exec_screen(new VideoTree(gContext->GetMainWindow(),
                                             "videotree", "video-",
                                             "video tree", video_list),
                               "videolistings");
        }




Change to this

        static int runVideoTree(VideoList *video_list)
        {
            if (checkParentPassword())
                {
            return exec_screen(new VideoTree(gContext->GetMainWindow(),
                                             "videotree", "video-",
                                             "video tree", video_list),
                               "videolistings");
        }
        return 0;
        }


On 4/13/07, David Won <daveshome at gmail.com> wrote:
>
> The problem with this is that the movies will show up in mythvideo. Sure I
> can put parental controls on them but then the kids can't rescan the
> database to add their files.
>
> I almost have it now but need a way to make the default for videos when
> browsing is enabled to be higher than 1. Since I enabled browsing I can see
> the files and they are not added to the database. This is good because they
> do not show up downstairs.
>
> Now the problem is that I want it password protected upstairs. This is why
> I need the default to be higher than 1. Any ideas on where I can edit files
> or database entries to make the default when browsing video files that are
> not added to the database to have a parental level of 1 or higher
>
>
>
>
> On 4/12/07, Jon <jon at sd-6.org> wrote:
> >
> >
> > Assuming frontend A user and frontend B user have different uid's.  Just
> > put restricted videos in a sub directory and limit access to frontend B
> > user (master bedroom user).  The directory will be visible to frontend A
> >
> > user, but if it does not have rx rights on the directory, problem
> > solved.
> > _______________________________________________
> > mythtv-users mailing list
> > mythtv-users at mythtv.org
> > http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
> >
>
>
>
> --
> http://www.tabooki.com/xoops/html/
>



-- 
http://www.tabooki.com/xoops/html/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20070416/b49c57d5/attachment.htm 


More information about the mythtv-users mailing list