Skip to content

Commit 64a1c22

Browse files
committed
Merge branch 'v0.13.1-hotfix'
2 parents b1c46c6 + 3a9c85c commit 64a1c22

File tree

20 files changed

+503
-240
lines changed

20 files changed

+503
-240
lines changed

_scripts/build.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ const config = {
6969
icon: '_icons/icon.svg',
7070
target: ['deb', 'zip', 'apk', 'rpm', 'AppImage', 'pacman'],
7171
},
72+
// See the following issues for more information
73+
// https://github.com/jordansissel/fpm/issues/1503
74+
// https://github.com/jgraph/drawio-desktop/issues/259
75+
rpm: {
76+
fpm: [`--rpm-rpmbuild-define=_build_id_links none`]
77+
},
7278
deb: {
7379
depends: [
7480
"libgtk-3-0",

package-lock.json

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

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@
4848
"xml2json": "^0.12.0",
4949
"youtube-chat": "git+https://github.com/IcedCoffeee/youtube-chat.git",
5050
"youtube-suggest": "^1.1.2",
51-
"yt-channel-info": "^2.1.1",
52-
"yt-comment-scraper": "^4.0.1",
51+
"yt-channel-info": "^2.2.0",
52+
"yt-comment-scraper": "^4.0.3",
5353
"yt-dash-manifest-generator": "1.1.0",
5454
"yt-trending-scraper": "^2.0.0",
55-
"ytdl-core": "^4.8.0",
55+
"ytdl-core": "^4.8.2",
5656
"ytpl": "^2.2.1",
5757
"ytsr": "^3.5.0"
5858
},
@@ -148,5 +148,5 @@
148148
"test": "run-s rebuild:node pack:workers jest",
149149
"test:watch": "run-s rebuild:node pack:workers jest:watch"
150150
},
151-
"version": "0.13.0"
151+
"version": "0.13.1"
152152
}

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

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,10 @@ export default Vue.extend({
241241
}, 200)
242242
}
243243

244+
if (this.useSponsorBlock) {
245+
this.initializeSponsorBlock()
246+
}
247+
244248
$(document).on('keydown', this.keyboardShortcutHandler)
245249

246250
this.player.on('mousemove', this.hideMouseTimeout)
@@ -286,18 +290,22 @@ export default Vue.extend({
286290
}
287291
})
288292
}
289-
setTimeout(() => { this.fetchSponsorBlockInfo() }, 100)
290293
},
291294

