def set_values(itunes_songs: Dict[int, Song], target_rhythmdb: Path, itunes_library_root: str, rhythmbox_library_root: str) -> IntegrationLog:
itunes_statistics_dict = create_itunes_statistic_dict(itunes_songs, itunes_library_root)
rhythmdb = lxml.etree.parse(target_rhythmdb)
root = rhythmdb.getroot()
log = integrate_statistics_into_rhythmdb(root, itunes_statistics_dict, rhythmbox_library_root)
if log.something_was_changed():
common.write_to_file(root, target_rhythmdb, add_standalone_to_xml_declaration=True)
return log
rhythmbox_count_rating_integrator.py 文件源码
python
阅读 24
收藏 0
点赞 0
评论 0
评论列表
文章目录