diff --git a/docs/html/dvrfailed.html b/docs/html/dvrfailed.html new file mode 100644 index 00000000..c102a126 --- /dev/null +++ b/docs/html/dvrfailed.html @@ -0,0 +1,79 @@ +
+This tab show your all failed recordings. + +

+ +

+

+Buttons have the following functions: + +

+
Delete +
+ If clicked delete selected failed recordings you delete recordings. Before deleted show message: Do you really want to delete the selection ? Answer Yes or No. +

+

+
Download +
+ If clicked download selected failed recordings you can downloaded recordings to your disk. After clicked you ask to select path. +

+ +
+
+

+The columns have the following functions: + + +

+
Details +
+ Show red status and blue icon "i". After click on icon "i" you see info about select failed recordings. +

+ +

+

Play +
+ Can play selected record in web browser by VLC Plugin or other external player. +

+

Title +
+ Showing title of record. +

+

Episod +
+ Showing number episod of record. +

+

Scheduled Start Time +
+ Showing date and time when the recording was started. +

+

Scheduled Stop Time +
+ Showing date and time when the recording was stoped. +

+

Duration +
+ Showing how long it took the recording. +

+

File Size +
+

+ Showing size of file recording. +

Channel Name +
+ Showing the name of the channel from which the recording was made. +

+

Creator +
+ Showing the name of the user who created the recording. +

+

Schedule Status +
+ Showing the status info of record. +

+

URL +
+ Showing the URL of record. +

+ +

diff --git a/docs/html/dvrfinished.html b/docs/html/dvrfinished.html index 12da3cb2..a3ef3c10 100644 --- a/docs/html/dvrfinished.html +++ b/docs/html/dvrfinished.html @@ -25,13 +25,13 @@ This tab show your all finished recordings.
Details
- Show status and blue icon "i". After click on icon "i" you see info about select finished recordings. + Show green status and blue icon "i". After click on icon "i" you see info about select finished recordings.

Play
- Can play selected record in web browser by VLC Plugin + Can play selected record in web browser by VLC Plugin or other external player.

Title
@@ -57,17 +57,17 @@ This tab show your all finished recordings.

Showing size of file recording. -

Channel name +
Channel Name
Showing the name of the channel from which the recording was made.

Creator
- Showing the name of the user who created the record. + Showing the name of the user who created the recording.

Schedule Status
- Showing the status of record. + Showing the status info of record.

URL
diff --git a/src/webui/static/app/dvr.js b/src/webui/static/app/dvr.js index 7f8dec38..405bbca9 100644 --- a/src/webui/static/app/dvr.js +++ b/src/webui/static/app/dvr.js @@ -189,7 +189,7 @@ tvheadend.dvr_upcoming = function(panel, index) { selected: selected, beforeedit: beforeedit, help: function() { - new tvheadend.help('DVR', 'config_dvrlog.html'); + new tvheadend.help('DVR-Upcoming/Current Recordings', 'dvrupcoming.html'); }, }); @@ -285,6 +285,30 @@ tvheadend.dvr_failed = function(panel, index) { var actions = tvheadend.dvrRowActions(); + var downloadButton = { + name: 'download', + builder: function() { + return new Ext.Toolbar.Button({ + tooltip: 'Download the selected recording', + iconCls: 'save', + text: 'Download', + disabled: true + }); + }, + callback: function(conf, e, store, select) { + var r = select.getSelections(); + if (r.length > 0) { + var url = r[0].data.url; + window.location = url; + } + } + }; + + function selected(s, abuttons) { + var count = s.getCount(); + abuttons.download.setDisabled(count < 1); + } + tvheadend.idnode_grid(panel, { url: 'api/dvr/entry', gridURL: 'api/dvr/entry/grid_failed', @@ -297,15 +321,40 @@ tvheadend.dvr_failed = function(panel, index) { del: true, list: 'disp_title,episode,start_real,stop_real,' + 'duration,channelname,creator,' + - 'status,sched_status', + 'status,sched_status,url', + columns: { + filesize: { + renderer: function() { + return function(v) { + if (v == null) + return ''; + return parseInt(v / 1000000) + ' MB'; + } + } + } + }, sort: { field: 'start_real', direction: 'ASC' }, plugins: [actions], - lcol: [actions], + lcol: [ + actions, + { + width: 40, + header: "Play", + renderer: function(v, o, r) { + var title = r.data['disp_title']; + if (r.data['episode']) + title += ' / ' + r.data['episode']; + return 'Play'; + } + }], + tbar: [downloadButton], + selected: selected, help: function() { - new tvheadend.help('DVR', 'config_dvrlog.html'); + new tvheadend.help('DVR-Failed Recordings', 'dvrfailed.html'); }, });