Bumped version

changed the avatar placeholder with adventurer sprite dicebear
prevention from playing empty playlists
This commit is contained in:
Kingkor Roy Tirtho 2022-01-14 17:48:42 +06:00
parent 9ccdeba2bd
commit a9bf2db683
11 changed files with 34 additions and 28 deletions

View File

@ -11,7 +11,7 @@ AppDir:
id: oss.krtirtho.spotube id: oss.krtirtho.spotube
name: Spotube name: Spotube
icon: spotube-logo icon: spotube-logo
version: 1.0.0 version: 1.0.1
exec: spotube exec: spotube
exec_args: $@ exec_args: $@
apt: apt:

View File

@ -25,12 +25,12 @@ All the binaries are located in the [releases](https://github.com/krtirtho/spotu
## Windows ## Windows
Download the [setup file](https://github.com/KRTirtho/spotube/releases/download/v1.0.0/Spotube-windows-x86_64-setup.exe) & follow along the installer Download the [setup file](https://github.com/KRTirtho/spotube/releases/download/v1.0.1/Spotube-windows-x86_64-setup.exe) & follow along the installer
## Linux ## Linux
### Ubuntu/Debian/Linux Mint/Pop_!OS: ### Ubuntu/Debian/Linux Mint/Pop_!OS:
Download the [Spotube-linux-x86_64.deb](https://github.com/KRTirtho/spotube/releases/download/v1.0.0/Spotube-linux-x86_64.deb) then double click it or run Download the [Spotube-linux-x86_64.deb](https://github.com/KRTirtho/spotube/releases/download/v1.0.1/Spotube-linux-x86_64.deb) then double click it or run
```bash ```bash
$ sudo apt install Spotube-linux-x86_64.deb $ sudo apt install Spotube-linux-x86_64.deb
# or # or
@ -50,7 +50,7 @@ Download the [setup file](https://github.com/KRTirtho/spotube/releases/download/
### Others: ### Others:
Download the [Spotube-linux-x86_64.AppImage](Spotube-linux-x86_64.AppImage) file & double click to run it. AppImages require [appimage-launcher](https://github.com/TheAssassin/AppImageLauncher) to be installed Download the [Spotube-linux-x86_64.AppImage](https://github.com/KRTirtho/spotube/releases/download/v1.0.1/Spotube-linux-x86_64.AppImage) file & double click to run it. AppImages require [appimage-launcher](https://github.com/TheAssassin/AppImageLauncher) to be installed
**I'll/try to upload the package binaries to linux debian/arch/ubuntu/snap/flatpack/redhat/chocolatey stores or software centers or repositories** **I'll/try to upload the package binaries to linux debian/arch/ubuntu/snap/flatpack/redhat/chocolatey stores or software centers or repositories**

View File

@ -1,11 +1,11 @@
pkgbase = spotube pkgbase = spotube
pkgdesc = A lightweight free Spotify desktop-client which handles playback manually, streams music using Youtube & no Spotify premium account is needed pkgdesc = A lightweight free Spotify desktop-client which handles playback manually, streams music using Youtube & no Spotify premium account is needed
pkgver = 1.0.0 pkgver = 1.0.1
pkgrel = 1 pkgrel = 1
url = https://github.com/KRTirtho/spotube/ url = https://github.com/KRTirtho/spotube/
arch = x86_64 arch = x86_64
license = BSD 4-Clause license = BSD 4-Clause
source = https://github.com/KRTirtho/spotube/releases/download/v1.0.0/Spotube-linux-x86_64.tar.xz source = https://github.com/KRTirtho/spotube/releases/download/v1.0.1/Spotube-linux-x86_64.tar.xz
pkgname = spotube pkgname = spotube

View File

@ -1,6 +1,6 @@
# Maintainer: Kingkor Roy Tirtho <krtirho@gmail.com> # Maintainer: Kingkor Roy Tirtho <krtirho@gmail.com>
pkgname=spotube pkgname=spotube
pkgver=1.0.0 pkgver=1.0.1
pkgrel=1 pkgrel=1
epoch= epoch=
pkgdesc="A lightweight free Spotify desktop-client which handles playback manually, streams music using Youtube & no Spotify premium account is needed" pkgdesc="A lightweight free Spotify desktop-client which handles playback manually, streams music using Youtube & no Spotify premium account is needed"

View File

@ -1,5 +1,5 @@
Package: Spotube Package: Spotube
Version: 1.0.0 Version: 1.0.1
Section: sound Section: sound
Priority: optional Priority: optional
Architecture: all Architecture: all

View File

@ -189,7 +189,7 @@ class _HomeState extends State<Home> {
false) && false) &&
snapshot.data?.images?.last.url != null) snapshot.data?.images?.last.url != null)
? snapshot.data!.images!.last.url! ? snapshot.data!.images!.last.url!
: "https://avatars.dicebear.com/api/human/${snapshot.data?.id}.png"; : "https://avatars.dicebear.com/api/adventurer/${snapshot.data?.id}.png";
return Padding( return Padding(
padding: const EdgeInsets.all(16), padding: const EdgeInsets.all(16),
child: Row( child: Row(

View File

@ -50,21 +50,25 @@ class _LyricsState extends State<Lyrics> {
if (_lyrics["lyrics"] == null && playback.currentTrack != null) { if (_lyrics["lyrics"] == null && playback.currentTrack != null) {
if (!hasToken) { if (!hasToken) {
return Expanded( return Expanded(
child: Center( child: Column(
child: Column( children: [
children: [ Text(
const Text("Genius lyrics API access token isn't set"), "Genius lyrics API access token isn't set",
ElevatedButton( style: Theme.of(context)
onPressed: () { .textTheme
Navigator.of(context).push(MaterialPageRoute( .headline4
builder: (context) { ?.copyWith(color: Colors.red[400]),
return const Settings(); ),
}, ElevatedButton(
)); onPressed: () {
}, Navigator.of(context).push(MaterialPageRoute(
child: const Text("Add Access Token")) builder: (context) {
], return const Settings();
), },
));
},
child: const Text("Add Access Token"))
],
)); ));
} }
return const Expanded( return const Expanded(

View File

@ -81,6 +81,8 @@ class _PlaylistCardState extends State<PlaylistCard> {
tracks.map((e) => e.track!))) tracks.map((e) => e.track!)))
.toList(); .toList();
if (tracks.isEmpty) return;
playback.setCurrentPlaylist = CurrentPlaylist( playback.setCurrentPlaylist = CurrentPlaylist(
tracks: tracks, tracks: tracks,
id: widget.playlist.id!, id: widget.playlist.id!,

View File

@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at # Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.0 version: 1.0.1
environment: environment:
sdk: ">=2.15.1 <3.0.0" sdk: ">=2.15.1 <3.0.0"
@ -106,6 +106,6 @@ msix_config:
display_name: Spotube display_name: Spotube
publisher_display_name: KRTirtho publisher_display_name: KRTirtho
identity_name: oss.krtirtho.spotube identity_name: oss.krtirtho.spotube
msix_version: 1.0.0.0 msix_version: 1.0.1.0
logo_path: .\assets\spotube-logo.png logo_path: .\assets\spotube-logo.png
capabilities: "internetClient,internetClientServer,backgroundMediaPlayback" capabilities: "internetClient,internetClientServer,backgroundMediaPlayback"

View File

@ -2,7 +2,7 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "Spotube" #define MyAppName "Spotube"
#define MyAppVersion "1.0.0" #define MyAppVersion "1.0.1"
#define MyAppPublisher "KRTirtho, OSS" #define MyAppPublisher "KRTirtho, OSS"
#define MyAppURL "https://github.com/KRTirtho/spotube" #define MyAppURL "https://github.com/KRTirtho/spotube"
#define MyAppExeName "spotube.exe" #define MyAppExeName "spotube.exe"

View File

@ -69,7 +69,7 @@ IDI_APP_ICON ICON "resources\\icon.ico"
#ifdef FLUTTER_BUILD_NAME #ifdef FLUTTER_BUILD_NAME
#define VERSION_AS_STRING #FLUTTER_BUILD_NAME #define VERSION_AS_STRING #FLUTTER_BUILD_NAME
#else #else
#define VERSION_AS_STRING "1.0.0" #define VERSION_AS_STRING "1.0.1"
#endif #endif
VS_VERSION_INFO VERSIONINFO VS_VERSION_INFO VERSIONINFO