Skip to content

Commit cc780fa

Browse files
committed
Merge branch 'development'
2 parents 2e23846 + 4135f50 commit cc780fa

34 files changed

+1418
-365
lines changed

_scripts/webpack.web.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ const config = {
107107
fs: 'empty',
108108
net: 'empty',
109109
tls: 'empty',
110-
child_process: 'empty'
110+
child_process: 'empty',
111+
dns: 'empty'
111112
},
112113
plugins: [
113114
// new WriteFilePlugin(),

package-lock.json

Lines changed: 285 additions & 111 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
"bulma-pro": "^0.2.0",
1818
"dateformat": "^4.4.1",
1919
"electron-context-menu": "^2.4.0",
20+
"http-proxy-agent": "^4.0.1",
21+
"https-proxy-agent": "^5.0.0",
2022
"jquery": "^3.5.1",
2123
"js-yaml": "^4.0.0",
2224
"lodash.debounce": "^4.0.8",
@@ -27,6 +29,7 @@
2729
"nedb": "^1.8.0",
2830
"opml-to-json": "1.0.1",
2931
"rss-parser": "^3.10.0",
32+
"socks-proxy-agent": "^5.0.0",
3033
"video.js": "7.10.2",
3134
"videojs-abloop": "^1.2.0",
3235
"videojs-contrib-quality-levels": "^2.0.9",
@@ -36,21 +39,21 @@
3639
"videojs-vtt-thumbnails-freetube": "0.0.15",
3740
"vue": "^2.6.12",
3841
"vue-electron": "^1.0.6",
39-
"vue-i18n": "^8.22.3",
42+
"vue-i18n": "^8.22.4",
4043
"vue-observe-visibility": "^1.0.0",
4144
"vue-router": "^3.4.9",
4245
"vuex": "^3.6.0",
4346
"xml2json": "^0.12.0",
4447
"youtube-chat": "^1.1.0",
4548
"youtube-suggest": "^1.1.0",
4649
"yt-channel-info": "^1.2.0",
47-
"yt-comment-scraper": "^1.3.11",
48-
"yt-dash-manifest-generator": "^1.1.0",
49-
"yt-trending-scraper": "1.0.4",
50+
"yt-comment-scraper": "^2.0.0",
51+
"yt-dash-manifest-generator": "1.1.0",
52+
"yt-trending-scraper": "1.1.0",
5053
"yt-xml2vtt": "^1.2.0",
51-
"ytdl-core": "^4.4.3",
54+
"ytdl-core": "^4.4.4",
5255
"ytpl": "^2.0.4",
53-
"ytsr": "^3.2.1"
56+
"ytsr": "^3.2.2"
5457
},
5558
"description": "A private YouTube client",
5659
"devDependencies": {
@@ -59,29 +62,29 @@
5962
"@babel/plugin-proposal-object-rest-spread": "^7.12.1",
6063
"@babel/preset-env": "^7.12.11",
6164
"@babel/preset-typescript": "^7.12.7",
62-
"@typescript-eslint/eslint-plugin": "^4.13.0",
63-
"@typescript-eslint/parser": "^4.13.0",
65+
"@typescript-eslint/eslint-plugin": "^4.14.0",
66+
"@typescript-eslint/parser": "^4.14.0",
6467
"acorn": "^8.0.4",
6568
"babel-eslint": "^10.1.0",
6669
"babel-loader": "^8.2.2",
6770
"copy-webpack-plugin": "6.4.0",
6871
"css-loader": "^5.0.1",
6972
"devtron": "^1.4.0",
70-
"electron": "^11.1.1",
73+
"electron": "11.1.1",
7174
"electron-builder": "^22.9.1",
7275
"electron-builder-squirrel-windows": "^22.10.4",
7376
"electron-debug": "^3.2.0",
7477
"electron-rebuild": "^2.3.4",
75-
"eslint": "^7.17.0",
76-
"eslint-config-prettier": "^7.1.0",
78+
"eslint": "^7.18.0",
79+
"eslint-config-prettier": "^7.2.0",
7780
"eslint-config-standard": "^16.0.2",
7881
"eslint-plugin-import": "^2.22.1",
7982
"eslint-plugin-node": "^11.1.0",
8083
"eslint-plugin-prettier": "^3.3.1",
8184
"eslint-plugin-promise": "^4.2.1",
8285
"eslint-plugin-standard": "^5.0.0",
8386
"eslint-plugin-vue": "^7.4.1",
84-
"fast-glob": "^3.2.4",
87+
"fast-glob": "^3.2.5",
8588
"file-loader": "^6.2.0",
8689
"html-webpack-plugin": "^4.5.1",
8790
"jest": "^26.6.3",
@@ -90,14 +93,14 @@
9093
"node-loader": "^1.0.2",
9194
"npm-run-all": "^4.1.5",
9295
"prettier": "^2.2.1",
93-
"sass": "^1.32.4",
96+
"sass": "^1.32.5",
9497
"sass-loader": "^10.1.1",
9598
"style-loader": "^2.0.0",
9699
"tree-kill": "1.2.2",
97100
"typescript": "^4.1.3",
98101
"url-loader": "^4.1.1",
99102
"vue-devtools": "^5.1.4",
100-
"vue-eslint-parser": "^7.3.0",
103+
"vue-eslint-parser": "^7.4.1",
101104
"vue-loader": "^15.9.6",
102105
"vue-style-loader": "^4.1.2",
103106
"vue-template-compiler": "^2.6.12",
@@ -143,5 +146,5 @@
143146
"test": "run-s rebuild:node pack:workers jest",
144147
"test:watch": "run-s rebuild:node pack:workers jest:watch"
145148
},
146-
"version": "0.11.1"
149+
"version": "0.11.2"
147150
}