292-
fetchSponsorBlockInfo() {
293-
if (this.useSponsorBlock) {
294-
this.$store.dispatch('sponsorBlockSkipSegments', {
295-
videoId: this.videoId,
296-
categories: ['sponsor']
297-
}).then((skipSegments) => {
295+
initializeSponsorBlock() {
296+
this.$store.dispatch('sponsorBlockSkipSegments', {
297+
videoId: this.videoId,
298+
categories: ['sponsor']
299+
}).then((skipSegments) => {
300+
if (skipSegments.length === 0) {
301+
return
302+
}
303+
304+
this.player.ready(() => {
298305
this.player.on('timeupdate', () => {
299306
this.skipSponsorBlocks(skipSegments)
300307
})
308+
301309
skipSegments.forEach(({
302310
category,
303311
segment: [startTime, endTime]
@@ -309,11 +317,12 @@ export default Vue.extend({
309317
})
310318
})
311319
})
312-
}
320+
})
313321
},
314322

315323
skipSponsorBlocks(skipSegments) {
316324
const currentTime = this.player.currentTime()
325+
const duration = this.player.duration()
317326
let newTime = null
318327
let skippedCategory = null
319328
skipSegments.forEach(({ category, segment: [startTime, endTime] }) => {
@@ -322,7 +331,7 @@ export default Vue.extend({
322331
skippedCategory = category
323332
}
324333
})
325-
if (newTime !== null) {
334+
if (newTime !== null && Math.abs(duration - currentTime) > 0.500) {
326335
if (this.sponsorBlockShowSkippedToast) {
327336
this.showSkippedSponsorSegmentInformation(skippedCategory)
328337
}

src/renderer/components/watch-video-comments/watch-video-comments.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,15 @@
3737
cursor: pointer;
3838
}
3939

40-
.commentAuthor {
40+
.commentAuthorWrapper {
4141
font-weight: bold;
4242
font-size: 14px;
4343
margin-left: 68px;
4444
margin-top: 0px;
45+
}
46+
47+
48+
.commentAuthor {
4549
cursor: pointer;
4650
}
4751

src/renderer/components/watch-video-comments/watch-video-comments.vue

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,14 @@
4848
@click="goToChannel(comment.authorLink)"
4949
>
5050
<p
51-
class="commentAuthor"
52-
@click="goToChannel(comment.authorLink)"
51+
class="commentAuthorWrapper"
5352
>
54-
{{ comment.author }}
53+
<span
54+
class="commentAuthor"
55+
@click="goToChannel(comment.authorLink)"
56+
>
57+
{{ comment.author }}
58+
</span>
5559
<span class="commentDate">
5660
{{ comment.time }}
5761
</span>
@@ -108,8 +112,13 @@
108112
:src="reply.authorThumb"
109113
class="commentThumbnail"
110114
>
111-
<p class="commentAuthor">
112-
{{ reply.author }}
115+
<p class="commentAuthorWrapper">
116+
<span
117+
class="commentAuthor"
118+
@click="goToChannel(reply.authorLink)"
119+
>
120+
{{ reply.author }}
121+
</span>
113122
<span class="commentDate">
114123
{{ reply.time }}
115124
</span>

src/renderer/store/modules/ytdl.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,9 @@ const actions = {
200200
if (searchSettings.duration !== '') {
201201
let filterValue = null
202202
if (searchSettings.duration === 'short') {
203-
filterValue = 'Short (< 4 minutes)'
203+
filterValue = 'Under 4 minutes'
204204
} else if (searchSettings.duration === 'long') {
205-
filterValue = 'Long (> 20 minutes)'
205+
filterValue = 'Over 20 minutes'
206206
}
207207

208208
filterUrl = filter.get('Duration').get(filterValue).url
@@ -216,7 +216,7 @@ const actions = {
216216

217217
switch (searchSettings.time) {
218218
case 'hour':
219-
filterValue = 'Last Hour'
219+
filterValue = 'Last hour'
220220
break
221221
case 'today':
222222
filterValue = 'Today'

src/renderer/views/Trending/Trending.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,13 @@ export default Vue.extend({
6868
this.isLoading = true
6969

7070
console.log('getting local trending')
71-
ytrend.scrape_trending_page(this.region).then((result) => {
71+
const param = {
72+
parseCreatorOnRise: false,
73+
page: 'default',
74+
geoLocation: this.region
75+
}
76+
77+
ytrend.scrape_trending_page(param).then((result) => {
7278
const returnData = result.filter((item) => {
7379
return item.type === 'video' || item.type === 'channel' || item.type === 'playlist'
7480
})

static/locales/cs.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,13 @@ Settings:
309309
Proxy Protocol: Protokol proxy
310310
Error getting network information. Is your proxy configured properly?: Chyba při
311311
získávání informací o síti. Je vaše proxy správně nakonfigurována?
312+
SponsorBlock Settings:
313+
Notify when sponsor segment is skipped: Upozornit, když je sponzorový segment
314+
přeskočen
315+
'SponsorBlock API Url (Default is https://sponsor.ajay.app)': Url SponsorBlock
316+
API (Výchozí je https://sponsor.ajay.app)
317+
Enable SponsorBlock: Zapnout SponsorBlock
318+
SponsorBlock Settings: Nastavení SponsorBlock
312319
About:
313320
#On About page
314321
About: 'O aplikaci'
@@ -525,6 +532,14 @@ Video:
525532
Video has been removed from your saved list: Video bylo odstraněno z vašeho uloženého
526533
seznamu
527534
translated from English: přeloženo z angličtiny
535+
Sponsor Block category:
536+
music offtopic: hudební offtopic
537+
interaction: interakce
538+
self-promotion: self-promotion
539+
outro: závěr
540+
intro: úvod
541+
sponsor: sponzor
542+
Skipped segment: Přeskočený segment
528543
Videos:
529544
#& Sort By
530545
Sort By:

static/locales/de-DE.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ Settings:
129129
Check for Updates: Nach Aktualisierungen suchen
130130
View all Invidious instance information: Alle Informationen zur Invidious-Instanz
131131
anzeigen
132+
System Default: Systemstandart
132133
Theme Settings:
133134
Theme Settings: Thema-Einstellungen
134135
Match Top Bar with Main Color: Obere Leiste an Hauptfarbe anpassen
@@ -190,6 +191,7 @@ Settings:
190191
4k: 4k
191192
8k: 8k
192193
Playlist Next Video Interval: Zeit zwischen automatischer Videowiedergabe
194+
Next Video Interval: Zeit bis zum nächsten Video
193195
Subscription Settings:
194196
Subscription Settings: Abonnement-Einstellungen
195197
Hide Videos on Watch: Verstecke Videos bei Wiedergabe
@@ -317,6 +319,13 @@ Settings:
317319
Proxy Protocol: Proxy-Protokoll
318320
Enable Tor / Proxy: Tor / Proxy aktivieren
319321
Proxy Settings: Proxy-Einstellungen
322+
SponsorBlock Settings:
323+
Notify when sponsor segment is skipped: Melden, falls ein Sponsorsegment übersprungen
324+
wird
325+
'SponsorBlock API Url (Default is https://sponsor.ajay.app)': SponsorBlock API
326+
URL (Standard ist https://sponsor.ajay.app)
327+
Enable SponsorBlock: Aktiviere SponsorBlock
328+
SponsorBlock Settings: SponsorBlock-Einstellungen
320329
About:
321330
#On About page
322331
About: Über
@@ -508,6 +517,14 @@ Video:
508517
Video has been saved: Video wurde gespeichert
509518
Save Video: Video speichern
510519
translated from English: Aus dem Englischen übersetzt
520+
Sponsor Block category:
521+
music offtopic: Musik (Offtopic)
522+
interaction: Interaktion
523+
self-promotion: Eigenwerbung
524+
outro: Outro
525+
intro: Intro
526+
sponsor: Sponsor
527+
Skipped segment: Segment übersprungen
511528
Videos:
512529
#& Sort By
513530
Sort By:
@@ -704,3 +721,4 @@ Hashtags have not yet been implemented, try again later: Hashtags wurden noch ni
704721
implementiert, bitte versuche es später noch einmal
705722
Unknown YouTube url type, cannot be opened in app: Unbekannte YouTube-Adresse, kann
706723
in FreeTube nicht geöffnet werden
724+
Open New Window: Neues Fenster öffnen

0 commit comments

Comments
 (0)