Sha256: 49502949cc38dbad7945c982e293ff545bcc7d0dab22691b4ba71506ae034080
Contents?: true
Size: 518 Bytes
Versions: 1
Compression:
Stored size: 518 Bytes
Contents
module MediaPaths SERIES_BASE = "#{Dir.home}/Movies/series".freeze MOVIES_BASE = "#{Dir.home}/Movies/movies".freeze def movie_path(movie) nil unless movie "#{MOVIES_BASE}/#{movie}" end def series_path(series) nil unless series "#{SERIES_BASE}/#{series}" end def episode_path(series, episode, format) nil unless series && episode && format "#{series_path(series)}/#{episode}.#{format}" end def series_base SERIES_BASE end def movies_base MOVIES_BASE end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
media-runner-1.0.2 | lib/media/runner/app/media_paths.rb |