This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
########################################################################### | |
# Download papers of ISMIR 2021 save them under "speaking" file names | |
# derived from the JSON describing the conference. | |
# | |
# NOTE: Paper will be downloaded to your _current_ dir!! | |
# | |
# author: Hendrik Schreiber ([email protected]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*********************************************************************** | |
* JXA-based JavaScript that creates an XML file for Music.app like * | |
* iTunes used to create before macOS 10.15. * | |
* * | |
* NOTE: The XML is not identical, but a best effort is made. * | |
* Missing are for example all B64-encoded smart data and the * | |
* protected flag as well as certain distinguished playlists * | |
* kinds. For a real replacement, use the ITLibrary API . * | |
* * | |
* USAGE: * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def boolean importInfo(StartElement element, String location) { | |
AudioSong song = null | |
try { | |
// read some attributes from the <INFO> element | |
// first read the attribute named PLAYCOUNT, i.e. <INFO PLAYCOUNT="someValue" ...> | |
Attribute playcount = element.getAttributeByName(new QName("PLAYCOUNT")) | |
// read the attribute named LAST_PLAYED, i.e. <INFO LAST_PLAYED="someValue" ...> | |
Attribute lastPlayed = element.getAttributeByName(new QName("LAST_PLAYED")) | |
// probably for historic reasons, Traktor calls comment 2 "rating" |