Skip to content

Commit 8578bd9

Browse files
authored
Merge pull request #13200 from TeamNewPipe/release-0.28.3
Release 0.28.3
2 parents addf1e2 + 13577f5 commit 8578bd9

File tree

27 files changed

+196
-150
lines changed

27 files changed

+196
-150
lines changed

app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ android {
4242
minSdk = 21
4343
targetSdk = 35
4444

45-
versionCode = System.getProperty("versionCodeOverride")?.toInt() ?: 1007
45+
versionCode = System.getProperty("versionCodeOverride")?.toInt() ?: 1008
4646

47-
versionName = "0.28.2"
47+
versionName = "0.28.3"
4848
System.getProperty("versionNameSuffix")?.let { versionNameSuffix = it }
4949

5050
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

app/src/main/java/org/schabi/newpipe/player/Player.java

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -567,11 +567,7 @@ private static PlayQueue getPlayQueueFromCache(@NonNull final Intent intent) {
567567
if (queueCache == null) {
568568
return null;
569569
}
570-
final PlayQueue newQueue = SerializedCache.getInstance().take(queueCache, PlayQueue.class);
571-
if (newQueue == null) {
572-
return null;
573-
}
574-
return newQueue;
570+
return SerializedCache.getInstance().take(queueCache, PlayQueue.class);
575571
}
576572

577573
private void initUIsForCurrentPlayerType() {
@@ -2041,7 +2037,7 @@ public MediaSource sourceOf(final PlayQueueItem item, final StreamInfo info) {
20412037
// resolver was called when the app was in background, the app will only stream audio when
20422038
// the user come back to the app and will never fetch the video stream.
20432039
// Note that the video is not fetched when the app is in background because the video
2044-
// renderer is fully disabled (see useVideoSource method), except for HLS streams
2040+
// renderer is fully disabled (see useVideoAndSubtitles method), except for HLS streams
20452041
// (see https://github.com/google/ExoPlayer/issues/9282).
20462042
return videoResolver.resolve(info);
20472043
}
@@ -2214,13 +2210,23 @@ public void useVideoAndSubtitles(final boolean videoAndSubtitlesEnabled) {
22142210

22152211
isAudioOnly = !videoAndSubtitlesEnabled;
22162212

2213+
final var item = playQueue.getItem();
2214+
final boolean hasPendingRecovery =
2215+
item != null && item.getRecoveryPosition() != PlayQueueItem.RECOVERY_UNSET;
2216+
final boolean hasTimeline =
2217+
!exoPlayerIsNull() && !simpleExoPlayer.getCurrentTimeline().isEmpty();
2218+
2219+
22172220
getCurrentStreamInfo().ifPresentOrElse(info -> {
22182221
// In case we don't know the source type, fall back to either video-with-audio, or
22192222
// audio-only source type
22202223
final SourceType sourceType = videoResolver.getStreamSourceType()
22212224
.orElse(SourceType.VIDEO_WITH_AUDIO_OR_AUDIO_ONLY);
22222225

2223-
setRecovery(); // making sure to save playback position before reloadPlayQueueManager()
2226+
if (hasTimeline || !hasPendingRecovery) {
2227+
// making sure to save playback position before reloadPlayQueueManager()
2228+
setRecovery();
2229+
}
22242230

22252231
if (playQueueManagerReloadingNeeded(sourceType, info, getVideoRendererIndex())) {
22262232
reloadPlayQueueManager();
@@ -2233,7 +2239,10 @@ The current metadata may be null sometimes (for e.g. when using an unstable conn
22332239
Reload the play queue manager in this case, which is the behavior when we don't know the
22342240
index of the video renderer or playQueueManagerReloadingNeeded returns true
22352241
*/
2236-
setRecovery(); // making sure to save playback position before reloadPlayQueueManager()
2242+
if (hasTimeline || !hasPendingRecovery) {
2243+
// making sure to save playback position before reloadPlayQueueManager()
2244+
setRecovery();
2245+
}
22372246
reloadPlayQueueManager();
22382247
});
22392248

app/src/main/res/values-az/strings.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@
397397
<string name="error_http_unsupported_range">Server çox iş parçalı endirmələri qəbul etmir, @string/msg_threads = 1 ilə yenidən cəhd edin</string>
398398
<string name="delete_downloaded_files_confirm">Bütün endirilmiş fayllar diskdən silinsin\?</string>
399399
<string name="max_retry_msg">Maksimum təkrar cəhdlər</string>
400-
<string name="remove_watched_popup_warning">Pleylistə əlavə olunandan əvvəl və sonrakı baxılmış videolar silinəcək. \nSiz əminsiniz? Bu geri qaytarıla bilməz!</string>
400+
<string name="remove_watched_popup_warning">Pleylistə əlavə olunandan əvvəl və sonrakı baxılan yayımlar silinəcək. \nSiz əminsiniz?</string>
401401
<string name="feed_groups_header_title">Kanal qrupları</string>
402402
<string name="feed_new_items">Yeni axın elementləri</string>
403403
<string name="feed_update_threshold_summary">Abunəlik köhnəlmiş hesab edilənə qədərki son yeniləmədən sonrakı vaxt — %s</string>
@@ -528,7 +528,7 @@
528528
</plurals>
529529
<string name="progressive_load_interval_exoplayer_default">ExoPlayer standartı</string>
530530
<string name="feed_use_dedicated_fetch_method_title">Mövcud olduqda xüsusi axından al</string>
531-
<string name="remove_watched_popup_title">Baxılmış videolar silinsin?</string>
531+
<string name="remove_watched_popup_title">Baxılan yayımlar silinsin?</string>
532532
<string name="remove_watched">İzləniləni sil</string>
533533
<string name="downloads_storage_use_saf_title">Sistem qovluğu seçicisini (SAF) istifadə et</string>
534534
<string name="error_timeout">Bağlantı fasiləsi</string>

app/src/main/res/values-bg/strings.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@
464464
\nЕвентуално може да бъде поддържано в бъдещи версии.</string>
465465
<string name="processing_may_take_a_moment">Обработка… Ще отнеме момент</string>
466466
<string name="new_seek_duration_toast">Поради ограничения в ExoPlayer, стъпката за превъртане е зададена на %d секунди</string>
467-
<string name="remove_watched_popup_warning">Видата, които са били изгледани преди и след добавянето към плейлиста ще бъдат премахнати. \nСигурни ли сте? Това не може да бъде отменено!</string>
467+
<string name="remove_watched_popup_warning">Потоците, които са били гледани преди и след добавянето им към плейлиста, ще бъдат премахнати. \nСигурни ли сте?</string>
468468
<string name="downloads_storage_use_saf_summary">„Storage Access Framework“ позволява изтегляния във външна SD-карта</string>
469469
<string name="start_downloads">Започни изтеглянията</string>
470470
<string name="close">Затвори</string>
@@ -500,7 +500,7 @@
500500
<string name="channel_created_by">Създаден от %s</string>
501501
<string name="paid_content">Съдържанието е достъпно само за хора, които са си платили, затова не може да бъде гледано или изтеглено с NewPipe.</string>
502502
<string name="youtube_music_premium_content">Това видео е достъпно за абонати на YouTube Music Premium, затова не може да бъде гледано или изтеглено с NewPipe.</string>
503-
<string name="remove_watched_popup_title">Премахни изгледаните видеа?</string>
503+
<string name="remove_watched_popup_title">Премахни изгледаните потоци?</string>
504504
<string name="remove_watched_popup_partially_watched_streams">Да, както и само частично изгледаните видеа</string>
505505
<string name="subscribers_count_not_available">Брой на абонати не е наличен</string>
506506
<string name="peertube_instance_add_exists">Инстанцията вече съществува</string>

app/src/main/res/values-cs/strings.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -518,9 +518,9 @@
518518
\n
519519
\nPokud jej chcete vidět, povolte „%1$s“ v nastavení.</string>
520520
<string name="remove_watched_popup_partially_watched_streams">Ano, i zčásti zhlédnutá videa</string>
521-
<string name="remove_watched_popup_title">Odstranit zhlédnutá videa?</string>
522-
<string name="remove_watched">Odstranit zhlédnutá</string>
523-
<string name="remove_watched_popup_warning">Videa, která jste zhlédli před a po jejich přidání do playlistu, budou odstraněna. \nJste se jisti? Tato akce je nevratná!</string>
521+
<string name="remove_watched_popup_title">Odstranit zhlédnuté streamy?</string>
522+
<string name="remove_watched">Odstranit zhlédnuté</string>
523+
<string name="remove_watched_popup_warning">Streamy, které jste zhlédli před a po jejich přidání do playlistu, budou odstraněny. \nJste se jisti?</string>
524524
<string name="show_original_time_ago_summary">Původní texty služeb budou viditelné u položek streamů</string>
525525
<string name="show_original_time_ago_title">U položek zobrazit původní čas</string>
526526
<string name="youtube_restricted_mode_enabled_title">Zapnout „Omezený režim“ YouTube</string>

app/src/main/res/values-de/strings.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -516,10 +516,10 @@
516516
<string name="restricted_video">Dieses Video ist altersbeschränkt.
517517
\n
518518
\nAktiviere in den Einstellungen „%1$s“, falls du diese sehen möchtest.</string>
519-
<string name="remove_watched_popup_warning">Videos, die vor und nach dem Hinzufügen zur Wiedergabeliste angeschaut wurden, werden entfernt. \nBist du sicher? Dies kann nicht rückgängig gemacht werden!</string>
520-
<string name="remove_watched_popup_partially_watched_streams">Ja, und teilweise gesehene Videos</string>
519+
<string name="remove_watched_popup_warning">Streams, die vor und nach dem Hinzufügen zur Wiedergabeliste angeschaut wurden, werden entfernt. \nBist du sicher?</string>
520+
<string name="remove_watched_popup_partially_watched_streams">Teilweise angesehene Streams entfernen</string>
521521
<string name="remove_watched">Gesehene entfernen</string>
522-
<string name="remove_watched_popup_title">Gesehene Videos entfernen?</string>
522+
<string name="remove_watched_popup_title">Gesehene Streams entfernen?</string>
523523
<string name="show_original_time_ago_title">Originalzeit vor Elementen anzeigen</string>
524524
<string name="show_original_time_ago_summary">Originaltexte von Diensten werden in Stream-Elementen sichtbar sein</string>
525525
<string name="youtube_restricted_mode_enabled_title">YouTubes „Eingeschränkten Modus“ aktivieren</string>

app/src/main/res/values-el/strings.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,8 @@
525525
</plurals>
526526
<string name="new_seek_duration_toast">Λόγω περιορισμών του ExoPlayer, η διάρκεια αναζήτησης ορίστηκε στα %d δευτερόλεπτα</string>
527527
<string name="remove_watched_popup_partially_watched_streams">Ναι. Και τα μερικώς θεαθέντα βίντεο</string>
528-
<string name="remove_watched_popup_warning">Τα βίντεο που εθεάθησαν πριν και αφού προστέθηκαν στη λίστα αναπαραγωγής θα απομακρυνθούν \nΕίστε σίγουρος; Δεν μπορεί να αναιρεθεί!</string>
529-
<string name="remove_watched_popup_title">Απομάκρυνση θεαθέντων βίντεο;</string>
528+
<string name="remove_watched_popup_warning">Οι ροές που εθεάθησαν πριν και αφού προστέθηκαν στη λίστα αναπαραγωγής θα απομακρυνθούν \nΕίστε σίγουρος;</string>
529+
<string name="remove_watched_popup_title">Απομάκρυνση θεαθέντων ροών;</string>
530530
<string name="remove_watched">Απομάκρυνση όσων θεάθησαν</string>
531531
<string name="app_language_title">Γλώσσα εφαρμογής</string>
532532
<string name="choose_instance_prompt">Επιλογή μιας instance</string>
@@ -614,7 +614,7 @@
614614
\nΘέλετε να απεγγραφείτε από αυτό το κανάλι;</string>
615615
<string name="feed_load_error_account_info">Αδυναμία φόρτωσης τροφοδοσίας για \'%s\'.</string>
616616
<string name="feed_load_error">Σφάλμα φόρτωσης τροφοδοσίας</string>
617-
<string name="downloads_storage_use_saf_summary_api_29">Από το Android 10 και μετά, μόνο το SAF υποστηρίζεται</string>
617+
<string name="downloads_storage_use_saf_summary_api_29">Από το Android 10 και μετά, μόνο το Πλαίσιο Πρόσβασης Αποθήκευσης υποστηρίζεται</string>
618618
<string name="downloads_storage_ask_summary_no_saf_notice">Θα ερωτηθείτε πού να αποθηκεύσετε κάθε λήψη</string>
619619
<string name="no_dir_yet">Δεν έχει ορισθεί φάκελος λήψεων ακόμα, eπιλέξτε τον προεπιλεγμένο φάκελο τώρα</string>
620620
<string name="metadata_host">Host</string>

app/src/main/res/values-et/strings.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,9 +530,9 @@
530530
<item quantity="one">%d sekund</item>
531531
<item quantity="other">%d sekundit</item>
532532
</plurals>
533-
<string name="remove_watched_popup_warning">Sellega eemaldame vaadatud videod ja esitusloendisse lisatud videod. \nKas sa oled kindel? Seda tegevust ei saa hiljem tagasi pöörata!</string>
533+
<string name="remove_watched_popup_warning">Sellega eemaldame vaadatud meediavood ja esitusloendisse lisatud sisu. \nKas sa oled kindel?</string>
534534
<string name="remove_watched_popup_partially_watched_streams">Jah, sealhulgas videod, mille vaatmine jäi pooleli</string>
535-
<string name="remove_watched_popup_title">Kas eemaldame vaadatud videod?</string>
535+
<string name="remove_watched_popup_title">Kas eemaldame vaadatud meediavood?</string>
536536
<string name="remove_watched">Eemalda vaadatud videod</string>
537537
<string name="systems_language">Kasuta süsteemi keelt</string>
538538
<string name="app_language_title">Rakenduse keel</string>

app/src/main/res/values-eu/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@
706706
<string name="metadata_subscribers">Harpidedunak</string>
707707
<string name="unknown_audio_track">Ezezaguna</string>
708708
<string name="volume">Bolumena</string>
709-
<string name="use_exoplayer_decoder_fallback_title">Erabili ExoPlayer-en deskodetzailearen ordezko eginbidea</string>
709+
<string name="use_exoplayer_decoder_fallback_title">Erabili ExoPlayer-en deskodetzailearen ordezko ezaugarria</string>
710710
<string name="none">Bat ere ez</string>
711711
<string name="loading_metadata_title">Metadatuak kargatzen…</string>
712712
<string name="settings_category_exoplayer_summary">Kudeatu ExoPlayer-en ezarpen batzuk. Aldaketa hauek eragina izan dezaten, erreproduzitzailea berrabiarazi behar da</string>

0 commit comments

Comments
 (0)