Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions lib/rubyripper/fileScheme.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def getFile(codec, track=nil)

# return the toc file of Cdrdao class // TODO this can't be; the dir is not yet created.
def getTocFile
File.join(getTempDir(), @filterFiles.filter("#{@md.artist} - #{@md.album}.toc"))
File.join(getTempDir(), @filterFiles.filter("#{giveFileName()}.toc"))
end

# return the full filename of the log
Expand All @@ -97,7 +97,7 @@ def getLogFile(codec)

# return the full filename of the cuesheet
def getCueFile(codec)
File.join(@dir[codec], @filterFiles.filter("#{@md.artist} - #{@md.album} (#{codec}).cue"))
File.join(@dir[codec], @filterFiles.filter("#{giveFileName()}.cue"))
end

# return the just ripped wave file
Expand Down Expand Up @@ -235,7 +235,7 @@ def setFileNames
end

# give the filename for given codec and track
def giveFileName(codec, track=0)
def giveFileName(codec="", track=0)
file = File.basename(@fileScheme)

# the artist should always refer to the artist that is valid for the track
Expand Down Expand Up @@ -269,6 +269,7 @@ def fileExtension(codec)
when 'wavpack' then '.wv'
when 'opus' then '.opus'
when 'other' then @otherExtension
when '' then ''
end
end

Expand Down