28 lines
482 B
Swift
Executable File
28 lines
482 B
Swift
Executable File
//
|
|
// LookupPreparationOperation.swift
|
|
// TagTunes
|
|
//
|
|
// Created by Kim Wittenburg on 12.04.16.
|
|
// Copyright © 2016 Kim Wittenburg. All rights reserved.
|
|
//
|
|
|
|
import AppKitPlus
|
|
|
|
// TODO: Documentation
|
|
|
|
class LookupPreparationOperation: Operation {
|
|
|
|
let track: TagTunesTrack
|
|
|
|
init(track: TagTunesTrack) {
|
|
self.track = track
|
|
}
|
|
|
|
override func execute() {
|
|
// TODO: Is it ok to block the thread?
|
|
track.updateTrackID()
|
|
finish()
|
|
}
|
|
|
|
}
|