#!/usr/bin/env python




##################################################
## DEPENDENCIES
import sys
import os
import os.path
try:
    import builtins as builtin
except ImportError:
    import __builtin__ as builtin
from os.path import getmtime, exists
import time
import types
from Cheetah.Version import MinCompatibleVersion as RequiredCheetahVersion
from Cheetah.Version import MinCompatibleVersionTuple as RequiredCheetahVersionTuple
from Cheetah.Template import Template
from Cheetah.DummyTransaction import *
from Cheetah.NameMapper import NotFound, valueForName, valueFromSearchList, valueFromFrameOrSearchList
from Cheetah.CacheRegion import CacheRegion
import Cheetah.Filters as Filters
import Cheetah.ErrorCatchers as ErrorCatchers
from six.moves.urllib.parse import quote
from time import localtime, strftime
from Plugins.Extensions.OpenWebif.controllers.i18n import tstrings
from Plugins.Extensions.OpenWebif.vtiaddon import MinMovieList

##################################################
## MODULE CONSTANTS
VFFSL=valueFromFrameOrSearchList
VFSL=valueFromSearchList
VFN=valueForName
currentTime=time.time
__CHEETAH_version__ = '2.4.4'
__CHEETAH_versionTuple__ = (2, 4, 4, 'development', 0)
__CHEETAH_genTime__ = 1644610943.816799
__CHEETAH_genTimestamp__ = 'Fri Feb 11 20:22:23 2022'
__CHEETAH_src__ = '/home/nonsolosat/openpli-dreambox-oe-core/build/tmp/work/dm7080-oe-linux/enigma2-plugin-extensions-openwebif/gitAUTOINC+81b15e17ab-r0/git/plugin/controllers/views/responsive/ajax/movies.tmpl'
__CHEETAH_srcLastModified__ = 'Fri Feb 11 20:05:52 2022'
__CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine'

if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple:
    raise AssertionError(
      'This template was compiled with Cheetah version'
      ' %s. Templates compiled before version %s must be recompiled.'%(
         __CHEETAH_version__, RequiredCheetahVersion))

##################################################
## CLASSES

