[mythtv-users] Mytharchive Addition

Roy Lofthouse lofty69 at gmail.com
Fri Sep 15 19:15:07 UTC 2006

You wont be forced to put them in the theme dir, as it will default back to
the original dirs if the script cant find them in the theme...

The changes are:

def getIntroPath():
    """This is the folder where all intro files are located."""
    return os.path.join(sharepath, "mytharchive", "intro")


def getIntroPath(theme):
    """This is the folder where all intro files are located."""
    """Search theme path for intro first."""
    if os.path.exists(os.path.join(sharepath, "mytharchive", "themes",
theme, "intro")):
        return os.path.join(sharepath, "mytharchive", "themes", theme,

    if os.path.exists(os.path.join(sharepath, "mytharchive", "intro")):
        return os.path.join(sharepath, "mytharchive", "intro")

and calls to getIntroPath() become getIntroPath(themeName)

Just thinking it would be easier to provide themes for this if all the files
can be contained in a single folder...
On 15/09/06, Paul Harrison <mythtv at dsl.pipex.com> wrote:
> Roy Lofthouse wrote:
> > Paul,
> >
> > I've made some changes to mythburn.pl which allows for the image,
> > music and intro folders to also be contained within the theme itself.
> > I posteed the script to the list yesterday, but I think it's been
> > blocked due to size..  If you want these changes let me know and I'll
> > mail them to you.
> >
> > Roy
> >
> That depends on exactly what your changes do.
> You can already put the images and music files in the theme directory
> and the script will use them rather than the shared files if thats what
> you want. I'd rather not be forced  to have copies of those shared files
> in each theme directory though. The only files that don't work like this
> currently are the intro files which the script always looks for these in
> the shared intros folder.
> Paul H.
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20060915/0d6e287c/attachment-0001.htm 

More information about the mythtv-users mailing list