207
submitted 11 months ago* (last edited 11 months ago) by Zetaphor@zemmy.cc to c/piracy@lemmy.dbzer0.com

cross-posted from: https://zemmy.cc/post/25499

You may have seen my previous post over here, after I had just gotten everything setup initially.

I've now expanded this with an additional script, a github repo, and proper documentation.

Here's a cleaner explanation:

I've taken on the challenge of self-hosting more of the services I regularly depend on. The latest target is Spotify. This meant I needed a simple and convenient way to listen to my music from anywhere, get new music into my collection, and also still receive recommendations based on my interests and listening habits.

I now have what I think is the pretty ideal setup, here's what it includes:

  • A 24/7 radio station that plays my entire catalog (link here if you're interested). This is powered by Azuracast along with the scripts in the repo. The station link is using the Public Pages feature in Azuracast with a bunch of custom CSS.

  • A Spotify-like experience that also supports mobile and offline. This is powered by Navidrome for web/desktop and Substreamer for mobile. Substreamer connects to Navidrome using the Subsonic API.

  • A couple of scripts that allow me to easily download tracks/albums/playlists from Spotify and Youtube. I used these to bootstrap the collection and export my existing playlists from each service.

  • A couple of scripts that automatically grab my latest recommendations from Spotify and LastFM, add them into Navidrome, and provide me a nearly fully automated way to parse out tracks I want to keep permanently.

That last point is the most interesting part in my opinion. Both scripts run on a weekly cron job that downloads my Discover Weekly playlist from spotify, and current recommendations from LastFM. It then creates a playlist for each source for that weeks collection and moves it into Navidrome.

I then browse that weeks playlist at my leisure, using the "star" feature in Navidrome to decide what to keep. Once I'm done I run another script manually that takes all of the starred tracks from those two playlists and moves them into my catalog, and then deletes the remaining tracks and the playlists.

This means I just need to go through and listen to recommendations and click a button on what to keep, and the rest is discarded automatically. It really doesn't get any simpler than this!

What remains will then be available for on-demand playback through Navidrome and also added to the full catalog that powers the 24/7 radio station.

FAQs from the last thread

What is being used to download from X? - spotdl is being used for Spotify.pytube is being used for LastFM and Youtube. spotdl is also just downloading tracks from Youtube under the hood.

What is the audio quality of the downloaded tracks? - Since these are coming from Youtube, everything is a 128kbps VBR Opus codec. It's certainly not FLAC but it's good enough for my enjoyment.

you are viewing a single comment's thread
view the rest of the comments
[-] Creyapnilla@lemmy.world 13 points 11 months ago

128kbps VBR

So...early 90s quality? 😬

[-] Zetaphor@zemmy.cc 6 points 11 months ago

It's good enough for my purposes, which mostly involve streaming it over 96kbps for playback on wireless headphones. It's a small price to pay for the convenience of the automation.

[-] Zpiritual@lemmy.world 10 points 11 months ago

So 128kbps transcoded to 96kbps? Seems like quite a significant price to pay, but whatever you're happy with works for you :)

[-] BraBraBra@lemmy.world 3 points 11 months ago

You'd be hard pressed to find the difference.

[-] Zpiritual@lemmy.world 1 points 11 months ago

Transcoding kills audio but whatever :)

[-] BraBraBra@lemmy.world 2 points 11 months ago

It depends on how many layers of transcoding is happening. Listening to a random file, you won't be able to tell wether is 320 or 128 just by listening to it.

[-] Zetaphor@zemmy.cc 1 points 11 months ago

I never have been able to, even while wearing wired studio monitors

[-] Zetaphor@zemmy.cc 1 points 11 months ago* (last edited 11 months ago)

I've honestly never been able to discern a difference in quality between 96kbps and 320, even while wearing my ATHM50's, maybe my hearing just sucks. 🤷‍♂️

Azuracast let's me stream up to 320, but I choose to use 96 to save bandwidth.

load more comments (3 replies)
load more comments (8 replies)
this post was submitted on 23 Jul 2023
207 points (100.0% liked)

Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ

52563 readers
362 users here now

⚓ Dedicated to the discussion of digital piracy, including ethical problems and legal advancements.

Rules • Full Version

1. Posts must be related to the discussion of digital piracy

2. Don't request invites, trade, sell, or self-promote

3. Don't request or link to specific pirated titles, including DMs

4. Don't submit low-quality posts, be entitled, or harass others



Loot, Pillage, & Plunder


💰 Please help cover server costs.

Ko-FiLiberapay


founded 1 year ago
MODERATORS