rhythmbox_count_rating_integrator.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:migrate-itunes-to-rhythmbox 作者: phauer 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号