src/renderer/components/data-settings/data-settings.js

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import FtPrompt from '../ft-prompt/ft-prompt.vue'
88

99
import { remote } from 'electron'
1010
import fs from 'fs'
11-
import opmlToJson from 'opml-to-json'
11+
import { opmlToJSON } from 'opml-to-json'
1212
import ytch from 'yt-channel-info'
1313

1414
const app = remote.app
@@ -357,17 +357,7 @@ export default Vue.extend({
357357
return
358358
}
359359

360-
opmlToJson(data, async (err, json) => {
361-
if (err) {
362-
console.log(err)
363-
console.log('error reading')
364-
const message = this.$t('Settings.Data Settings.Invalid subscriptions file')
365-
this.showToast({
366-
message: `${message}: ${err}`
367-
})
368-
return
369-
}
370-
360+
opmlToJSON(data).then((json) => {
371361
let feedData = json.children[0].children
372362

373363
if (typeof feedData === 'undefined') {
@@ -442,6 +432,13 @@ export default Vue.extend({
442432
this.updateShowProgressBar(false)
443433
}
444434
})
435+
}).catch((err) => {
436+
console.log(err)
437+
console.log('error reading')
438+
const message = this.$t('Settings.Data Settings.Invalid subscriptions file')
439+
this.showToast({
440+
message: `${message}: ${err}`
441+
})
445442
})
446443
})
447444
})

src/renderer/components/ft-video-player/ft-video-player.js

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ export default Vue.extend({
7676
maxFramerate: 0,
7777
activeSourceList: [],
7878
mouseTimeout: null,
79+
touchTimeout: null,
80+
lastTouchTime: null,
7981
dataSetup: {
8082
fluid: true,
8183
nativeTextTracks: false,
@@ -116,7 +118,6 @@ export default Vue.extend({
116118
2.25,
117119
2.5,
118120
2.75,
119-
2.75,
120121
3
121122
]
122123
}
@@ -284,7 +285,7 @@ export default Vue.extend({
284285
return
285286
}
286287

287-
if (videoWidth < videoHeight) {
288+
if ((videoWidth - videoHeight) <= 240) {
288289
this.player.fluid(false)
289290
this.player.aspectRatio('16:9')
290291
}
@@ -719,6 +720,25 @@ export default Vue.extend({
719720
}
720721
},
721722

723+
handleTouchStart: function (event) {
724+
const v = this
725+
this.touchPauseTimeout = setTimeout(() => {
726+
v.togglePlayPause()
727+
}, 1000)
728+
729+
const touchTime = new Date()
730+
731+
if (this.lastTouchTime !== null && (touchTime.getTime() - this.lastTouchTime.getTime()) < 250) {
732+
this.toggleFullscreen()
733+
}
734+
735+
this.lastTouchTime = touchTime
736+
},
737+
738+
handleTouchEnd: function (event) {
739+
clearTimeout(this.touchPauseTimeout)
740+
},
741+
722742
keyboardShortcutHandler: function (event) {
723743
const activeInputs = $('.ft-input')
724744

src/renderer/components/ft-video-player/ft-video-player.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
controls
88
preload="auto"
99
:data-setup="JSON.stringify(dataSetup)"
10+
@touchstart="handleTouchStart"
11+
@touchend="handleTouchEnd"
1012
>
1113
<source
1214
v-for="(source, index) in activeSourceList"

src/renderer/components/general-settings/general-settings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export default Vue.extend({
138138
}
139139
},
140140
mounted: function () {
141-
const requestUrl = 'https://instances.invidio.us/instances.json'
141+
const requestUrl = 'https://api.invidious.io/instances.json'
142142
$.getJSON(requestUrl, (response) => {
143143
console.log(response)
144144
const instances = response.filter((instance) => {

src/renderer/components/general-settings/general-settings.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,13 @@
9797
@input="handleInvidiousInstanceInput"
9898
/>
9999
</ft-flex-box>
100+
<ft-flex-box>
101+
<a
102+
href="https://api.invidious.io"
103+
>
104+
{{ $t('Settings.General Settings.View all Invidious instance information') }}
105+
</a>
106+
</ft-flex-box>
100107
</ft-card>
101108
</template>
102109

0 commit comments

Comments
 (0)