Example #1
0
 def __init__(self):
     """
         Init album art
     """
     BaseArt.__init__(self)
     TagReader.__init__(self)
     self.__favorite = Lp().settings.get_value(
                                             "favorite-cover").get_string()
Example #2
0
 def __init__(self):
     """
         Init radio art
     """
     BaseArt.__init__(self)
     TagReader.__init__(self)
     self.__favorite = Lp().settings.get_value(
                                             'favorite-cover').get_string()
Example #3
0
 def __init__(self):
     """
         Init radio art
     """
     BaseArt.__init__(self)
     ArtDownloader.__init__(self)
     TagReader.__init__(self)
     self._favorite = Lp().settings.get_value('favorite-cover').get_string()
Example #4
0
 def __init__(self):
     BaseArt.__init__(self)
     TagReader.__init__(self)
     self._favorite = Lp.settings.get_value('favorite-cover').get_string()
     if not os.path.exists(self._CACHE_PATH):
         try:
             os.mkdir(self._CACHE_PATH)
         except:
             print("Can't create %s" % self._CACHE_PATH)
Example #5
0
 def __init__(self):
     """
         Init radio art
     """
     BaseArt.__init__(self)
     if not os.path.exists(self._RADIOS_PATH):
         try:
             os.mkdir(self._RADIOS_PATH)
         except:
             print("Can't create %s" % self._RADIOS_PATH)
Example #6
0
 def __init__(self):
     """
         Init radio art
     """
     BaseArt.__init__(self)
     if not os.path.exists(self._RADIOS_PATH):
         try:
             os.mkdir(self._RADIOS_PATH)
         except:
             print("Can't create %s" % self._RADIOS_PATH)
Example #7
0
 def __init__(self):
     """
         Init radio art
     """
     BaseArt.__init__(self)
     if not os.path.exists(self._RADIOS_PATH):
         try:
             os.mkdir(self._RADIOS_PATH)
         except Exception as e:
             print("RadioArt.__init__(): %s" % e)
Example #8
0
 def __init__(self):
     """
         Init radio art
     """
     BaseArt.__init__(self)
     if not os.path.exists(self._RADIOS_PATH):
         try:
             os.mkdir(self._RADIOS_PATH)
         except Exception as e:
             print("RadioArt.__init__(): %s" % e)
Example #9
0
 def __init__(self):
     """
         Create cache path
     """
     BaseArt.__init__(self)
     AlbumArt.__init__(self)
     RadioArt.__init__(self)
     Downloader.__init__(self)
     self._create_cache()
     self._create_store()
Example #10
0
 def __init__(self):
     """
         Init radio art
     """
     BaseArt.__init__(self)
     d = Gio.File.new_for_path(self._RADIOS_PATH)
     if not d.query_exists():
         try:
             d.make_directory_with_parents()
         except Exception as e:
             print("RadioArt.__init__(): %s" % e)
Example #11
0
 def __init__(self):
     """
         Init radio art
     """
     BaseArt.__init__(self)
     d = Gio.File.new_for_path(self._RADIOS_PATH)
     if not d.query_exists():
         try:
             d.make_directory_with_parents()
         except Exception as e:
             print("RadioArt.__init__(): %s" % e)
Example #12
0
 def __init__(self):
     """
         Init artwork
     """
     BaseArt.__init__(self)
     AlbumArt.__init__(self)
     ArtistArt.__init__(self)
     RadioArt.__init__(self)
     ArtDownloader.__init__(self)
     create_dir(self._CACHE_PATH)
     create_dir(self._STORE_PATH)
     create_dir(self._WEB_PATH)
Example #13
0
 def __init__(self):
     """
         Init radio art
     """
     BaseArt.__init__(self)
     ArtDownloader.__init__(self)
     TagReader.__init__(self)
     self._favorite = Lp.settings.get_value('favorite-cover').get_string()
     if not os.path.exists(self._CACHE_PATH):
         try:
             os.mkdir(self._CACHE_PATH)
         except:
             print("Can't create %s" % self._CACHE_PATH)
Example #14
0
 def __init__(self):
     """
         Init artwork
     """
     BaseArt.__init__(self)
     AlbumArt.__init__(self)
     ArtistArt.__init__(self)
     DownloaderArt.__init__(self)
     # Move old store
     # FIXME: Remove this later
     store = Gio.File.new_for_path(GLib.get_user_data_dir() +
                                   "/lollypop/store")
     if store.query_exists():
         new_store = Gio.File.new_for_path(ALBUMS_PATH)
         if not new_store.query_exists():
             store.move(new_store, Gio.FileCopyFlags.OVERWRITE, None, None)
     create_dir(CACHE_PATH)
     create_dir(ALBUMS_PATH)
     create_dir(ALBUMS_WEB_PATH)
     create_dir(ARTISTS_PATH)
Example #15
0
 def __init__(self):
     """
         Init artwork
     """
     BaseArt.__init__(self)
     AlbumArt.__init__(self)
     ArtistArt.__init__(self)
     DownloaderArt.__init__(self)
     # Move old store
     # FIXME: Remove this later
     store = Gio.File.new_for_path(GLib.get_user_data_dir() +
                                   "/lollypop/store")
     if store.query_exists():
         new_store = Gio.File.new_for_path(ALBUMS_PATH)
         if not new_store.query_exists():
             store.move(new_store, Gio.FileCopyFlags.OVERWRITE, None, None)
     create_dir(CACHE_PATH)
     create_dir(ALBUMS_PATH)
     create_dir(ALBUMS_WEB_PATH)
     create_dir(ARTISTS_PATH)
     if App().settings.get_value("cover-quality").get_int32() == 100:
         self._ext = "png"
     else:
         self._ext = "jpg"