mirror of
https://github.com/KRTirtho/spotube.git
synced 2026-06-20 18:08:04 +00:00
Compare commits
5 Commits
6edfbf13b6
...
82a16b2578
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
82a16b2578 | ||
|
|
69a310c78f | ||
|
|
2d9d39ffa5 | ||
|
|
31892f4b8b | ||
|
|
79dd6e3e8e |
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -30,5 +30,6 @@
|
|||||||
"README.md": "LICENSE,CODE_OF_CONDUCT.md,CONTRIBUTING.md,SECURITY.md,CONTRIBUTION.md,CHANGELOG.md,PRIVACY_POLICY.md",
|
"README.md": "LICENSE,CODE_OF_CONDUCT.md,CONTRIBUTING.md,SECURITY.md,CONTRIBUTION.md,CHANGELOG.md,PRIVACY_POLICY.md",
|
||||||
"*.dart": "${capture}.g.dart,${capture}.freezed.dart"
|
"*.dart": "${capture}.g.dart,${capture}.freezed.dart"
|
||||||
},
|
},
|
||||||
"dart.flutterSdkPath": ".fvm/versions/3.35.2"
|
"dart.flutterSdkPath": ".fvm/versions/3.35.2",
|
||||||
|
"makefile.configureOnOpen": false
|
||||||
}
|
}
|
||||||
1910
CHANGELOG.md
1910
CHANGELOG.md
File diff suppressed because it is too large
Load Diff
118
lib/l10n/app_he.arb
Normal file
118
lib/l10n/app_he.arb
Normal file
@ -0,0 +1,118 @@
|
|||||||
|
{
|
||||||
|
"guest": "אורח",
|
||||||
|
"browse": "עיון",
|
||||||
|
"search": "חיפוש",
|
||||||
|
"library": "ספריה",
|
||||||
|
"lyrics": "מילים",
|
||||||
|
"settings": "הגדרות",
|
||||||
|
"genre_categories_filter": "סינון קטגוריות או ז'אנרים...",
|
||||||
|
"genre": "ז'אנר",
|
||||||
|
"personalized": "מותאם אישית",
|
||||||
|
"featured": "מומלץ",
|
||||||
|
"new_releases": "הוצאות חדשות",
|
||||||
|
"songs": "שירים",
|
||||||
|
"playing_track": "מנגן את {track}",
|
||||||
|
"queue_clear_alert": "פעולה זו תנקה את רשימת ההשמעה הנוכחית. {track_length} שירים יוסרו\nהאם ברצונך להמשיך?",
|
||||||
|
"load_more": "טען עוד",
|
||||||
|
"playlists": "פלייליסטים",
|
||||||
|
"artists": "אמנים",
|
||||||
|
"albums": "אלבומים",
|
||||||
|
"tracks": "רצועות",
|
||||||
|
"downloads": "הורדות",
|
||||||
|
"filter_playlists": "סינון הפלייליסטים שלך...",
|
||||||
|
"liked_tracks": "שירים שאהבת",
|
||||||
|
"liked_tracks_description": "כל השירים שאהבת",
|
||||||
|
"create_playlist": "יצירת פלייליסט",
|
||||||
|
"update_playlist": "עדכון פלייליסט",
|
||||||
|
"create": "צור",
|
||||||
|
"cancel": "ביטול",
|
||||||
|
"update": "עדכן",
|
||||||
|
"playlist_name": "שם הפלייליסט",
|
||||||
|
"description": "תיאור",
|
||||||
|
"public": "ציבורי",
|
||||||
|
"collaborative": "שיתופי",
|
||||||
|
"search_local_tracks": "חיפוש שירים מקומיים",
|
||||||
|
"play": "נגן",
|
||||||
|
"delete": "מחק",
|
||||||
|
"none": "כלום",
|
||||||
|
"sort_a_z": "מיון מ־A עד Z",
|
||||||
|
"sort_z_a": "מיון מ־Z עד A",
|
||||||
|
"sort_artist": "מיון לפי אמן",
|
||||||
|
"sort_album": "מיון לפי אלבום",
|
||||||
|
"sort_tracks": "מיון לפי רצועות",
|
||||||
|
"currently_downloading": "מוריד כעת ({tracks_length})",
|
||||||
|
"cancel_all": "ביטול הכל",
|
||||||
|
"filter_artist": "סינון אמנים...",
|
||||||
|
"followers": "{followers} עוקבים",
|
||||||
|
"add_artist_to_blacklist": "הוסף אמן לרשימה השחורה",
|
||||||
|
"top_tracks": "הרצועות המובילות",
|
||||||
|
"fans_also_like": "המעריצים גם אוהבים",
|
||||||
|
"loading": "טוען...",
|
||||||
|
"artist": "אמן",
|
||||||
|
"blacklisted": "ברשימה השחורה",
|
||||||
|
"following": "עוקב",
|
||||||
|
"follow": "עקוב",
|
||||||
|
"artist_url_copied": "קישור לאמן הועתק ללוח",
|
||||||
|
"added_to_queue": "{tracks} נוסף לרשימת ההשמעה",
|
||||||
|
"filter_albums": "סינון אלבומים...",
|
||||||
|
"synced": "סונכרן",
|
||||||
|
"shuffle": "ערבוב",
|
||||||
|
"search_tracks": "חיפוש רצועות",
|
||||||
|
"released": "יצא לאור",
|
||||||
|
"error": "שגיאה {error}",
|
||||||
|
"title": "כותרת",
|
||||||
|
"time": "זמן",
|
||||||
|
"more_actions": "פעולות נוספות",
|
||||||
|
"download_count": "הורד ({count})",
|
||||||
|
"album": "אלבום",
|
||||||
|
"copied_to_clipboard": "{data} הועתק ללוח",
|
||||||
|
"add_to_queue": "הוסף לתור",
|
||||||
|
"play_next": "נגן הבא",
|
||||||
|
"remove_from_queue": "הסר מהתור",
|
||||||
|
"remove_from_favorites": "הסר ממועדפים",
|
||||||
|
"save_as_favorite": "שמור כמועדף",
|
||||||
|
"add_to_playlist": "הוסף לפלייליסט",
|
||||||
|
"remove_from_playlist": "הסר מהפלייליסט",
|
||||||
|
"add_to_blacklist": "הוסף לרשימה השחורה",
|
||||||
|
"remove_from_blacklist": "הסר מהרשימה השחורה",
|
||||||
|
"share": "שיתוף",
|
||||||
|
"mini_player": "נגן מיני",
|
||||||
|
"shuffle_playlist": "ערבוב פלייליסט",
|
||||||
|
"unshuffle_playlist": "בטל ערבוב פלייליסט",
|
||||||
|
"previous_track": "הרצועה הקודמת",
|
||||||
|
"next_track": "הרצועה הבאה",
|
||||||
|
"pause_playback": "השהה",
|
||||||
|
"resume_playback": "המשך נגינה",
|
||||||
|
"repeat_playlist": "חזור על הפלייליסט",
|
||||||
|
"queue": "תור",
|
||||||
|
"alternative_track_sources": "מקורות רצועה חלופיים",
|
||||||
|
"download_track": "הורדת רצועה",
|
||||||
|
"tracks_in_queue": "{tracks} רצועות בתור",
|
||||||
|
"clear_all": "נקה הכל",
|
||||||
|
"account": "חשבון",
|
||||||
|
"login_with_spotify": "התחבר באמצעות Spotify",
|
||||||
|
"logout": "התנתק",
|
||||||
|
"language_region": "שפה ואזור",
|
||||||
|
"language": "שפה",
|
||||||
|
"appearance": "מראה",
|
||||||
|
"dark": "כהה",
|
||||||
|
"light": "בהיר",
|
||||||
|
"system": "ברירת מחדל של המערכת",
|
||||||
|
"accent_color": "צבע דגש",
|
||||||
|
"playback": "הפעלה",
|
||||||
|
"audio_quality": "איכות שמע",
|
||||||
|
"high": "גבוהה",
|
||||||
|
"low": "נמוכה",
|
||||||
|
"close": "סגור",
|
||||||
|
"about": "אודות",
|
||||||
|
"version": "גרסה",
|
||||||
|
"founder": "מייסד",
|
||||||
|
"license": "רישיון",
|
||||||
|
"submit": "שלח",
|
||||||
|
"previous": "הקודם",
|
||||||
|
"next": "הבא",
|
||||||
|
"done": "סיום",
|
||||||
|
"ok": "אישור",
|
||||||
|
"open": "פתח",
|
||||||
|
"save": "שמור"
|
||||||
|
}
|
||||||
@ -1,5 +1,5 @@
|
|||||||
/// credits:
|
/// credits:
|
||||||
///
|
/// Hebrew yosef apps telegram
|
||||||
/// Kingkor Roy Tirtho => English, Bengali
|
/// Kingkor Roy Tirtho => English, Bengali
|
||||||
/// ChatGPT (GPT 3.5) XD => Hindi, French
|
/// ChatGPT (GPT 3.5) XD => Hindi, French
|
||||||
/// maboroshin@github => Japanese
|
/// maboroshin@github => Japanese
|
||||||
@ -28,6 +28,7 @@ class L10n {
|
|||||||
const Locale('bn', 'BD'),
|
const Locale('bn', 'BD'),
|
||||||
const Locale('ca', 'AD'),
|
const Locale('ca', 'AD'),
|
||||||
const Locale('cs', 'CZ'),
|
const Locale('cs', 'CZ'),
|
||||||
|
const Locale('he', 'IL'), // עברית (ישראל)
|
||||||
const Locale('de', 'GE'),
|
const Locale('de', 'GE'),
|
||||||
const Locale('es', 'ES'),
|
const Locale('es', 'ES'),
|
||||||
const Locale('fa', 'IR'),
|
const Locale('fa', 'IR'),
|
||||||
|
|||||||
@ -33,7 +33,8 @@ extension SpotubeImageExtensions on List<SpotubeImageObject>? {
|
|||||||
int index = 1,
|
int index = 1,
|
||||||
required ImagePlaceholder placeholder,
|
required ImagePlaceholder placeholder,
|
||||||
}) {
|
}) {
|
||||||
final sortedImage = this?.sorted((a, b) => a.width!.compareTo(b.width!));
|
final sortedImage =
|
||||||
|
this?.sorted((a, b) => (a.width ?? 0).compareTo(b.width ?? 0));
|
||||||
|
|
||||||
return sortedImage != null && sortedImage.isNotEmpty
|
return sortedImage != null && sortedImage.isNotEmpty
|
||||||
? sortedImage[
|
? sortedImage[
|
||||||
|
|||||||
@ -59,6 +59,7 @@ class SearchPage extends HookConsumerWidget {
|
|||||||
|
|
||||||
void onSubmitted(String value) {
|
void onSubmitted(String value) {
|
||||||
ref.read(searchTermStateProvider.notifier).state = value;
|
ref.read(searchTermStateProvider.notifier).state = value;
|
||||||
|
focusNode.unfocus();
|
||||||
if (value.trim().isEmpty) {
|
if (value.trim().isEmpty) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -127,25 +128,12 @@ class SearchPage extends HookConsumerWidget {
|
|||||||
)
|
)
|
||||||
.toList();
|
.toList();
|
||||||
|
|
||||||
return KeyboardListener(
|
return AutoComplete(
|
||||||
focusNode: focusNode,
|
|
||||||
autofocus: true,
|
|
||||||
onKeyEvent: (value) {
|
|
||||||
final isEnter = value.logicalKey ==
|
|
||||||
LogicalKeyboardKey.enter;
|
|
||||||
|
|
||||||
if (isEnter) {
|
|
||||||
onSubmitted(controller.text);
|
|
||||||
focusNode.unfocus();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
child: AutoComplete(
|
|
||||||
suggestions: suggestions.length <= 2
|
suggestions: suggestions.length <= 2
|
||||||
? [
|
? [
|
||||||
...suggestions,
|
...suggestions,
|
||||||
"Twenty One Pilots",
|
"Twenty One Pilots",
|
||||||
"Linkin Park",
|
"Linkin Park",
|
||||||
"d4vd"
|
|
||||||
]
|
]
|
||||||
: suggestions,
|
: suggestions,
|
||||||
completer: (suggestion) => suggestion,
|
completer: (suggestion) => suggestion,
|
||||||
@ -153,6 +141,7 @@ class SearchPage extends HookConsumerWidget {
|
|||||||
child: TextField(
|
child: TextField(
|
||||||
autofocus: true,
|
autofocus: true,
|
||||||
controller: controller,
|
controller: controller,
|
||||||
|
focusNode: focusNode,
|
||||||
features: [
|
features: [
|
||||||
const InputFeature.leading(
|
const InputFeature.leading(
|
||||||
Icon(SpotubeIcons.search),
|
Icon(SpotubeIcons.search),
|
||||||
@ -167,8 +156,7 @@ class SearchPage extends HookConsumerWidget {
|
|||||||
: CrossFadeState.showSecond,
|
: CrossFadeState.showSecond,
|
||||||
firstChild: IconButton.ghost(
|
firstChild: IconButton.ghost(
|
||||||
size: ButtonSize.small,
|
size: ButtonSize.small,
|
||||||
icon:
|
icon: const Icon(SpotubeIcons.close),
|
||||||
const Icon(SpotubeIcons.close),
|
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
controller.clear();
|
controller.clear();
|
||||||
},
|
},
|
||||||
@ -182,7 +170,6 @@ class SearchPage extends HookConsumerWidget {
|
|||||||
placeholder: Text(context.l10n.search),
|
placeholder: Text(context.l10n.search),
|
||||||
onSubmitted: onSubmitted,
|
onSubmitted: onSubmitted,
|
||||||
),
|
),
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
|
|||||||
@ -28,6 +28,26 @@ class NewPipeEngine implements YouTubeEngine {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AudioOnlyStreamInfo _parseVideoStream(VideoStream stream, String videoId) {
|
||||||
|
return AudioOnlyStreamInfo(
|
||||||
|
VideoId(videoId),
|
||||||
|
stream.itag,
|
||||||
|
Uri.parse(stream.content),
|
||||||
|
StreamContainer.parse(stream.mediaFormat!.mimeType.split("/").last),
|
||||||
|
FileSize.unknown,
|
||||||
|
Bitrate(stream.bitrate),
|
||||||
|
stream.codec,
|
||||||
|
switch (stream.bitrate) {
|
||||||
|
> 130 * 1024 => "high",
|
||||||
|
> 64 * 1024 => "medium",
|
||||||
|
_ => "low",
|
||||||
|
},
|
||||||
|
[],
|
||||||
|
MediaType.parse(stream.mediaFormat!.mimeType),
|
||||||
|
null,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
Video _parseVideo(VideoInfo info) {
|
Video _parseVideo(VideoInfo info) {
|
||||||
return Video(
|
return Video(
|
||||||
VideoId(info.id),
|
VideoId(info.id),
|
||||||
@ -76,6 +96,14 @@ class NewPipeEngine implements YouTubeEngine {
|
|||||||
final streams =
|
final streams =
|
||||||
video.audioStreams.map((stream) => _parseAudioStream(stream, videoId));
|
video.audioStreams.map((stream) => _parseAudioStream(stream, videoId));
|
||||||
|
|
||||||
|
if (streams.isEmpty) {
|
||||||
|
final videoStreams = video.videoStreams
|
||||||
|
.map((stream) => _parseVideoStream(stream, videoId));
|
||||||
|
if (videoStreams.isNotEmpty) {
|
||||||
|
return StreamManifest(videoStreams);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return StreamManifest(streams);
|
return StreamManifest(streams);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -93,6 +121,14 @@ class NewPipeEngine implements YouTubeEngine {
|
|||||||
final streams =
|
final streams =
|
||||||
video.audioStreams.map((stream) => _parseAudioStream(stream, videoId));
|
video.audioStreams.map((stream) => _parseAudioStream(stream, videoId));
|
||||||
|
|
||||||
|
if (streams.isEmpty) {
|
||||||
|
final videoStreams = video.videoStreams
|
||||||
|
.map((stream) => _parseVideoStream(stream, videoId));
|
||||||
|
if (videoStreams.isNotEmpty) {
|
||||||
|
return (_parseVideo(video), StreamManifest(videoStreams));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return (_parseVideo(video), StreamManifest(streams));
|
return (_parseVideo(video), StreamManifest(streams));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
10
pubspec.lock
10
pubspec.lock
@ -486,10 +486,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: data_widget
|
name: data_widget
|
||||||
sha256: "95388df890189014f702b7e93f9de6bcf7d45143a99f6288f31899f10be441ba"
|
sha256: "4947aae3c50635496d56f94ad18de98e19015c5ebf01abee0f39a2c098c7021a"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.0.2"
|
version: "0.0.3"
|
||||||
dbus:
|
dbus:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -947,7 +947,7 @@ packages:
|
|||||||
description:
|
description:
|
||||||
path: "."
|
path: "."
|
||||||
ref: HEAD
|
ref: HEAD
|
||||||
resolved-ref: ab3ff415114b7b43593e6ee718ad3d760af18350
|
resolved-ref: "41cbd821ce49b9343136f67d83d3117e582dad75"
|
||||||
url: "https://github.com/KRTirtho/flutter_new_pipe_extractor"
|
url: "https://github.com/KRTirtho/flutter_new_pipe_extractor"
|
||||||
source: git
|
source: git
|
||||||
version: "0.1.0"
|
version: "0.1.0"
|
||||||
@ -2728,10 +2728,10 @@ packages:
|
|||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: youtube_explode_dart
|
name: youtube_explode_dart
|
||||||
sha256: "3d731d71df9901b1915bae806781df519cff32517e36db279f844ae619669e45"
|
sha256: "10134a53989b2f3dc576121735aec8fc6d88784956f4a2ad1a2525b006373a76"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "3.0.5"
|
version: "3.1.0"
|
||||||
yt_dlp_dart:
|
yt_dlp_dart:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
|||||||
@ -3,7 +3,7 @@ description: Open source extensible music streaming platform and app, based on B
|
|||||||
|
|
||||||
publish_to: "none"
|
publish_to: "none"
|
||||||
|
|
||||||
version: 5.1.1+44
|
version: 5.1.2+45
|
||||||
|
|
||||||
homepage: https://spotube.krtirtho.dev
|
homepage: https://spotube.krtirtho.dev
|
||||||
repository: https://github.com/KRTirtho/spotube
|
repository: https://github.com/KRTirtho/spotube
|
||||||
@ -90,7 +90,7 @@ dependencies:
|
|||||||
ref: dart-3-support
|
ref: dart-3-support
|
||||||
url: https://github.com/KRTirtho/scrobblenaut.git
|
url: https://github.com/KRTirtho/scrobblenaut.git
|
||||||
scroll_to_index: ^3.0.1
|
scroll_to_index: ^3.0.1
|
||||||
shadcn_flutter: ^0.0.47
|
shadcn_flutter: 0.0.47
|
||||||
shared_preferences: ^2.2.3
|
shared_preferences: ^2.2.3
|
||||||
shelf: ^1.4.1
|
shelf: ^1.4.1
|
||||||
shelf_router: ^1.1.4
|
shelf_router: ^1.1.4
|
||||||
@ -114,7 +114,7 @@ dependencies:
|
|||||||
wikipedia_api: ^0.1.0
|
wikipedia_api: ^0.1.0
|
||||||
win32_registry: ^1.1.5
|
win32_registry: ^1.1.5
|
||||||
window_manager: ^0.4.3
|
window_manager: ^0.4.3
|
||||||
youtube_explode_dart: ^3.0.5
|
youtube_explode_dart: ^3.1.0
|
||||||
yt_dlp_dart:
|
yt_dlp_dart:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/KRTirtho/yt_dlp_dart.git
|
url: https://github.com/KRTirtho/yt_dlp_dart.git
|
||||||
@ -171,7 +171,7 @@ dev_dependencies:
|
|||||||
pub_api_client: ^3.0.0
|
pub_api_client: ^3.0.0
|
||||||
io: ^1.0.4
|
io: ^1.0.4
|
||||||
drift_dev: ^2.21.0
|
drift_dev: ^2.21.0
|
||||||
test: ^1.25.7
|
test: any
|
||||||
auto_route_generator: ^9.0.0
|
auto_route_generator: ^9.0.0
|
||||||
|
|
||||||
dependency_overrides:
|
dependency_overrides:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user