Skip to content

Commit

Permalink
set application name QMusic
Browse files Browse the repository at this point in the history
  • Loading branch information
dragondjf committed Nov 3, 2015
1 parent 24520b2 commit 2e1a068
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 19 deletions.
10 changes: 5 additions & 5 deletions src/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
import json
from PyQt5.QtCore import qVersion

applicationName = 'Deepin Music'
applicationName = 'QMusic'
applicationVersion = '3.0.0'
organizationDomain = 'linuxdeepin.com'
organizationName = "Deepin"
windowIcon = os.sep.join(['skin', 'images', 'deepin-music.png'])
windowTitle = u'Deepin Music'
organizationDomain = 'dragondjf.github.io'
organizationName = "dragondjf"
windowIcon = os.sep.join(['skin', 'images', 'QMusic.png'])
windowTitle = u'QMusic'

if qVersion().startswith('5.3'):
isWebengineUsed = False
Expand Down
2 changes: 1 addition & 1 deletion src/config/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
QStandardPaths.writableLocation(QStandardPaths.MusicLocation), 'download')
LRCPath = os.path.join(
QStandardPaths.writableLocation(QStandardPaths.MusicLocation), 'lyrics')
LogCachePath = os.path.join(Home, '.cache', 'deepin-muisc')
LogCachePath = os.path.join(Home, '.cache', 'qmuisc')
LogPath = os.path.join(LogCachePath, 'main.log')

paths = [
Expand Down
12 changes: 0 additions & 12 deletions src/dwidgets/coverengine.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,18 +385,6 @@ def downloadAlbumCover(self, artist, album):
d = CoverRunnable(self, artist, album, qtype="artist")
QThreadPool.globalInstance().start(d)

@classmethod
def getArtistCoverPath(cls, artist):
ArtistCoverPath = '/home/djf/.config/DeepinMusic3/cover/artist'
filepath = os.path.join(ArtistCoverPath, artist)
return filepath

@classmethod
def getAlbumCoverPath(cls, artist, album):
ArtistCoverPath = '/home/djf/.config/DeepinMusic3/cover/album'
filepath = os.path.join(ArtistCoverPath, '%s-%s' % (artist, album))
return filepath


if __name__ == '__main__':
app = QGuiApplication(sys.argv)
Expand Down
File renamed without changes
2 changes: 1 addition & 1 deletion test/song.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
""".split()

class Song(dict, Logger):
''' The deepin music song class. '''
''' The qmusic song class. '''
def init_from_dict(self, other_dict=None, cmp_key="uri"):
''' init from other dict. '''
if other_dict:
Expand Down

0 comments on commit 2e1a068

Please sign in to comment.