Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
69a558b
Add build script
LeadFreeCandy Feb 16, 2024
50629b8
Add broken app
LeadFreeCandy Feb 16, 2024
847d0ce
Make app blank working page
LeadFreeCandy Feb 23, 2024
03d6fae
Add vector logo to manifest
LeadFreeCandy Feb 23, 2024
7859c5c
Add untested windows build file
LeadFreeCandy Feb 23, 2024
269b44a
Working index.js
Katijino Mar 1, 2024
67fd81e
Update manifest.json
Augula33 Mar 12, 2024
d15e88a
Updated the name and fixed the icon line so that
Augula33 Mar 12, 2024
1bd323e
Merge pull request #6 from Augula33/spotify-app
CamoGuy3000 Mar 12, 2024
7f9f082
Update to SpotifyPlus spicetify app
Katijino Mar 13, 2024
3adcea1
Index.js new button
Katijino Mar 15, 2024
5e46157
Merge branch 'spotify-app' of https://github.com/LeadFreeCandy/Spotif…
Augula33 Mar 15, 2024
4075b46
Added tinder logo cuz dalle sucks and cant make a
Augula33 Mar 15, 2024
92c6ea8
Playing songs
Katijino Mar 22, 2024
9e528d9
Added temporary song list as place holder for the
Augula33 Mar 26, 2024
c806b1a
Merge branch 'spotify-app' into spotify-app
Augula33 Mar 26, 2024
f5b069d
Merge pull request #7 from Augula33/spotify-app
Katijino Mar 26, 2024
07c5bb9
Cleanup/Removal
Katijino Mar 29, 2024
a18d3ea
Add songs to playlist when user clicks the like button.
Augula33 Mar 30, 2024
2e9deb4
Not yet working Storage
Katijino Apr 5, 2024
b74b84b
Update index.js
Augula33 Apr 9, 2024
e8badff
Button placement
Katijino Apr 9, 2024
9cc5921
Users can no longer add duplicate songs, fixed button placement for n…
Augula33 Apr 9, 2024
ef0bdd5
Storage update to index
Katijino Apr 12, 2024
1ac1a61
Added function to display album cover. Buggy
Augula33 Apr 12, 2024
7aa7cc8
Working Storage
Katijino Apr 12, 2024
0c888ed
Issue fixed, Deleted Recent Tab
Katijino Apr 15, 2024
5755171
fixed spacing issues and added Image
Katijino Apr 15, 2024
087a219
Almost working image generation
Katijino Apr 16, 2024
395fc58
Fully working Image Generation
Katijino Apr 16, 2024
5e08222
Created function to find song uri from the song title and artist name
Augula33 Apr 16, 2024
e371347
Updated functionality to better interact with users, onclick settings
Katijino Apr 23, 2024
df2d40f
added keyboard shortcuts
Katijino Apr 23, 2024
67bf0c7
added song title above image
Katijino Apr 23, 2024
967cf69
Music genre dropdown menu to send to llm
Augula33 Apr 24, 2024
1c4b4be
Modified retrieve next to work with getUriFromSongAndArtist so that i…
Augula33 Apr 24, 2024
54abca6
Added heart and X images to be used as like and dislike buttons
Augula33 Apr 24, 2024
9b10ba3
Fixed song title display font
Augula33 Apr 24, 2024
6bb1db7
Made it so that createplaylist() makes a new playlist every time it's…
Augula33 Apr 24, 2024
5246341
Added artist name to display, doesnt work with multiple artists (only…
Augula33 Apr 24, 2024
440cf12
Added new function for getting song uri from the name. Added display …
Augula33 Apr 25, 2024
7646b0e
Added button for toggling explicit songs. Made it so that playlists c…
Augula33 Apr 25, 2024
52b3eaa
Added functionality to toggle explicit function. If an explicit song …
Augula33 Apr 25, 2024
a7c5efa
Display whether explicit filter is toggled or not
Augula33 Apr 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": []
}
56 changes: 56 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,58 @@
# SpotifyPlus
Spotify with a better interface and a better algorithm

