Skip to content

Commit

Permalink
Merge branch 'feature/tv-fields'
Browse files Browse the repository at this point in the history
  • Loading branch information
nomad2k committed Nov 23, 2014
2 parents 5be4c92 + 681ee73 commit 879e8d6
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 12 deletions.
4 changes: 3 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
[B]WIMM Change log[/B]

4.1.11

- Add support for tags to TV shows
- Add sort title for TV shows
- Add content rating for TV shows

4.1.10
- Revert JSON API version to 6.14.3
Expand Down
36 changes: 25 additions & 11 deletions resources/js/app/tvshows/tvshow.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,22 @@ function fanartConvert(value, record) {
}

var tvShowRecord = Ext.data.Record.create([
{ name: 'tvshowid' },
{ name: 'title' },
{ name: 'sorttitle' },
{ name: 'genre', convert: XWMM.util.convertArrayToList },
{ name: 'year' },
{ name: 'rating', convert: XWMM.util.convertRating },
{ name: 'plot' },
{ name: 'fanart', mapping: 'art', convert: fanartConvert },
{ name: 'banner', mapping: 'art', convert: bannerConvert },
{ name: 'tvshowid' },
{ name: 'studio', convert: XWMM.util.convertArrayToList },
{ name: 'mpaa' },
{ name: 'playcount' },
{ name: 'episode' },
{ name: 'rating', convert: XWMM.util.convertRating },
{ name: 'premiered' },
{ name: 'tvshowid' },
{ name: 'playcount' },
{ name: 'watchedepisodes' }
{ name: 'fanart', mapping: 'art', convert: fanartConvert },
{ name: 'banner', mapping: 'art', convert: bannerConvert },
{ name: 'watchedepisodes' },
{ name: 'tag', convert: XWMM.util.convertArrayToList }
]);

var seasonRecord = Ext.data.Record.create([
Expand Down Expand Up @@ -81,9 +83,9 @@ var storeTVShow = new Ext.data.Store({
method: 'VideoLibrary.GetTVShows',
params: {
properties: [
'title', 'genre', 'year', 'rating', 'plot', 'studio', 'mpaa', 'playcount',
'title', 'sorttitle', 'genre', 'year', 'rating', 'plot', 'studio', 'mpaa', 'playcount',
'episode', 'imdbnumber', 'premiered', 'votes', 'lastplayed', 'art', 'file',
'watchedepisodes'
'watchedepisodes', 'tag'
],
sort: {
order: 'ascending',
Expand Down Expand Up @@ -210,7 +212,7 @@ var tvShowDetailsPanel = new Ext.FormPanel({
{
columnWidth: 0.40,
layout: 'form',
labelWidth: 65,
labelWidth: 85,
padding: '0 10px',
defaults: {
xtype: 'textfield',
Expand All @@ -228,6 +230,10 @@ var tvShowDetailsPanel = new Ext.FormPanel({
name: 'title',
allowBlank: false
},
{
fieldLabel: 'Sort Title',
name: 'sorttitle'
},
{
fieldLabel: 'Genres',
name: 'genre',
Expand All @@ -241,6 +247,14 @@ var tvShowDetailsPanel = new Ext.FormPanel({
{
fieldLabel: 'Channel',
name: 'studio'
},
{
fieldLabel: 'Content Rating',
name: 'mpaa'
},
{
fieldLabel: 'Tags',
name: 'tag'
}
]
},
Expand All @@ -250,7 +264,7 @@ var tvShowDetailsPanel = new Ext.FormPanel({
name: 'plot',

columnWidth: 0.40,
height: 100,
height: 175,

listeners: {
change: function() {
Expand Down

0 comments on commit 879e8d6

Please sign in to comment.