How to Get Music Off CDs and On My Phone

  1. Get annoyed with redacted music streaming services
  2. Watch a video about how to get an iPod Nano fixed up and running.
    1. Relentlessly research iPods
    2. An iPod cannot bluetooth to your car, one of the main things you use said redacted streaming service for
    3. Realize your phone already stores music files AND it bluetooths to your car AND you already own it (= basically free)
  3. Recall being broke in middle school and ripping CDs from the library onto your iPod Touch Classic.
  4. Buy a cheap CD drive of of ebay. Fail to do any real research or read the description.
    1. It's $12! It'll be fine!
  5. Stupid fucker's not fine and won't load anything on your current Mac or the ancient Dell laptop you dredge up from the depths under your bed.
  6. You have access at work to a PC with a disk drive. Insert CD, copy files to local, SSH in to the PC because you forgot to bring a USB stick to work that day, copy files to your Mac laptop. Huzzah!
  7. The files are in .ogg format and Apple Music rejects them.
    1. Research local file conversion. Settle on using [pydub][https://www.pydub.com/] because you know Python pretty well and figure you can set it up quickly and set up some basic scraping of folders.
    2. My conversion code:
      import os
      from pydub import AudioSegment
      ddir = "../../../../Music/Cranberries, The - Everybody Else Is Doing It So Why Can't We/"
      # print(os.listdir(ddir))
      for file in os.listdir(ddir):
          # print(f)
          if file.endswith(".ogg"):
              print(file.split(" - ")[-1])
              song = AudioSegment.from_ogg(f"{ddir}{file}")
              newsong = f"{ddir}{file.split(" - ")[-1][:-4]}.mp3"
              print(newsong)
              song.export(newsong, format="mp3")
              os.remove(f"{ddir}{file}")
    3. pip install audioop-lts is the correct install for when you get the pyaudioop not found error...
    4. This works but is unbearably tedious.
  8. Recall that your work PC runs Linux, and you have an oldass laptop that you could, in theory, partition to have a Linux side, which maybe could work with your $12 drive.
    1. Reject the irony that the real reason you remembered this is an option is because the test CD from the library was a Beyonce album, and Partition...you know.
  9. Learn to partition the drive.
    1. I mostly followed this tutorial PulsarTECH; The linuxmint guide was also useful
    2. Here are all the things that did not go to plan from the tutorial:
      1. Bitlocker encryption does not exist on Windows 10 Home; skip that step
      2. My old laptop is like a fucking potato to work on. This was fixed by doing the 5 year overdue update.
      3. Discover what I thought was a Dell laptop is actually a Microsoft Surface, which is why the boot menu override key is F6 (the volume up button), and not F12.
      4. Wonder how the hell you have 80% storage used up on this thing despite not being able to find a single large file source.
      5. Use the auto partition option in the Mint installer instead of manually doing the partition like the video tells you to because of said insane storage overusage
      6. Finally find a use for the surfboard shaped USB stick you got at a conference ages ago.
  10. It's partitioned! Time for a quick interlude while there's a blizzard and also fucking Nazis in my city to wait for the library to be open and accessible.
  11. Acquire CD (Cranberries Everyone Else Is Doing It So Why Can't We?
  12. It's still not showing up on the Mint partition. Begin googling about; attempt to not go into a blind rage over how much you hate the AI autosuggest and how hard it is to turn the godawful feature OFF!!
  13. The bad fix:
    1. Installed libdvdread4 packages
    2. Restarted; looked like not working but then ejected + re-inserted disk and RhythmBox autoloaded it.
    3. lshw -C disk was useful for seeing if the drive was reading anything
    4. Have to copy tracks individually from disk to Music folder; this is TOO tedious.
  14. The better fix:
    1. Install asunder (sudo apt-get install asunder) and let it rip for you.
    2. This still takes forever ~5 minutes but seems to be an issue with the laptop being potato and is less tedious than the manual drag and drop
  15. Run all files through .ogg converter code; put on flashdrive; move to Mac; drag and drop into Music; insert any missing metadata
  16. Become a menace of CD checkouts at my local library.