To create a README that explains how to build the code using the build script located in the `/extension` folder of your repository, follow this template. This guide assumes the users have basic knowledge of using terminal or command prompt, have cloned the repository, and have basic setup requirements met, such as having Git and possibly Node.js (depending on your project's requirements).

---

# Building SpotifyPlus Extension

Welcome to the SpotifyPlus extension! This guide will walk you through the steps to build and deploy the SpotifyPlus extension from the cloned repository to your local Spotify application.

## Prerequisites

Before you begin, ensure you have the following prerequisites installed and set up:

- **Git**: To clone the repository.
- **Spicetify**: Ensure Spicetify is installed and configured on your system. Spicetify is a tool to customize Spotify.
- **Windows Subsystem for Linux (WSL)** (for Windows users): Ensure WSL is installed and set up if you're on Windows, you cannot use powershell to run this script.

## Clone the Repository

If you haven't already cloned the repository, run the following command in your terminal or command prompt:

```bash
git clone [https://github.com/LeadFreeCandy/SpotifyPlus]
```

## Navigate to the Extension Directory

Change your current directory to the `/extension` folder within the cloned repository:

```bash
cd SpotifyPlus/extension
```

## Running the Build Script

To execute the build script, use the following command:

```bash
./build.sh
```

### For macOS Users

The script will automatically detect your operating system. If you're on macOS, it will copy the necessary files to `~/.config/spicetify/CustomApps/SpotifyPlus` and apply the Spicetify changes.

### For Windows Users with WSL

If you're using Windows Subsystem for Linux (WSL), the script will place the necessary files in your Windows `%appdata%\spicetify\CustomApps\SpotifyPlus` directory and then apply the Spicetify changes.

## Troubleshooting

If you encounter any errors during the build process:

- Ensure you have all the prerequisites installed.
- Verify that Spicetify is correctly set up and that you have permissions to modify its directories.
- Check the script's error messages for hints on what went wrong and adjust your environment accordingly.
45 changes: 45 additions & 0 deletions spotify_app/build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
@echo off
SetLocal EnableDelayedExpansion

:: Function equivalent in batch for copy_and_apply
:copy_and_apply
mkdir "%~1" 2>nul
copy manifest.json "%~1" >nul
if errorlevel 1 (
echo Error copying files. Ensure manifest.json and index.js exist in the current directory.
exit /b 1
)
copy index.js "%~1" >nul
if errorlevel 1 (
echo Error copying files. Ensure manifest.json and index.js exist in the current directory.
exit /b 1
)

:: Attempt to configure spicetify for SpotifyPlus
spicetify config custom_apps SpotifyPlus
if errorlevel 1 (
echo Failed to configure spicetify for SpotifyPlus. Ensure spicetify is correctly installed.
exit /b 1
)

:: Apply spicetify changes
spicetify apply
if errorlevel 1 (
echo Failed to apply spicetify changes. Check your spicetify installation and configuration.
exit /b 1
)

goto :eof

:: Detect OS and set target path
for /f "tokens=2 delims==" %%i in ('wmic os get caption /value') do set OS=%%i

if "%OS%" == "Microsoft Windows 10 Pro" (
:: Assuming this is for demonstration; adjust as necessary for your Windows version
:: Convert %appdata% to a direct path usage in PowerShell/Command Prompt
set TARGET_DIR=%appdata%\spicetify\CustomApps\SpotifyPlus
call :copy_and_apply "%TARGET_DIR%"
) else (
echo Unsupported operating system. This script is intended for Windows with PowerShell.
exit /b 1
)
37 changes: 37 additions & 0 deletions spotify_app/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
copy_and_apply() {
mkdir -p "$1" 2>/dev/null
if ! cp manifest.json index.js "$1"; then
echo "Error copying files. Ensure manifest.json and index.js exist in the current directory."
exit 1
fi

if ! spicetify config custom_apps SpotifyPlus; then
echo "Failed to configure spicetify for SpotifyPlus. Ensure spicetify is correctly installed."
exit 1
fi

if ! spicetify apply; then
echo "Failed to apply spicetify changes. Check your spicetify installation and configuration."
exit 1
fi
}

# Detect OS and set target path
if [ "$(uname)" = "Darwin" ]; then
# macOS
TARGET_DIR="$HOME/.config/spicetify/CustomApps/SpotifyPlus"
copy_and_apply "$TARGET_DIR"
elif [ "$(expr substr $(uname -s) 1 5)" = "Linux" ]; then
# Assuming WSL is being used on Windows
if [ -n "$WSL_DISTRO_NAME" ]; then
# Convert Windows %appdata% path to WSL path
TARGET_DIR="$(wslpath "$(wslvar APPDATA)")/spicetify/CustomApps/SpotifyPlus"
copy_and_apply "$TARGET_DIR"
else
echo "This script is intended to be run on macOS or within WSL for Windows."
exit 1
fi
else
echo "Unsupported operating system. This script is intended for macOS or WSL on Windows."
exit 1
fi
Loading