Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
16 changes: 8 additions & 8 deletions .github/workflows/dev-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ jobs:
Send tracks and albums from Tidal directly to Tidarr for download.

### Installation
1. Open **TidalLuna**
2. Go to **Settings → Plugins**
3. Click **"Install from URL"**
4. Paste this URL:
```
https://github.com/DevonCasey/tidal-luna-plugins/releases/download/latest-dev/store.json
```
latest_tag: latest-dev
1. Open **TidaLuna**
2. Go to **Settings → Plugins**
3. Click **"Install from URL"**
4. Paste this URL:
```
https://github.com/DevonCasey/tidaluna-plugins/releases/download/latest-dev/store.json
```
latest_tag: latest-dev
16 changes: 8 additions & 8 deletions .github/workflows/prod-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ jobs:
Send tracks and albums from Tidal directly to Tidarr for download.

### Installation
1. Open **TidalLuna**
2. Go to **Settings → Plugins**
3. Click **"Install from URL"**
4. Paste this URL:
```
https://github.com/DevonCasey/tidal-luna-plugins/releases/download/latest/store.json
```
latest_tag: latest
1. Open **TidaLuna**
2. Go to **Settings → Plugins**
3. Click **"Install from URL"**
4. Paste this URL:
```
https://github.com/DevonCasey/tidaluna-plugins/releases/download/latest/store.json
```
latest_tag: latest

16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# TidalLuna Plugins
# TidaLuna Plugins

A collection of TidalLuna plugins. Well, the one plugin.
A collection of TidaLuna plugins. Well, the one plugin.

## Tidarr Integration

Expand All @@ -12,18 +12,18 @@ Right-click on any track or album in Tidal and send it to Tidarr for download. S

### Requirements

