opendreambox / enigma2-plugins

Python plug-ins for enigma2 (DreamOS)
https://dreambox.de/
Other
37 stars 49 forks source link

[Webinterface] no result in getMovieSubdirs #25

Closed jbleyel closed 3 years ago

jbleyel commented 4 years ago

os.path.isdir needs the full path like this:

    def getMovieSubdirs(self):
        if not pathExists(self.dirname):
            return []
        locations = []
        for child in os.listdir(self.dirname):
            sep = "" if self.dirname.endswith("/") else "/"
            ch = "%s%s%s/" % (self.dirname, sep, child)
            if os.path.isdir(ch):
                locations.append(ch)
        return locations

https://github.com/opendreambox/enigma2-plugins/blob/f618a325f01a2471212a3373980111998b0e88c4/webinterface/src/WebComponents/Sources/Movie.py#L213