Skip to content

Commit

Permalink
up main files
Browse files Browse the repository at this point in the history
  • Loading branch information
fgl27 committed Sep 10, 2024
1 parent b32b723 commit d236944
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 28 deletions.
6 changes: 6 additions & 0 deletions apk/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ The App is divided in two part, **Apk** and **Web** you can check it version in

The app has a building update check function, so whenever there is a update a red text will show up bellow the main pages clock, also a short warning will pop on the screen let you know if is a **Apk** or **Web** update.

WebVersion September 09
==============

* Fix animation lag in the Clip section, Twitch was sending images that were too big causing lags
* General performance improvements

WebVersion August 17
==============

Expand Down
11 changes: 9 additions & 2 deletions app/general/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,16 @@ var version = {
VersionBase: '3.0',
publishVersionCode: 367, //Always update (+1 to current value) Main_version_java after update publishVersionCode or a major update of the apk is released
ApkUrl: 'https://github.com/fgl27/SmartTwitchTV/releases/download/367/SmartTV_twitch_3_0_367.apk',
WebVersion: 'August 17 2024',
WebTag: 675, //Always update (+1 to current value) Main_version_web after update Main_minversion or a major update of the web part of the app
WebVersion: 'September 09 2024',
WebTag: 677, //Always update (+1 to current value) Main_version_web after update Main_minversion or a major update of the web part of the app
changelog: [
{
title: 'WebVersion September 09',
changes: [
'Fix animation lag in the Clip section, Twitch was sending images that were too big causing lags',
'General performance improvements'
]
},
{
title: 'WebVersion August 17',
changes: [
Expand Down
4 changes: 2 additions & 2 deletions release/githubio/js/main.js

Large diffs are not rendered by default.

97 changes: 74 additions & 23 deletions release/githubio/js/main_uncompressed.js
Original file line number Diff line number Diff line change
Expand Up @@ -4720,9 +4720,16 @@
VersionBase: '3.0',
publishVersionCode: 367, //Always update (+1 to current value) Main_version_java after update publishVersionCode or a major update of the apk is released
ApkUrl: 'https://github.com/fgl27/SmartTwitchTV/releases/download/367/SmartTV_twitch_3_0_367.apk',
WebVersion: 'August 17 2024',
WebTag: 675, //Always update (+1 to current value) Main_version_web after update Main_minversion or a major update of the web part of the app
WebVersion: 'September 09 2024',
WebTag: 677, //Always update (+1 to current value) Main_version_web after update Main_minversion or a major update of the web part of the app
changelog: [{
title: 'WebVersion September 09',
changes: [
'Fix animation lag in the Clip section, Twitch was sending images that were too big causing lags',
'General performance improvements'
]
},
{
title: 'WebVersion August 17',
changes: [
"Update the emotes selection screen to improve performance, no magic can improve the performance here more than what is, simply some devices are capable of playing 8k but they can't handle multiple animated images, also some emotes servers are terribly optimized, for example, 7TV"
Expand Down Expand Up @@ -28891,7 +28898,10 @@ https://video-weaver.sao03.hls.ttvnw.net/v1/playlist/C.m3u8 09:36:20.90
} //else the user has already exited the screen

if (Main_FirstRun) Screens_loadDataSuccessFinishEnd();
} else ScreenObj[key].dataEnded = true;
} else {
console.log('ddsd');
ScreenObj[key].dataEnded = true;
}
}

function Screens_concatenate(responseObj, key) {
Expand All @@ -28911,8 +28921,11 @@ https://video-weaver.sao03.hls.ttvnw.net/v1/playlist/C.m3u8 09:36:20.90

//var appendDiv = !ScreenObj[key].column_id;

if (response_items > ScreenObj[key].ItemsLimit) response_items = ScreenObj[key].ItemsLimit;
else if (!ScreenObj[key].loadingData) ScreenObj[key].dataEnded = true;
if (response_items > ScreenObj[key].ItemsLimit) {
response_items = ScreenObj[key].ItemsLimit;
} else if (!ScreenObj[key].loadingData) {
ScreenObj[key].dataEnded = true;
}

if (ScreenObj[key].HasSwitches && !ScreenObj[key].TopRowCreated) {
ScreenObj[key].addSwitches();
Expand Down Expand Up @@ -29528,9 +29541,10 @@ https://video-weaver.sao03.hls.ttvnw.net/v1/playlist/C.m3u8 09:36:20.90

//Load more as the data is getting used
if (ScreenObj[key].data) {
var ItemsLimitMax = ScreenObj[key].ItemsLimitMax ? ScreenObj[key].ItemsLimitMax : Main_ItemsLimitMax;
if (
ScreenObj[key].posY > 2 &&
ScreenObj[key].data_cursor + Main_ItemsLimitMax > ScreenObj[key].data.length &&
ScreenObj[key].posY &&
ScreenObj[key].data_cursor + ItemsLimitMax > ScreenObj[key].data.length &&
!ScreenObj[key].dataEnded &&
!ScreenObj[key].loadingData
) {
Expand Down Expand Up @@ -32476,15 +32490,15 @@ https://video-weaver.sao03.hls.ttvnw.net/v1/playlist/C.m3u8 09:36:20.90
var Main_ReloadLimitOffsetGames = 1.35;
var Main_ReloadLimitOffsetVideos = 1.5;

var Main_ItemsLimitVideo = 45;
var Main_ItemsLimitVideo = 30;
var Main_ColumnsCountVideo = 3;
var Main_ItemsReloadLimitVideo = Math.floor(Main_ItemsLimitVideo / Main_ColumnsCountVideo / Main_ReloadLimitOffsetVideos);

var Main_ItemsLimitGame = 45;
var Main_ItemsLimitGame = 30;
var Main_ColumnsCountGame = 5;
var Main_ItemsReloadLimitGame = Math.floor(Main_ItemsLimitGame / Main_ColumnsCountGame / Main_ReloadLimitOffsetGames);

var Main_ItemsLimitChannel = 48;
var Main_ItemsLimitChannel = 36;
var Main_ColumnsCountChannel = 6;
var Main_ItemsReloadLimitChannel = Math.floor(Main_ItemsLimitChannel / Main_ColumnsCountChannel / Main_ReloadLimitOffsetVideos);

Expand Down Expand Up @@ -32539,6 +32553,8 @@ https://video-weaver.sao03.hls.ttvnw.net/v1/playlist/C.m3u8 09:36:20.90
'{"query":"{searchFor(userQuery:\\"%x\\",platform:\\"web\\",target:{%y index:LIVE,limit:100}){liveChannels{cursor,pageInfo{hasNextPage}items{stream{type,game{displayName,id},isMature,title,id,previewImageURL,viewersCount,createdAt,broadcaster{roles{isPartner},id,login,displayName,language,profileImageURL(width:300)}}}}}}"}';
var searchVodQuery =
'{"query":"{searchFor(userQuery:\\"%x\\",platform:\\"web\\",target:{%y index:VOD,limit:100}){videos{cursor,pageInfo{hasNextPage}items{game{displayName,id},duration,viewCount,language,title,animatedPreviewURL,createdAt,id,thumbnailURLs(width:640,height:360),creator{id,displayName,login}}}}}"}';
var liveQuery =
'{"query":"{streams(first: 30, options:{sort:VIEWER_COUNT %l} %c) {pageInfo { hasNextPage },edges{cursor, node{ type,game{displayName,id},isMature,title,id,previewImageURL,viewersCount,createdAt,broadcaster{roles{isPartner},id,login,displayName,language,profileImageURL(width:300)} }}}}"}';

var Base_obj;
var Base_Vod_obj;
Expand Down Expand Up @@ -32968,12 +32984,15 @@ https://video-weaver.sao03.hls.ttvnw.net/v1/playlist/C.m3u8 09:36:20.90
if (this.useHelix) {
this.cursor = tempObj.pagination.cursor;

if (!this.cursor || this.cursor === '') this.dataEnded = true;
} else {
if (!this.cursor || this.cursor === '') {
this.dataEnded = true;
}
} else if (!this.skipSetMax) {
this.MaxOffset = tempObj._total;

if (!tempObj[this.object]) this.dataEnded = true;
else if (typeof this.MaxOffset === 'undefined') {
if (!tempObj[this.object]) {
this.dataEnded = true;
} else if (typeof this.MaxOffset === 'undefined') {
if (tempObj[this.object].length < 90) this.dataEnded = true;
} else {
if (this.data.length >= this.MaxOffset) this.dataEnded = true;
Expand Down Expand Up @@ -33020,12 +33039,14 @@ https://video-weaver.sao03.hls.ttvnw.net/v1/playlist/C.m3u8 09:36:20.90
if (!cell || !cell.stream) {
return;
}

var id_cell = cell.stream.broadcaster.id;
var id = cell.stream.id;
var isNotBlocked = Screens_isNotBlocked(id_cell, cell.stream.game ? cell.stream.game.id : null, this.IsUser);

if (!this.idObject[id_cell] && isNotBlocked) {
if (!this.idObject[id] && isNotBlocked) {
this.itemsCount++;
this.idObject[id_cell] = 1;
this.idObject[id] = 1;

this.tempHtml.push(
Screens_createCellLive(this.row_id + '_' + this.column_id, this.ids, ScreensObj_LiveQueryCellArray(cell), this.screen)
Expand Down Expand Up @@ -33856,21 +33877,24 @@ https://video-weaver.sao03.hls.ttvnw.net/v1/playlist/C.m3u8 09:36:20.90
var key = Main_Live;

ScreenObj[key] = Screens_assign({
useHelix: true,
isQuery: true,
HeadersArray: Main_Bearer_Headers,
ids: Screens_ScreenIds('Live', key),
table: 'stream_table_live',
screen: key,
object: 'data',
object: 'edges',
ScreenName: 'Live',
key_pgDown: Main_Featured,
key_pgUp: Main_Clip,
CheckContentLang: 1,
ContentLang: '',
base_url: Main_helix_api + 'streams?first=' + Main_ItemsLimitMax,
base_post: liveQuery,
skipSetMax: true,
ItemsLimitMax: 30,
set_url: function() {
this.url =
this.base_url + (this.cursor ? '&after=' + this.cursor : '') + (Main_ContentLang !== '' ? '&language=' + Main_ContentLang : '');
this.post = this.base_post
.replace('%l', Main_ContentLang === '' ? '' : ',languages:' + Languages_Selected)
.replace('%c', this.cursor ? ', after: \\"' + this.cursor + '\\"' : '');
},
label_init: function() {
Sidepannel_SetDefaultLabels();
Expand All @@ -33885,6 +33909,34 @@ https://video-weaver.sao03.hls.ttvnw.net/v1/playlist/C.m3u8 09:36:20.90

ScreenObj[key] = Screens_assign(ScreenObj[key], Base_Live_obj);
ScreenObj[key].Set_Scroll();
ScreenObj[key].ItemsLimit = ScreenObj[key].ItemsLimitMax / 2;

ScreenObj[key].concatenate = function(responseObj) {
var hasData = responseObj.data && responseObj.data.streams && responseObj.data.streams && responseObj.data.streams.edges;

if (hasData) {
this.dataEnded = !responseObj.data.streams.pageInfo.hasNextPage;

responseObj = {
edges: responseObj.data.streams.edges
};

this.cursor =
responseObj && responseObj.edges && responseObj.edges.length ? responseObj.edges[responseObj.edges.length - 1].cursor : null;

var i = 0,
len = responseObj.edges.length;

for (i; i < len; i++) {
responseObj.edges[i].stream = responseObj.edges[i].node;
}
} else {
this.dataEnded = true;
this.cursor = null;
}

this.concatenateAfter(responseObj);
};
}

function ScreensObj_InitSearchLive() {
Expand Down Expand Up @@ -34145,7 +34197,6 @@ https://video-weaver.sao03.hls.ttvnw.net/v1/playlist/C.m3u8 09:36:20.90
ContentLang: '',
periodPos: Main_getItemInt('Clip_periodPos', 2),
base_post: topClipQuery,
periods: [topClipQuery],
set_url: function() {
this.dataEnded = true;
this.post = this.base_post
Expand Down Expand Up @@ -35351,7 +35402,7 @@ https://video-weaver.sao03.hls.ttvnw.net/v1/playlist/C.m3u8 09:36:20.90
cell.created_at, //12
cell.viewCount, //13
Main_addCommas(cell.viewCount), //14
cell.thumbnailURL, //15
cell.thumbnailURL ? cell.thumbnailURL.replace('/preview.jpg', '/preview-' + Main_VideoSize + '.jpg') : cell.thumbnailURL, //15
Main_videoCreatedAt(cell.createdAt), //16
cell.language, //17
cell.game_id //18
Expand Down
2 changes: 1 addition & 1 deletion release/githubio/version/version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"VersionBase":"3.0","publishVersionCode":367,"ApkUrl":"https://github.com/fgl27/SmartTwitchTV/releases/download/367/SmartTV_twitch_3_0_367.apk","WebVersion":"August 17 2024","WebTag":675,"changelog":[{"title":"WebVersion August 17","changes":["Update the emotes selection screen to improve performance, no magic can improve the performance here more than what is, simply some devices are capable of playing 8k but they can't handle multiple animated images, also some emotes servers are terribly optimized, for example, 7TV"]},{"title":"Version August 2024 Apk Version 3.0.367","changes":["Update Codec capability & Blocked codecs settings section to support devices that have the same name for multiple codecs","Android 10 and up now can see with codecs are hardware or software","Due to changes above the codec section was reseted if you make changes to it please redo yours changes","General visual improvements","Other General improvements"]},{"title":"Version August 2024 Apk Version 3.0.365","changes":["Add support for HEVC H.265 and AV1 Live and VOD (Settings Extra codec support), it still depends on the streamer to use and is on beta testing only some can","Update Codec capability & Blocked codecs settings section to support new codecs and to show better information","Improve display and sorting for player quality, sometimes it can come out of order from the server or have missing information","Fix Auto quality not playing stream with a resolution bigger than the device's current resolution","Home screen content will no longer show blocked content","Add new settings option \"Catch-up with low latency\" auto-adjust the latency if it is behind the expected target, by slowing or speeding the stream by 1%","Improve progress bar for lives playback, show proper duration if paused for too long","General app text improves, this is an open source app anyone that wanna improve app text or add translations can the process is simple","Other General improvements"]}]}
{"VersionBase":"3.0","publishVersionCode":367,"ApkUrl":"https://github.com/fgl27/SmartTwitchTV/releases/download/367/SmartTV_twitch_3_0_367.apk","WebVersion":"September 09 2024","WebTag":677,"changelog":[{"title":"WebVersion September 09","changes":["Fix animation lag in the Clip section, Twitch was sending images that were too big causing lags","General performance improvements"]},{"title":"WebVersion August 17","changes":["Update the emotes selection screen to improve performance, no magic can improve the performance here more than what is, simply some devices are capable of playing 8k but they can't handle multiple animated images, also some emotes servers are terribly optimized, for example, 7TV"]},{"title":"Version August 2024 Apk Version 3.0.367","changes":["Update Codec capability & Blocked codecs settings section to support devices that have the same name for multiple codecs","Android 10 and up now can see with codecs are hardware or software","Due to changes above the codec section was reseted if you make changes to it please redo yours changes","General visual improvements","Other General improvements"]},{"title":"Version August 2024 Apk Version 3.0.365","changes":["Add support for HEVC H.265 and AV1 Live and VOD (Settings Extra codec support), it still depends on the streamer to use and is on beta testing only some can","Update Codec capability & Blocked codecs settings section to support new codecs and to show better information","Improve display and sorting for player quality, sometimes it can come out of order from the server or have missing information","Fix Auto quality not playing stream with a resolution bigger than the device's current resolution","Home screen content will no longer show blocked content","Add new settings option \"Catch-up with low latency\" auto-adjust the latency if it is behind the expected target, by slowing or speeding the stream by 1%","Improve progress bar for lives playback, show proper duration if paused for too long","General app text improves, this is an open source app anyone that wanna improve app text or add translations can the process is simple","Other General improvements"]}]}

0 comments on commit d236944

Please sign in to comment.