本文整理匯總了Python中lollypop.objects.Track.set_album_artist方法的典型用法代碼示例。如果您正苦於以下問題:Python Track.set_album_artist方法的具體用法?Python Track.set_album_artist怎麽用?Python Track.set_album_artist使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類lollypop.objects.Track
的用法示例。
在下文中一共展示了Track.set_album_artist方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: load_external
# 需要導入模塊: from lollypop.objects import Track [as 別名]
# 或者: from lollypop.objects.Track import set_album_artist [as 別名]
def load_external(self, uri, name=''):
"""
Load external tracks
@param uri as str
@param name as string
"""
try:
uri = GLib.filename_to_uri(uri)
except:
pass
track = Track()
track.set_album_artist(name)
track.set_uri(uri)
if track.uri.startswith('file://'):
track.id = Type.EXTERNALS
else:
track.id = Type.RADIOS
self._external_tracks.append(track)