itunes_video 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/itunes_video.rb +1 -0
- metadata +1 -1
data/lib/itunes_video.rb
CHANGED
@@ -79,6 +79,7 @@ class Itunes_video
|
|
79
79
|
end
|
80
80
|
|
81
81
|
def unplayed=(unplayed)
|
82
|
+
unplayed = unplayed.downcase
|
82
83
|
if !["true", "false"].include? unplayed
|
83
84
|
raise TypeError, "unplayed must be 'true' or 'false'"
|
84
85
|
elsif `osascript -e 'tell application \"iTunes\" to set unplayed of file track id #{@id} to \"#{unplayed}\"'`
|