Sha256: 62630def7228a54b86c05081cf8e0fc721aa994651454f7c25406fac074cd12d
Contents?: true
Size: 480 Bytes
Versions: 1
Compression:
Stored size: 480 Bytes
Contents
require 'media/runner/app/vlc_check' module MediaPaths include VlcCheck SERIES_BASE = "/Users/#{whoami}/Movies/series" MOVIES_BASE = "/Users/#{whoami}/Movies/movies" 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 "#{series_path(series)}/#{episode}.#{format}" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
media-runner-1.0.0 | lib/media/runner/app/media_paths.rb |