- [TidalLuna](https://github.com/Inrixia/TidaLuna) installed
- [TidaLuna](https://github.com/Inrixia/TidaLuna) installed
- [Tidarr](https://github.com/cstaelen/tidarr) is accessible somewhere on your network
- An active Tidal subscription

### Installation

This will add this repo as a source for plugins that will appear in the store to download.

1. Open Tidal with TidalLuna
1. Open Tidal with TidaLuna
2. Go to **Settings** > **Plugins**
3. Click **Install from URL**
4. Paste: `https://github.com/DevonCasey/tidal-luna-plugins/releases/download/latest/store.json`
4. Paste: `https://github.com/DevonCasey/tidaluna-plugins/releases/download/latest/store.json`

Navigate to the **Plugin Store** and download away!

Expand Down Expand Up @@ -72,8 +72,8 @@ curl -X GET "$TIDARR_URL/api/is_auth_active"
For local development:

```bash
git clone https://github.com/DevonCasey/tidal-luna-plugins.git
cd tidal-luna-plugins
git clone https://github.com/DevonCasey/tidaluna-plugins.git
cd tidaluna-plugins
corepack enable
corepack prepare pnpm@latest --activate
pnpm install
Expand All @@ -85,5 +85,3 @@ The local repo will then appear in the **Plugin Store**, select what you want to
## Credits

- Lovingly inspired by the SongDownloader plugin written by [Inrixia](https://github.com/Inrixia/luna-plugins/tree/master/plugins/SongDownloader)

<small>Built for [TidalLuna](https://github.com/Inrixia/TidaLuna) and [Tidarr](https://github.com/cstaelen/tidarr).</small>
20 changes: 11 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@devoncasey/tidalluna-plugins",
"description": "A collection of plugins for TidalLuna.",
"name": "@devoncasey/tidaluna-plugins",
"description": "A collection of plugins for TidaLuna.",
"author": {
"name": "Devon Casey",
"url": "https://github.com/DevonCasey",
"avatarUrl": "https://0.gravatar.com/avatar/4f20153247cc8c6c0868d779e8a8ae0593bb9641880886280281f7de135edc9f"
},
"repository": {
"name": "Devon Casey",
"url": "https://github.com/DevonCasey",
"avatarUrl": "https://0.gravatar.com/avatar/4f20153247cc8c6c0868d779e8a8ae0593bb9641880886280281f7de135edc9f"
},
"repository": {
"type": "git",
"url": "https://github.com/DevonCasey/TidalLuna-Plugins.git"
"url": "https://github.com/DevonCasey/tidaluna-plugins.git"
},
"type": "module",
"scripts": {
Expand All @@ -22,10 +22,12 @@
"@types/react-dom": "^19.1.5",
"concurrently": "^9.1.2",
"http-server": "^14.1.1",
"luna": "github:Inrixia/TidaLuna#81369c7",
"oby": "^15.1.2",
"rimraf": "^6.0.1",
"tsx": "^4.19.4",
"typescript": "^5.8.3"
},
"dependencies": {
"luna": "github:Inrixia/TidaLuna#81369c7"
}
}
6 changes: 3 additions & 3 deletions plugins/tidarr-integration/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "tidarr-integration",
"description": "Sends tracks and albums to Tidarr for download right from TidalLuna.",
"version": "1.0.5",
"description": "Sends tracks and albums to Tidarr for download right from TidaLuna.",
"version": "1.0.6",
"license": "MIT",
"homepage": "https://github.com/DevonCasey/tidal-luna-plugins#tidarr-integration",
"homepage": "https://github.com/DevonCasey/tidaluna-plugins#tidarr-integration",
"author": {
"name": "Devon Casey",
"url": "https://github.com/DevonCasey",
Expand Down
17 changes: 11 additions & 6 deletions plugins/tidarr-integration/src/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ export const Settings = () => {
setTestResult(null);

try {
const isAuthActiveRes = await ftch.json(`${tidarrUrl}/api/is_auth_active`) as IsAuthActiveResponse;
const isAuthActiveRes = await ftch.json<{ isAuthActive: boolean }>(`${tidarrUrl}/api/is_auth_active`);
const isAuthActive = isAuthActiveRes?.isAuthActive ?? false;

if (isAuthActive) {
const authResponse = await ftch.json(`${tidarrUrl}/api/auth`, {
const authResponse = await ftch.json<{ token?: string }>(`${tidarrUrl}/api/auth`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ password: adminPassword || "" }),
Expand Down Expand Up @@ -92,6 +92,7 @@ export const Settings = () => {
setTidarrUrl(newValue);
settings.tidarrUrl = newValue;
}}
style={{ maxWidth: "500px", marginLeft: "auto" }}
/>

<LunaTextSetting
Expand All @@ -104,6 +105,7 @@ export const Settings = () => {
setAdminPassword(newValue);
settings.adminPassword = newValue;
}}
style={{ maxWidth: "200px", marginLeft: "auto" }}
/>

<LunaSelectSetting
Expand All @@ -115,6 +117,7 @@ export const Settings = () => {
setDownloadQuality(newValue);
settings.downloadQuality = newValue;
}}
style={{ maxWidth: "100px", marginLeft: "auto" }}
>
<LunaSelectItem value="low">Low</LunaSelectItem>
<LunaSelectItem value="normal">Normal</LunaSelectItem>
Expand All @@ -125,10 +128,12 @@ export const Settings = () => {
<LunaSwitchSetting
title="Debug Mode"
desc="Enables context menu button for debugging purposes"
checked={debugMode}
onChange={(_: any, checked: boolean) => {
setDebugMode(checked);
settings.debugMode = checked;
// currently commented out due to typing issues in TidaLuna
// checked={debugMode}
{...({ checked: debugMode } as any)}
onChange={(_event: React.ChangeEvent<HTMLInputElement>, nextChecked: boolean) => {
setDebugMode(nextChecked);
settings.debugMode = nextChecked;
}}
/>

Expand Down
75 changes: 34 additions & 41 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.