Skip to content

Download Spotify playlists to Ogg Vorbis format with a Premium account

License

Notifications You must be signed in to change notification settings

0xDEADFED5/oggify_csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oggify_csv

Update 7 November, 2023: I broke it yesterday, oops. Also, fix file length issues due to like 50 artists on one track.

Download Spotify CSV playlists to M3U + Ogg Vorbis (with a premium account).

This is a fork of what used to be oggify.

This uses an older version of librespot.

This code is some hacky bullshit, plz don't judge me.

Usage

First, export your playlists with Exportify and unzip them somewhere.

oggify_csv will process each CSV file, create a folder, save tracks inside that folder, and generate an M3U playlist alongside the CSV file.

Tracks are named like this: {artist}-{album}(year)-{disc}-{track}-{track name}.ogg

For instance: Bil_Bless-Life_Mechanism_(1_of_2)(2009)-D01-T02-Wanting_You.ogg

adjust as needed.

oggify_csv spotify-premium-user spotify-premium-password path_to_CSVs (Optional)

Existing files are skipped and not redownloaded. If a path to the CSV files isn't provided, it will search wherever the binary is at. Subfolders are searched too. You soul is also searched, but DirectoryNotFound.

Changes from Oggify

  • core/src/spotify_id.rs changed to use std u128, was using some old ass crate to do it before.

  • librespot a3c63b4e055f3ec68432d4a27479bed102e68e9e files are now local. because.

  • The CSV/M3U shit, obviously.

  • File names are mostly sanitized for Windows.

  • The code is formatted and 10x uglier than before.

Should this exist?

Probably not. Go support the artists. I made this for selfish reasons.

I'm sharing this is so that people don't pay for malware to do the same thing.

Will you update or otherwise support this?

Fuck no, I spent as much of my life on this shit thing as I ever intend to. If it's missing functionality or buggy, fix it. Pull requests to make the code uglier might be accepted.

Changelog

Well, I didn't really plan on updating this piece of shit, but I did. yah, this changelog sucks because I'm just adding it 19 November.

2023-14-09: if file name length is > 140, files are named {artist} - {track name}.ogg

2023-19-11: previous update changed how album years are done.
i don't know why i thought dateparser could parse years as a date, but it seemed reasonable at the time.
in fact it cannot, so a bunch of tracks got named with album year as 1666, a value that i didn't think would get used.
this is maybe fixed, and old tracks might be renamed automatically without redownloading them.
update: it's kinda fucked, but i can't screw with it right now. downloaded tracks now will have the right name.
if you run this version over a previous version, run it again after it finishes and it will clean up the old shitty filenames.

sometimes the metadata kinda sucks, too. take this wordy filename for example:

MDC-Millions_of_Dead_Cops_-_Millennium_Edition_(Remastered)(1980)-D01-T07-John_Wayne_Was_a_Nazi_-_Millions_of_Dead_Cops_-_Full_Length.ogg

yes, the track name really is "John Wayne Was a Nazi - Millions of Dead Cops - Full Length". why? fuck if i know, but John Wayne was kind of a Nazi.

About

Download Spotify playlists to Ogg Vorbis format with a Premium account

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published