Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Output for iTunes Readable Playlist File #2253

Closed
J-oden opened this issue Dec 2, 2024 · 3 comments
Closed

Add Output for iTunes Readable Playlist File #2253

J-oden opened this issue Dec 2, 2024 · 3 comments
Labels
Duplicate Duplicate Issue/PR

Comments

@J-oden
Copy link

J-oden commented Dec 2, 2024

Requested Feature

The "--m3u" command will output a playlist as a .m3u8 file which iTunes cannot read.

Describe the solution you'd like
I would like to output an iTunes readable playlist file to easily transfer Spotify playlists to a phone.

Describe alternatives you've considered
I've tried to change the config.json file, but I have minimal coding experience.
This is as far as I got:
"m3u_output": “{title}\t{artists}\t{album}\t{genre}\t{duration}\t{disc-number}\t{disc-count}\t{track-number}\t{tracks-count}\t{year}\t{output-ext}"
I don't know how to add a header row or output as .txt file (without manually changing the extension).

Thanks for considering.

Possible implementation

No response

@J-oden J-oden added the Feature Request Feature Request label Dec 2, 2024
@Silverarmor
Copy link
Member

Are you sure the reason it is failing is that it is an m3u8 file? The m3u8 file format is simply a m3u file with UTF8 encoding.
Has this ever worked in the past or are you simply jumping to that conclusion?

This sounds like #2251...

@J-oden
Copy link
Author

J-oden commented Dec 6, 2024

I have only used SpotDL for a few weeks now and have been exploring its features, so I wouldn't know if it used to import to iTunes or not. I didn't assume it was a bug like #2251, but that reminds me that I couldn't import into VLC either.

Here's some more details (probably more than you want) and some things I've tried...

Current output of "--m3u8" :

#EXTINF:205, Bee Gees - Whisper Whisper.mp3
#EXTINF:173, Nina Simone - Feeling Good.mp3
#EXTINF:222, Electric Light Orchestra - Livin' Thing (2012 Version).mp3
#EXTINF:253, The Rolling Stones - She's A Rainbow.mp3

I've tried changing the file's extension to ".m3u" or ".txt" without successfully importing.

iTunes exports playlists as ".txt" like so:

Name	Artist	Composer	Album	Grouping	Work	Movement Number	Movement Count	Movement Name	Genre	Size	Time	Disc Number	Disc Count	Track Number	Track Count	Year	Date Modified	Date Added	Bit Rate	Sample Rate	Volume Adjustment	Kind	Equalizer	Comments	Plays	Last Played	Skips	Last Skipped	My Rating	Location
Whisper Whisper	Bee Gees		Cruella (Original Motion Picture Soundtrack)						Disco	3451918	206	1	1	3	15	2021	11/23/2024 8:03 PM	11/27/2024 12:04 AM	128	48000		MPEG audio file								C:\Users\Music\etc
Feeling Good	Nina Simone		Cruella (Original Motion Picture Soundtrack)						Jazz Blues	2929580	174	1	1	5	15	2021	11/23/2024 8:03 PM	11/27/2024 12:04 AM	128	48000		MPEG audio file								C:\Users\etc
Livin' Thing (2012 Version)	Electric Light Orchestra		Cruella (Original Motion Picture Soundtrack)						Album Rock	3703253	222	1	1	8	15	2021	11/23/2024 8:03 PM	11/27/2024 12:04 AM	128	48000		MPEG audio file								C:\Users\Music\etc

so I assume an imported file would need a similar format.

I CAN IMPORT TO ITUNES BY
1-changing "config.json" from

"m3u_output": "#EXTINF:{duration}, {artists} - {title}.{output-ext}",
to
"m3u_output": "{title}\t{artists}\t{album}\t{genre}\t{duration}\t{disc-number}\t{disc-count}\t{track-number}\t{tracks-count}\t{year}\t{output-ext}",
I get this output:

Feeling Good	Nina Simone	Cruella (Original Motion Picture Soundtrack)	jazz blues	173	1	1	5	15	2021	mp3.mp3
Livin' Thing (2012 Version)	Electric Light Orchestra	Cruella (Original Motion Picture Soundtrack)	album rock	222	1	1	8	15	2021	mp3.mp3
She's A Rainbow	The Rolling Stones	She's A Rainbow  Dandelion  We Love You		253	1	None	1	3	2020	mp3.mp3

2-Then change the file extension to ".txt"
3-Manually add the Headers
4-Then I posted my initial Feature Request because this just ain't practical lol

Since my first post a few days ago, I found a script on Linux that will append the desired Header Row for me, which I will use for now.

@Silverarmor
Copy link
Member

@Silverarmor Silverarmor closed this as not planned Won't fix, can't repro, duplicate, stale Dec 9, 2024
@Silverarmor Silverarmor added Duplicate Duplicate Issue/PR and removed Feature Request Feature Request labels Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Duplicate Issue/PR
Projects
None yet
Development

No branches or pull requests

2 participants