Exemplo n.º 1
0
 def getArtistPrimaryFiles(self, modVal, expr, force=False):
     ffd = filesFromDir(ext=".p")
     files = ffd.getFiles(self.getModValDir(modVal))
     fname = self.disc.getDBModValFilename(modVal)
     newFiles = files if force is True else self.getFilesByLastMod(
         files, expr, fname)
     return newFiles
Exemplo n.º 2
0
 def getAllRawSpotifyFiles(self, dirVal, expr, force=False):
     ffd = filesFromDir(ext=".p")
     files = ffd.getFiles(setDir(dirVal, "spotify"))
     newFiles = files if force is True else self.getFilesByRecency(
         files, expr)
     return newFiles
Exemplo n.º 3
0
 def getArtistUnofficialFiles(self, modVal, expr, force=False):
     ffd = filesFromDir(ext=".p")
     files = ffd.getFiles(self.getModValDir(modVal))
     newFiles = files if force is True else self.getFilesByRecency(
         files, expr)
     return newFiles
Exemplo n.º 4
0
 def getArtistRawHTMLFiles(self, expr, force=False):
     ffd = filesFromDir(ext=[".html", ".htm"])
     files = ffd.getFiles(setDir(self.disc.getArtistsDir(), "data"))
     newFiles = files if force is True else self.getFilesByRecency(
         files, expr)
     return newFiles
Exemplo n.º 5
0
 def getArtistRawFiles(self, datatype, expr, force=False):
     ffd = filesFromDir(ext=".p")
     files = ffd.getFiles(setDir(self.disc.getArtistsDir(), datatype))
     newFiles = files if force is True else self.getFilesByRecency(
         files, expr)
     return newFiles