Skip to content

Commit

Permalink
Fix ubuntu demo optional chain 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
chicio committed Nov 1, 2019
1 parent 50fbfb2 commit 137499a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Demo/Demo Ubuntu/Sources/Demo Ubuntu/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ let mp3Path = FileManager.default.currentDirectoryPath + "/Sources/Demo Ubuntu/e
do {
let id3TagEditor = ID3TagEditor()
if let id3Tag = try id3TagEditor.read(mp3: Data(contentsOf: URL(fileURLWithPath: mp3Path))) {
print("Title: \((id3Tag?.frames[.Title] as? ID3FrameWithStringContent)?.content ?? "")")
print("Artist: \((id3Tag?.frames[.Artist] as? ID3FrameWithStringContent)?.content ?? "")")
print("Album: \((id3Tag?.frames[.Album] as? ID3FrameWithStringContent)?.content ?? "")")
print("Album Artist: \((id3Tag?.frames[.AlbumArtist] as? ID3FrameWithStringContent)?.content ?? "")")
print("Title: \((id3Tag.frames[.Title] as? ID3FrameWithStringContent)?.content ?? "")")
print("Artist: \((id3Tag.frames[.Artist] as? ID3FrameWithStringContent)?.content ?? "")")
print("Album: \((id3Tag.frames[.Album] as? ID3FrameWithStringContent)?.content ?? "")")
print("Album Artist: \((id3Tag.frames[.AlbumArtist] as? ID3FrameWithStringContent)?.content ?? "")")
}
} catch {
print(error)
Expand Down

0 comments on commit 137499a

Please sign in to comment.