NAME
drive_player - GTK3 music player for Google Drive
SYNOPSIS
drive_player
SETUP
1. Install dependencies
make install
This installs system packages (Gtk3, Glib, SQLite, mpv) and all required CPAN modules.
2. Create a Google Cloud project and OAuth credentials
Go to https://console.cloud.google.com/ and create a new project (or select an existing one).
Enable the Google Drive API: APIs & Services > Enable APIs and Services > search for "Drive API" > Enable.
Create OAuth credentials: APIs & Services > Credentials > Create Credentials > OAuth client ID. Choose Desktop app as the application type.
Download or note the Client ID and Client Secret.
3. Configure the application
Launch the app, then open File > Settings and paste the Client ID and Client Secret. Click Save.
The config file is written to ~/.config/drive_player/config.yaml.
4. Authorise access to Google Drive
Run the OAuth token creator that ships with Google::RestApi:
google_restapi_oauth_token_creator
Follow the prompts. The resulting token file is stored at ~/.config/drive_player/token.dat by default.
5. Add music folders
Launch the app and choose File > Add Music Folder. Enter the Google Drive folder ID (the last path component of the folder's Drive URL) and a display name. The app will scan the folder and add tracks to the library.