class movies(Template):

    ##################################################
    ## CHEETAH GENERATED METHODS


    def __init__(self, *args, **KWs):

        super(movies, self).__init__(*args, **KWs)
        if not self._CHEETAH__instanceInitialized:
            cheetahKWArgs = {}
            allowedKWs = 'searchList namespaces filter filtersLib errorCatcher'.split()
            for k,v in KWs.items():
                if k in allowedKWs: cheetahKWArgs[k] = v
            self._initCheetahInstance(**cheetahKWArgs)
        

    def respond(self, trans=None):



        ## CHEETAH: main method generated for this template
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        write(u'''
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
\t<div class="card">
\t\t<div class="header">
\t\t\t<div class="row clearfix">
\t\t\t\t<div class="col-xs-12 col-sm-6">
\t\t\t\t\t<h2><i class="material-icons material-icons-centered">movie</i>''')
        _v = VFFSL(SL,"tstrings",True)['movies'] # u"$tstrings['movies']" on line 11, col 69
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['movies']")) # from line 11, col 69.
        write(u'''</h2>
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<ul class="header-dropdown">
\t\t\t\t<li>
\t\t\t\t<li class="dropdown">
\t\t\t\t<a href="#movies"><i class="material-icons">autorenew</i></a>
\t\t\t\t<a href="javascript:void(0);" class="dropdown-toggle m-l-5 m-r-5" title="''')
        _v = VFFSL(SL,"tstrings",True)['sort'] # u"$tstrings['sort']" on line 18, col 78
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['sort']")) # from line 18, col 78.
        write(u'''" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="material-icons">sort</i></a>
\t\t\t\t\t<ul class="dropdown-menu pull-right" id="timerbuttons">
\t\t\t\t\t\t<li><a href="javascript:void(0);" onclick="changeMoviesort(\'name\'); return false;"><i class="material-icons material-icons-centered">vertical_align_bottom</i>''')
        _v = VFFSL(SL,"tstrings",True)['name_asc'] # u"$tstrings['name_asc']" on line 20, col 165
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['name_asc']")) # from line 20, col 165.
        write(u'''</a></li>
\t\t\t\t\t\t<li><a href="javascript:void(0);" onclick="changeMoviesort(\'named\'); return false;"><i class="material-icons material-icons-centered">vertical_align_top</i>''')
        _v = VFFSL(SL,"tstrings",True)['name_desc'] # u"$tstrings['name_desc']" on line 21, col 163
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['name_desc']")) # from line 21, col 163.
        write(u'''</a></li>
\t\t\t\t\t\t<li><a href="javascript:void(0);" onclick="changeMoviesort(\'date\'); return false;"><i class="material-icons material-icons-centered">vertical_align_bottom</i>''')
        _v = VFFSL(SL,"tstrings",True)['date_asc'] # u"$tstrings['date_asc']" on line 22, col 165
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['date_asc']")) # from line 22, col 165.
        write(u'''</a></li>
\t\t\t\t\t\t<li><a href="javascript:void(0);" onclick="changeMoviesort(\'dated\'); return false;"><i class="material-icons material-icons-centered">vertical_align_top</i>''')
        _v = VFFSL(SL,"tstrings",True)['date_desc'] # u"$tstrings['date_desc']" on line 23, col 163
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['date_desc']")) # from line 23, col 163.
        write(u'''</a></li>
\t\t\t\t\t</ul>
\t\t\t\t</li>
\t\t\t</ul>
\t\t</div>
\t\t<div class="body">
\t\t\t<div id="content_main">
\t\t\t\t<div id="tvcontentmain">
\t\t\t\t\t<div class="row clearfix m-l-20 m-b-20">
\t\t\t\t\t\t<nav>
''')
        path = ''
        dirs = VFN(VFFSL(SL,"directory",True)[0:],"split",False)("/")[1:-1]
        dirDepth = len(VFFSL(SL,"dirs",True))
        index = 1
        write(u'''
''')
        for dir in VFFSL(SL,"dirs",True): # generated from line 38, col 1
            path += '/' + VFFSL(SL,"dir",True)
            if VFFSL(SL,"index",True) != VFFSL(SL,"dirDepth",True): # generated from line 40, col 2
                write(u'''\t\t\t\t\t\t\t\t<a href="javascript:void(0);" class="link--skinned p-r-10" onclick="load_maincontent_spin(\'ajax/movies?dirname=\'+escape(\'''')
                _v = VFFSL(SL,"path",True) # u'$path' on line 41, col 130
                if _v is not None: write(_filter(_v, rawExpr=u'$path')) # from line 41, col 130.
                write(u'''\'));">
\t\t\t\t\t\t\t\t\t<i class="material-icons material-icons-centered">folder_open</i>
\t\t\t\t\t\t\t\t\t''')
                _v = VFFSL(SL,"dir",True) # u'$dir' on line 43, col 10
                if _v is not None: write(_filter(_v, rawExpr=u'$dir')) # from line 43, col 10.
                write(u'''
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t<i class="material-icons material-icons-centered">chevron_right</i>
''')
            else: # generated from line 46, col 2
                movieCountText = _("%d movies") % len(VFFSL(SL,"movies",True))
                write(u'''\t\t\t\t\t\t\t\t<span class="p-r-10 p-l-0" id="moviedirbtn">
\t\t\t\t\t\t\t\t\t<i class="material-icons material-icons-centered">folder_open</i>
\t\t\t\t\t\t\t\t\t''')
                _v = VFFSL(SL,"dir",True) # u'$dir' on line 50, col 10
                if _v is not None: write(_filter(_v, rawExpr=u'$dir')) # from line 50, col 10.
                write(u'''
\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t[ ''')
                _v = VFFSL(SL,"movieCountText",True) # u'$movieCountText' on line 52, col 11
                if _v is not None: write(_filter(_v, rawExpr=u'$movieCountText')) # from line 52, col 11.
                write(u''' ]
''')
            index = VFFSL(SL,"index",True) + 1
        write(u'''
''')
        if VFFSL(SL,"len",False)(VFFSL(SL,"bookmarks",True)): # generated from line 57, col 1
            write(u'''\t\t\t\t\t\t\t<i class="material-icons material-icons-centered">chevron_right</i>
\t\t\t\t\t\t\t<span class="form-group" style="width: auto;">
\t\t\t\t\t\t\t\t<select class="form-control" id="directory" style="display: inline-block; padding-left: 0; width: auto;">
\t\t\t\t\t\t\t\t\t<option>&rdsh; ''')
            _v = VFFSL(SL,"tstrings",True)['subdirectories'] # u"$tstrings['subdirectories']" on line 61, col 25
            if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['subdirectories']")) # from line 61, col 25.
            write(u'''</option>
''')
            for bookmark in VFFSL(SL,"bookmarks",True): # generated from line 62, col 2
                write(u'''\t\t\t\t\t\t\t\t\t<option value="''')
                _v = VFFSL(SL,"directory",True) # u'$directory' on line 63, col 25
                if _v is not None: write(_filter(_v, rawExpr=u'$directory')) # from line 63, col 25.
                _v = VFFSL(SL,"bookmark",True) # u'$bookmark' on line 63, col 35
                if _v is not None: write(_filter(_v, rawExpr=u'$bookmark')) # from line 63, col 35.
                write(u'''">''')
                _v = VFFSL(SL,"bookmark",True) # u'$bookmark' on line 63, col 46
                if _v is not None: write(_filter(_v, rawExpr=u'$bookmark')) # from line 63, col 46.
                write(u'''</option>
''')
            write(u'''\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t</span>
''')
        write(u'''\t\t\t\t\t\t</nav>
\t\t\t\t\t</div>
''')
        count = 0
        for movie in VFFSL(SL,"movies",True): # generated from line 71, col 6
            mname = VFN(VFFSL(SL,"movie.eventname",True),"replace",False)("\"", r"'")
            write(u'''\t\t\t\t\t<div class="row clearfix">
\t\t\t\t\t\t<div class="col-xs-12" id="movies">
\t\t\t\t\t\t\t\t<div class="card" id="''')
            _v = VFFSL(SL,"count",True) # u'$count' on line 75, col 31
            if _v is not None: write(_filter(_v, rawExpr=u'$count')) # from line 75, col 31.
            write(u'''">
\t\t\t\t\t\t\t\t\t<div class="header">
\t\t\t\t\t\t\t\t\t\t<div class="row clearfix">
\t\t\t\t\t\t\t\t\t\t\t<div class="col-xs-8">
\t\t\t\t\t\t\t\t\t\t\t\t<h2><i class="material-icons material-icons-centered">movie</i>''')
            _v = VFFSL(SL,"movie.eventname",True) # u'$movie.eventname' on line 79, col 76
            if _v is not None: write(_filter(_v, rawExpr=u'$movie.eventname')) # from line 79, col 76.
            write(u''' - ''')
            _v = VFFSL(SL,"movie.servicename",True) # u'$movie.servicename' on line 79, col 95
            if _v is not None: write(_filter(_v, rawExpr=u'$movie.servicename')) # from line 79, col 95.
            write(u'''</h2>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t<div class="col-xs-4">
\t\t\t\t\t\t\t\t\t\t\t\t\t<ul class="header-dropdown">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li><span role="button"><a href="javascript:void(0);" onclick="playRecording(\'''')
            _v = VFFSL(SL,"quote",False)(VFFSL(SL,"movie.serviceref",True)) # u'$quote($movie.serviceref)' on line 83, col 93
            if _v is not None: write(_filter(_v, rawExpr=u'$quote($movie.serviceref)')) # from line 83, col 93.
            write(u'''\');" title="''')
            _v = VFFSL(SL,"tstrings",True)['playback'] # u"$tstrings['playback']" on line 83, col 130
            if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['playback']")) # from line 83, col 130.
            write(u'''"><i class="material-icons material-icons-centered">play_circle_outline</i></a></span></li>
''')
            if VFFSL(SL,"transcoding",True): # generated from line 84, col 15
                write(u'''\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li><span role="button"><a href="javascript:void(0);" onclick="jumper80(\'''')
                _v = VFFSL(SL,"quote",False)(VFFSL(SL,"movie.filename",True)) # u'$quote($movie.filename)' on line 85, col 88
                if _v is not None: write(_filter(_v, rawExpr=u'$quote($movie.filename)')) # from line 85, col 88.
                write(u'''\');" title="''')
                _v = VFFSL(SL,"tstrings",True)['stream'] # u"$tstrings['stream']" on line 85, col 123
                if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['stream']")) # from line 85, col 123.
                write(u''': ''')
                _v = VFFSL(SL,"mname",True) # u'$mname' on line 85, col 144
                if _v is not None: write(_filter(_v, rawExpr=u'$mname')) # from line 85, col 144.
                write(u'''"><i class="material-icons material-icons-centered">tv</i></a></span></li>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li><span role="button"><a href="javascript:void(0);" onclick="jumper8003(\'''')
                _v = VFFSL(SL,"quote",False)(VFFSL(SL,"movie.filename",True)) # u'$quote($movie.filename)' on line 86, col 90
                if _v is not None: write(_filter(_v, rawExpr=u'$quote($movie.filename)')) # from line 86, col 90.
                write(u'''\');" title="''')
                _v = VFFSL(SL,"tstrings",True)['stream'] # u"$tstrings['stream']" on line 86, col 125
                if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['stream']")) # from line 86, col 125.
                write(u''' (''')
                _v = VFFSL(SL,"tstrings",True)['transcoded'] # u"$tstrings['transcoded']" on line 86, col 146
                if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['transcoded']")) # from line 86, col 146.
                write(u'''): ''')
                _v = VFFSL(SL,"mname",True) # u'$mname' on line 86, col 172
                if _v is not None: write(_filter(_v, rawExpr=u'$mname')) # from line 86, col 172.
                write(u'''"><i class="material-icons material-icons-centered">phone_android</i></a></span></li>
''')
            else: # generated from line 87, col 15
                write(u'''\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li><span role="button"><a href="web/ts.m3u?file=''')
                _v = VFFSL(SL,"quote",False)(VFFSL(SL,"movie.filename",True)) # u'$quote($movie.filename)' on line 88, col 64
                if _v is not None: write(_filter(_v, rawExpr=u'$quote($movie.filename)')) # from line 88, col 64.
                write(u'''" title="''')
                _v = VFFSL(SL,"tstrings",True)['stream'] # u"$tstrings['stream']" on line 88, col 96
                if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['stream']")) # from line 88, col 96.
                write(u''' ''')
                _v = VFFSL(SL,"mname",True) # u'$mname' on line 88, col 116
                if _v is not None: write(_filter(_v, rawExpr=u'$mname')) # from line 88, col 116.
                write(u'''" target="_blank"><i class="material-icons material-icons-centered">tv</i></a></span></li>
''')
            write(u'''\t\t\t\t\t\t\t\t\t\t\t\t\t\t
''')
            eventname_escaped = VFN(VFN(VFFSL(SL,"movie.eventname",True),"replace",False)("'", r"\'"),"replace",False)('"', r"\'")
            write(u'''\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li><span role="button"><a href="/file?action=download&file=''')
            _v = VFFSL(SL,"quote",False)(VFFSL(SL,"movie.filename",True)) # u'$quote($movie.filename)' on line 92, col 75
            if _v is not None: write(_filter(_v, rawExpr=u'$quote($movie.filename)')) # from line 92, col 75.
            write(u'''" title="''')
            _v = VFFSL(SL,"tstrings",True)['download'] # u"$tstrings['download']" on line 92, col 107
            if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['download']")) # from line 92, col 107.
            write(u''' ''')
            _v = VFFSL(SL,"mname",True) # u'$mname' on line 92, col 129
            if _v is not None: write(_filter(_v, rawExpr=u'$mname')) # from line 92, col 129.
            write(u'''"><i class="material-icons material-icons-centered">cloud_download</i></a></span></li>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li><span role="button"><a href=\'javascript:void(0);\' onclick="renameMovie(\'''')
            _v = VFFSL(SL,"quote",False)(VFFSL(SL,"movie.serviceref",True)) # u'$quote($movie.serviceref)' on line 93, col 91
            if _v is not None: write(_filter(_v, rawExpr=u'$quote($movie.serviceref)')) # from line 93, col 91.
            write(u"""','""")
            _v = VFFSL(SL,"eventname_escaped",True) # u'$eventname_escaped' on line 93, col 119
            if _v is not None: write(_filter(_v, rawExpr=u'$eventname_escaped')) # from line 93, col 119.
            write(u'''\');" title="''')
            _v = VFFSL(SL,"tstrings",True)['rename_recording'] # u"$tstrings['rename_recording']" on line 93, col 149
            if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['rename_recording']")) # from line 93, col 149.
            write(u'''"><i class="material-icons material-icons-centered">edit</i></a></span></li>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li><span role="button"><a href=\'javascript:void(0);\' onclick="deleteMovie(\'''')
            _v = VFFSL(SL,"quote",False)(VFFSL(SL,"movie.serviceref",True)) # u'$quote($movie.serviceref)' on line 94, col 91
            if _v is not None: write(_filter(_v, rawExpr=u'$quote($movie.serviceref)')) # from line 94, col 91.
            write(u"""', '""")
            _v = VFFSL(SL,"count",True) # u'$count' on line 94, col 120
            if _v is not None: write(_filter(_v, rawExpr=u'$count')) # from line 94, col 120.
            write(u"""', '""")
            _v = VFFSL(SL,"eventname_escaped",True) # u'$eventname_escaped' on line 94, col 130
            if _v is not None: write(_filter(_v, rawExpr=u'$eventname_escaped')) # from line 94, col 130.
            write(u'''\'); return false;" title="''')
            _v = VFFSL(SL,"tstrings",True)['delete_recording'] # u"$tstrings['delete_recording']" on line 94, col 174
            if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['delete_recording']")) # from line 94, col 174.
            write(u'''"><i class="material-icons material-icons-centered">delete</i></a></span></li>
\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t<div class="row clearfix" style="margin-bottom:-25px;">
\t\t\t\t\t\t\t\t\t\t\t\t<div class="col-xs-8">
''')
            dateRecorded = time.strftime("%c", time.localtime(VFFSL(SL,"movie.recordingtime",True)))
            write(u'''\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>''')
            _v = VFFSL(SL,"dateRecorded",True) # u'$dateRecorded' on line 101, col 21
            if _v is not None: write(_filter(_v, rawExpr=u'$dateRecorded')) # from line 101, col 21.
            write(u'''</span>
''')
            w = VFFSL(SL,"movie.lastseen",True)
            size = '0'
            if VFFSL(SL,"w",True) > 0: # generated from line 104, col 16
                w = VFFSL(SL,"w",True) * 70 / 100
                size = str(VFFSL(SL,"w",True))
                write(u'''\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="ui-progressbar ui-corner-all ui-widget ui-widget-content">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="ui-progressbar-value ui-corner-left ui-widget-header" style="width: ''')
                _v = VFFSL(SL,"size",True) # u'$size' on line 108, col 98
                if _v is not None: write(_filter(_v, rawExpr=u'$size')) # from line 108, col 98.
                write(u''';"></div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
''')
            write(u'''\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="progress progress-striped" style="margin-bottom:0px;width:35%;max-width:200px;min-width:100px;height:10px;">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="progress-bar bg--skinned" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width:''')
            _v = VFFSL(SL,"size",True) # u'$size' on line 112, col 143
            if _v is not None: write(_filter(_v, rawExpr=u'$size')) # from line 112, col 143.
            write(u'''%;"></div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>''')
            _v = VFFSL(SL,"movie.length",True) # u'$movie.length' on line 114, col 22
            if _v is not None: write(_filter(_v, rawExpr=u'$movie.length')) # from line 114, col 22.
            write(u''' min. / ''')
            _v = VFFSL(SL,"movie.filesize_readable",True) # u'$movie.filesize_readable' on line 114, col 43
            if _v is not None: write(_filter(_v, rawExpr=u'$movie.filesize_readable')) # from line 114, col 43.
            write(u'''</span>
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div class="body">
\t\t\t\t\t\t\t\t\t\t<div class="row clearfix" style="margin-bottom:-25px;">
\t\t\t\t\t\t\t\t\t\t\t<div class="col-xs-12">
\t\t\t\t\t\t\t\t\t\t\t\t<span data-toggle="collapse" data-target="#eventid''')
            _v = VFFSL(SL,"count",True) # u'$count' on line 121, col 63
            if _v is not None: write(_filter(_v, rawExpr=u'$count')) # from line 121, col 63.
            write(u'''" aria-expanded="false"aria-controls="collapseExample" style="cursor:pointer;"><b>''')
            _v = VFFSL(SL,"movie.description",True) # u'$movie.description' on line 121, col 151
            if _v is not None: write(_filter(_v, rawExpr=u'$movie.description')) # from line 121, col 151.
            write(u'''</b><i class="material-icons material-icons-centered">expand_more</i></span>
\t\t\t\t\t\t\t\t\t\t\t\t<div class="collapse" id="eventid''')
            _v = VFFSL(SL,"count",True) # u'$count' on line 122, col 46
            if _v is not None: write(_filter(_v, rawExpr=u'$count')) # from line 122, col 46.
            write(u'''">
\t\t\t\t\t\t\t\t\t\t\t\t\t<p>''')
            _v = VFFSL(SL,"movie.descriptionExtended",True) # u'$movie.descriptionExtended' on line 123, col 17
            if _v is not None: write(_filter(_v, rawExpr=u'$movie.descriptionExtended')) # from line 123, col 17.
            write(u'''</p>
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
''')
            count += 1
        write(u"""\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
</div>

<script>
\tjQuery(function() {
\t\tMLHelper.Load('name');
\t});

""")
        if VFFSL(SL,"len",False)(VFFSL(SL,"bookmarks",True)): # generated from line 144, col 1
            write(u"""\tjQuery(function() {
\t\tjQuery('#directory').change(function() {
\t\t\tload_maincontent_spin('ajax/movies?dirname=' + escape(jQuery(this).val()).replace('+','%2B'));
\t\t});
\t});
""")
        write(u'''</script>
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
        
    ##################################################
    ## CHEETAH GENERATED ATTRIBUTES


    _CHEETAH__instanceInitialized = False

    _CHEETAH_version = __CHEETAH_version__

    _CHEETAH_versionTuple = __CHEETAH_versionTuple__

    _CHEETAH_genTime = __CHEETAH_genTime__

    _CHEETAH_genTimestamp = __CHEETAH_genTimestamp__

    _CHEETAH_src = __CHEETAH_src__

    _CHEETAH_srcLastModified = __CHEETAH_srcLastModified__

    _mainCheetahMethod_for_movies= 'respond'

## END CLASS DEFINITION

if not hasattr(movies, '_initCheetahAttributes'):
    templateAPIClass = getattr(movies, '_CHEETAH_templateClass', Template)
    templateAPIClass._addCheetahPlumbingCodeToClass(movies)


# CHEETAH was developed by Tavis Rudd and Mike Orr
# with code, advice and input from many other volunteers.
# For more information visit http://www.CheetahTemplate.org/

##################################################
## if run from command line:
if __name__ == '__main__':
    from Cheetah.TemplateCmdLineIface import CmdLineIface
    CmdLineIface(templateObj=movies()).run()


