当前位置: 首页>>代码示例>>Python>>正文


Python File.metadata['musicbrainz_trackid']方法代码示例

本文整理汇总了Python中picard.file.File.metadata['musicbrainz_trackid']方法的典型用法代码示例。如果您正苦于以下问题:Python File.metadata['musicbrainz_trackid']方法的具体用法?Python File.metadata['musicbrainz_trackid']怎么用?Python File.metadata['musicbrainz_trackid']使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在picard.file.File的用法示例。


在下文中一共展示了File.metadata['musicbrainz_trackid']方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: example_1

# 需要导入模块: from picard.file import File [as 别名]
# 或者: from picard.file.File import metadata['musicbrainz_trackid'] [as 别名]
 def example_1(self):
     file = File("ticket_to_ride.mp3")
     file.state = File.NORMAL
     file.metadata['album'] = 'Help!'
     file.metadata['title'] = 'Ticket to Ride'
     file.metadata['artist'] = 'The Beatles'
     file.metadata['artistsort'] = 'Beatles, The'
     file.metadata['albumartist'] = 'The Beatles'
     file.metadata['albumartistsort'] = 'Beatles, The'
     file.metadata['tracknumber'] = '7'
     file.metadata['totaltracks'] = '14'
     file.metadata['discnumber'] = '1'
     file.metadata['totaldiscs'] = '1'
     file.metadata['date'] = '1965-08-06'
     file.metadata['releasetype'] = 'album'
     file.metadata['releasestatus'] = 'official'
     file.metadata['releasecountry'] = 'US'
     file.metadata['~extension'] = 'mp3'
     file.metadata['musicbrainz_albumid'] = '2c053984-4645-4699-9474-d2c35c227028'
     file.metadata['musicbrainz_albumartistid'] = 'b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d'
     file.metadata['musicbrainz_artistid'] = 'b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d'
     file.metadata['musicbrainz_trackid'] = '898a2916-f64d-48d3-ab1a-3446fb450448'
     return file
开发者ID:RubenKelevra,项目名称:piage,代码行数:25,代码来源:renaming.py

示例2: example_2

# 需要导入模块: from picard.file import File [as 别名]
# 或者: from picard.file.File import metadata['musicbrainz_trackid'] [as 别名]
 def example_2(self):
     file = File("track05.mp3")
     file.state = File.NORMAL
     file.metadata['album'] = 'Explosive Doowops, Volume 4'
     file.metadata['title'] = 'Why? Oh Why?'
     file.metadata['artist'] = 'The Fantasys'
     file.metadata['artistsort'] = 'Fantasys, The'
     file.metadata['albumartist'] = self.config.setting['va_name']
     file.metadata['albumartistsort'] = self.config.setting['va_name']
     file.metadata['tracknumber'] = '5'
     file.metadata['totaltracks'] = '26'
     file.metadata['discnumber'] = '2'
     file.metadata['totaldiscs'] = '2'
     file.metadata['date'] = '1999-02-03'
     file.metadata['releasetype'] = 'compilation'
     file.metadata['releasestatus'] = 'official'
     file.metadata['releasecountry'] = 'US'
     file.metadata['compilation'] = '1'
     file.metadata['~extension'] = 'mp3'
     file.metadata['musicbrainz_albumid'] = 'bcc97e8a-2055-400b-a6ed-83288285c6fc'
     file.metadata['musicbrainz_albumartistid'] = '89ad4ac3-39f7-470e-963a-56509c546377'
     file.metadata['musicbrainz_artistid'] = '06704773-aafe-4aca-8833-b449e0a6467f'
     file.metadata['musicbrainz_trackid'] = 'd92837ee-b1e4-4649-935f-e433c3e5e429'
     return file
开发者ID:RubenKelevra,项目名称:piage,代码行数:26,代码来源:renaming.py


注:本文中的picard.file.File.metadata['musicbrainz_trackid']方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。