mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2026-06-01 10:12:11 +00:00
Merge branch 'dev' into refactor
Had to make some adjustments to make https://github.com/TeamNewPipe/NewPipe/pull/12188 work
This commit is contained in:
@@ -33,11 +33,11 @@ module.exports = async ({github, context}) => {
|
||||
|
||||
// Regex for finding images (simple variant) 
|
||||
const REGEX_USER_CONTENT_IMAGE_LOOKUP = /\!\[([^\]]*)\]\((https:\/\/[-a-z0-9]+\.githubusercontent\.com\/\d+\/[-0-9a-f]{32,512}\.(jpg|gif|png))\)/gm;
|
||||
const REGEX_ASSETS_IMAGE_LOCKUP = /\!\[([^\]]*)\]\((https:\/\/github\.com\/[-\w\d]+\/[-\w\d]+\/assets\/\d+\/[\-0-9a-f]{32,512})\)/gm;
|
||||
const REGEX_ASSETS_IMAGE_LOOKUP = /\!\[([^\]]*)\]\((https:\/\/github\.com\/(?:user-attachments\/assets|[-\w\d]+\/[-\w\d]+\/assets\/\d+)\/[\-0-9a-f]{32,512})\)/gm;
|
||||
|
||||
// Check if we found something
|
||||
let foundSimpleImages = REGEX_USER_CONTENT_IMAGE_LOOKUP.test(initialBody)
|
||||
|| REGEX_ASSETS_IMAGE_LOCKUP.test(initialBody);
|
||||
|| REGEX_ASSETS_IMAGE_LOOKUP.test(initialBody);
|
||||
if (!foundSimpleImages) {
|
||||
console.log('Found no simple images to process');
|
||||
return;
|
||||
@@ -52,7 +52,7 @@ module.exports = async ({github, context}) => {
|
||||
|
||||
// Try to find and replace the images with minimized ones
|
||||
let newBody = await replaceAsync(initialBody, REGEX_USER_CONTENT_IMAGE_LOOKUP, minimizeAsync);
|
||||
newBody = await replaceAsync(newBody, REGEX_ASSETS_IMAGE_LOCKUP, minimizeAsync);
|
||||
newBody = await replaceAsync(newBody, REGEX_ASSETS_IMAGE_LOOKUP, minimizeAsync);
|
||||
|
||||
if (!wasMatchModified) {
|
||||
console.log('Nothing was modified. Skipping update');
|
||||
|
||||
+2
-2
@@ -27,9 +27,9 @@ android {
|
||||
if (System.properties.containsKey('versionCodeOverride')) {
|
||||
versionCode System.getProperty('versionCodeOverride') as Integer
|
||||
} else {
|
||||
versionCode 1003
|
||||
versionCode 1004
|
||||
}
|
||||
versionName "0.27.6"
|
||||
versionName "0.27.7"
|
||||
if (System.properties.containsKey('versionNameSuffix')) {
|
||||
versionNameSuffix System.getProperty('versionNameSuffix')
|
||||
}
|
||||
|
||||
@@ -194,9 +194,6 @@ public abstract class BaseLocalListFragment<I, N> extends BaseStateFragment<I>
|
||||
if (itemsList != null) {
|
||||
animateHideRecyclerViewAllowingScrolling(itemsList);
|
||||
}
|
||||
if (headerRootBinding != null) {
|
||||
animate(headerRootBinding.getRoot(), false, 200);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -205,9 +202,6 @@ public abstract class BaseLocalListFragment<I, N> extends BaseStateFragment<I>
|
||||
if (itemsList != null) {
|
||||
animate(itemsList, true, 200);
|
||||
}
|
||||
if (headerRootBinding != null) {
|
||||
animate(headerRootBinding.getRoot(), true, 200);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -253,9 +247,6 @@ public abstract class BaseLocalListFragment<I, N> extends BaseStateFragment<I>
|
||||
if (itemsList != null) {
|
||||
animateHideRecyclerViewAllowingScrolling(itemsList);
|
||||
}
|
||||
if (headerRootBinding != null) {
|
||||
animate(headerRootBinding.getRoot(), false, 200);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -99,10 +99,12 @@ fun Comment(comment: CommentsInfoItem, onCommentAuthorOpened: () -> Unit) {
|
||||
}
|
||||
|
||||
val nameAndDate = remember(comment) {
|
||||
val date = Localization.relativeTimeOrTextual(
|
||||
context, comment.uploadDate, comment.textualUploadDate
|
||||
Localization.concatenateStrings(
|
||||
Localization.localizeUserName(comment.uploaderName),
|
||||
Localization.relativeTimeOrTextual(
|
||||
context, comment.uploadDate, comment.textualUploadDate
|
||||
)
|
||||
)
|
||||
Localization.concatenateStrings(comment.uploaderName, date)
|
||||
}
|
||||
Text(
|
||||
text = nameAndDate,
|
||||
|
||||
@@ -11,6 +11,7 @@ import android.icu.text.CompactDecimalFormat;
|
||||
import android.os.Build;
|
||||
import android.text.TextUtils;
|
||||
import android.text.format.DateUtils;
|
||||
import android.text.BidiFormatter;
|
||||
import android.util.DisplayMetrics;
|
||||
import android.util.Log;
|
||||
|
||||
@@ -85,6 +86,25 @@ public final class Localization {
|
||||
.collect(Collectors.joining(delimiter));
|
||||
}
|
||||
|
||||
/**
|
||||
* Localize a user name like <code>@foobar</code>.
|
||||
*
|
||||
* Will correctly handle right-to-left usernames by using a {@link BidiFormatter}.
|
||||
*
|
||||
* @param plainName username, with an optional leading <code>@</code>
|
||||
* @return a usernames that can include RTL-characters
|
||||
*/
|
||||
@NonNull
|
||||
public static String localizeUserName(final String plainName) {
|
||||
final BidiFormatter bidi = BidiFormatter.getInstance();
|
||||
|
||||
if (plainName.startsWith("@")) {
|
||||
return "@" + bidi.unicodeWrap(plainName.substring(1));
|
||||
} else {
|
||||
return bidi.unicodeWrap(plainName);
|
||||
}
|
||||
}
|
||||
|
||||
public static org.schabi.newpipe.extractor.localization.Localization getPreferredLocalization(
|
||||
final Context context) {
|
||||
return org.schabi.newpipe.extractor.localization.Localization
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
تم إصلاح YouTube الذي لا يقوم بتشغيل أي دفق
|
||||
@@ -0,0 +1 @@
|
||||
YouTube-un heç bir yayım oynatmaması düzəldildi
|
||||
@@ -0,0 +1 @@
|
||||
Opraveno nepřehrávání jakéhokoli streamu ve službě YouTube
|
||||
@@ -0,0 +1 @@
|
||||
Behoben, dass YouTube keinen Stream abspielte
|
||||
@@ -0,0 +1,3 @@
|
||||
This release fixes YouTube only providing a 360p stream.
|
||||
|
||||
Note that the solution employed in this version is likely temporary, and in the long run the SABR video protocol needs to be implemented, but TeamNewPipe members are currently busy so any help would be greatly appreciated! https://github.com/TeamNewPipe/NewPipe/issues/12248
|
||||
@@ -0,0 +1 @@
|
||||
Arreglo en YouTube no reproduciendo flujos
|
||||
@@ -0,0 +1 @@
|
||||
مشکل عدم نمایش پخشزنده برطرف شد
|
||||
@@ -0,0 +1 @@
|
||||
Correction de YouTube qui ne lisait aucun média
|
||||
@@ -0,0 +1 @@
|
||||
תוקנה התקלה ש־YouTube לא מנגן אף תזרים
|
||||
@@ -0,0 +1 @@
|
||||
फिक्स्ड YouTube कोई स्ट्रीम नहीं चला रहा है
|
||||
@@ -0,0 +1 @@
|
||||
Immáron minden YouTube videó lejátszásra kerül
|
||||
@@ -0,0 +1 @@
|
||||
Memperbaiki YouTube yang tidak memutar streaming apa pun
|
||||
@@ -0,0 +1,3 @@
|
||||
Questa versione risolve il problema di YouTube che permette di riprodurre video solo a 360p.
|
||||
|
||||
La soluzione impiegata in questa versione è probabilmente temporanea, e a lungo termine c'è da implementare il protocollo video SABR, ma i membri del TeamNewPipe non hanno tempo al momento, quindi qualsiasi aiuto sarebbe molto apprezzato! https://github.com/TeamNewPipe/NewPipe/issues/12248
|
||||
@@ -0,0 +1 @@
|
||||
გაასწორა YouTube არ უკრავს არცერთ ნაკადს
|
||||
@@ -0,0 +1 @@
|
||||
YouTube에서 스트림을 재생하지 않는 문제 수정
|
||||
@@ -0,0 +1 @@
|
||||
YouTube speelt geen stream af opgelost
|
||||
@@ -0,0 +1 @@
|
||||
ਸਥਿਰ YouTube ਕੋਈ ਸਟ੍ਰੀਮ ਨਹੀਂ ਚਲਾ ਰਿਹਾ
|
||||
@@ -0,0 +1 @@
|
||||
Corrigido YouTube não reproduzir qualquer transmissão
|
||||
@@ -0,0 +1 @@
|
||||
Corrigido YouTube não reproduzir nenhuma transmissão
|
||||
@@ -0,0 +1 @@
|
||||
Corrigido YouTube não reproduzir nenhuma transmissão
|
||||
@@ -0,0 +1 @@
|
||||
Исправлено: YouTube не воспроизводил никакие потоки
|
||||
@@ -0,0 +1 @@
|
||||
Fixed YouTube not playing any stream
|
||||
@@ -0,0 +1 @@
|
||||
Åtgärdat att YouTube inte spelar någon stream
|
||||
@@ -0,0 +1 @@
|
||||
நிலையான யூடியூப் எந்த ச்ட்ரீமையும் இயக்கவில்லை
|
||||
@@ -0,0 +1 @@
|
||||
YouTube'un herhangi bir akışı oynatmaması düzeltildi
|
||||
@@ -0,0 +1 @@
|
||||
Виправлено проблему невідтворюваності трансляцій YouTube
|
||||
@@ -0,0 +1 @@
|
||||
Đã sửa lỗi YouTube không phát bất kỳ luồng nào
|
||||
@@ -0,0 +1 @@
|
||||
修复YouTube无法播放任何视频
|
||||
@@ -0,0 +1 @@
|
||||
修正 YouTube 無法播放任何串流
|
||||
@@ -0,0 +1 @@
|
||||
修正咗 YouTube 乜嘢實況串流都播唔到嘅問題
|
||||
@@ -54,7 +54,11 @@ swiperefreshlayout = "1.1.0"
|
||||
# This works thanks to JitPack: https://jitpack.io/
|
||||
teamnewpipe-filepicker = "5.0.0"
|
||||
teamnewpipe-nanojson = "1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751"
|
||||
teamnewpipe-newpipe-extractor = "67f3301d9"
|
||||
# WORKAROUND: if you get errors with the NewPipeExtractor dependency, replace `v0.24.3` with
|
||||
# the corresponding commit hash, since JitPack sometimes deletes artifacts.
|
||||
# If there’s already a git hash, just add more of it to the end (or remove a letter)
|
||||
# to cause jitpack to regenerate the artifact.
|
||||
teamnewpipe-newpipe-extractor = "v0.24.6"
|
||||
webkit = "1.9.0"
|
||||
work = "2.8.1"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user