Advertisement
Guest User

Untitled

a guest
Jan 10th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. async function main() {
  2.     let library = new BasicLibrary();
  3.     library.register_entity(FileEntity);
  4.     library.register_entity(AudioEntity);
  5.     library.register_entity(SongEntity);
  6.  
  7.     let file_entity = await library.add(new LocalFile('/run/media/horn/3tb/Music/Nasonov_-_Istoria_avangardnoi_muzyki_-_Pier_Bulez.mp3'));
  8.     let audio_entity = await library.add(new Audio(file_entity.content));
  9.     let song_entity = await library.add(new Song([audio_entity.content]));
  10.  
  11.     console.log(song_entity)
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement