Sha256: 87dc209175b487756523e828e551018d9f358a99ebf3a716e6aa3211e6b2e2c6
Contents?: true
Size: 612 Bytes
Versions: 1
Compression:
Stored size: 612 Bytes
Contents
module SimplePvr module Server class UpcomingRecordingsController < SecuredController get '/' do PvrInitializer.scheduler.upcoming_recordings.map do |recording| { programme_id: recording.programme.id, show_name: recording.show_name, start_time: recording.start_time, channel: { id: recording.channel.id, name: recording.channel.name }, subtitle: recording.programme.subtitle, is_conflicting: PvrInitializer.scheduler.conflicting?(recording.programme) } end.to_json end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_pvr-1.1.0 | lib/simple_pvr/server/upcoming_recordings_controller.rb |