Skip to content

Commit

Permalink
improve clip section query
Browse files Browse the repository at this point in the history
  • Loading branch information
fgl27 committed May 10, 2023
1 parent 841c71f commit 34d3cd3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/specific/ScreensObj.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ var userGameQuery =
var featuredQuery =
'{"query":"{featuredStreams(first:10,acceptedMature:true%x){stream{type,game{displayName,id},title,id,previewImageURL,viewersCount,createdAt,broadcaster{roles{isPartner},id,login,displayName,language,profileImageURL(width: 300)}}}}"}';
var topClipQuery =
'{"query":"{games(first: 100) {edges{node{id,name,clips(first:50,criteria:{period:%t%l}){edges{node{id, title,videoOffsetSeconds,viewCount,slug,language,durationSeconds,createdAt,id,broadcast{id}, thumbnailURL(width: 480, height: 272),broadcaster{id,displayName,login}}}}}}}}"}';
'{"query":"{games(first: 100) {edges{node{id,name,clips(first:50,criteria:{period:%t%l}){edges{node{id, title,videoOffsetSeconds,viewCount,slug,language,durationSeconds,createdAt,id,video{id}, thumbnailURL(width: 480, height: 272),broadcaster{id,displayName,login}}}}}}}}"}';
var topVodQuery =
'{"query":"{games(first: 30) {edges{node{id,name,videos(first:20,types:%a%l, sort:VIEWS){edges{node{id,duration,viewCount,language,title,animatedPreviewURL,createdAt,id,, thumbnailURLs(width: 640, height: 360),creator{id,displayName,login}}}}}}}}"}';
'{"query":"{games(first: 30) {edges{node{id,name,videos(first:20,types:%a%l, sort:VIEWS){edges{node{id,duration,viewCount,language,title,animatedPreviewURL,createdAt,id,thumbnailURLs(width: 640, height: 360),creator{id,displayName,login}}}}}}}}"}';
//,languages:"EN"
var Base_obj;
var Base_Vod_obj;
Expand Down Expand Up @@ -2524,8 +2524,8 @@ function ScreensObj_ClipCellArray(cell, isKraken, isQuery) {
null, //5
cell.broadcaster ? cell.broadcaster.login : '', //6
cell.id, //7
cell.broadcast ? cell.broadcast.id : null, //8
cell.broadcast ? cell.videoOffsetSeconds : null, //9
cell.videoOffsetSeconds ? cell.video.id : null, //8
cell.videoOffsetSeconds ? cell.videoOffsetSeconds : null, //9
twemoji.parse(cell.title), //10
'[' + cell.language.toUpperCase() + ']', //11
cell.created_at, //12
Expand Down

0 comments on commit 34d3cd3

Please sign in to comment.