================================================================
 MEDUSA 0.7.5 - Spotify for YouTube
 Native MUI YouTube Music Player for MorphOS
  2026 Digitallytechno
 https://medusa4morphos.netlify.app
================================================================

DESCRIPTION
-----------
Medusa is a native MorphOS application that allows you to
search, browse and listen to YouTube music content directly
from your MorphOS desktop. Built with C/MUI, it combines
the power of the YouTube Data API v3 with the native
MorphOS look and feel.

FEATURES
--------
- Fast YouTube search via official API (2-4 seconds)
- Display of results with title, channel and duration
- Thumbnail, statistics and description of the selected video
- Audio only or video + audio playback with MPlayer
- Search : all videos or music only (Live set, Mix, Official,
  Concert, Full album, DJ set...) or Films & animation
- Length filter (short / medium / long > 20 min, for films),
  sort order (relevance, newest, most viewed, best rated)
  and a "More results" button for the next page
- Python 3.14 and yt-dlp built in : a stream starts in ~5 s
- yt-dlp is downloaded and kept up to date automatically
- Favorites and playlists, with chained playback ("Play all")
- Iconify : playback continues

REQUIREMENTS
------------
- MorphOS 3.x
- MPlayer for MorphOS (BeWorld port)
  Available at : https://www.morphos-storage.net
- A network connection
- A free YouTube Data API v3 key :
  -- Go to https://console.cloud.google.com
     (Google account required - free)
  -- Create a new project
     -- "Select a project" -> "New project"
     -- Give it a name (e.g. "Medusa") -> "Create"
  -- Enable the YouTube API
     -- Left menu -> "APIs & services" -> "Library"
     -- Search for "YouTube Data API v3" -> "Enable"
  -- Create the API key
     -- Left menu -> "APIs & services" -> "Credentials"
     -- "+ Create Credentials" -> "API key"
     -- Copy the generated key (starts with AIza...)

Python 3.14 is included (the Python3.14 drawer) and does all the
network work : neither curl, the MorphOS SDK nor pip are needed.
MPlayer is the only program to install.

INSTALLATION
------------
1. Copy the Medusa drawer to your preferred location.
   Keep the Python3.14 drawer next to the Medusa program.
2. Select the Medusa icon, then Icon > Information, and fill
   in the tooltypes (see below) :
     APIKEY=   your YouTube key
     MPLAYER=  full path of MPlayer
3. Launch Medusa. The first launch takes a little longer :
   Medusa downloads yt-dlp from GitHub (about 3 MB) into the
   yt-dlp drawer and prepares it.

If something is missing, Medusa tells you which tooltype to
fill in and quits.

TOOLTYPES
---------
APIKEY=      (required) your YouTube Data API v3 key
MPLAYER=     (required) full path of MPlayer,
             e.g. Work:MPlayer/MPlayer
MAXRESULTS=  (optional) results per search, 10 to 50 (25)
ICONIFY=     (optional) WORKBENCH (default) or SCREENBAR
             (experimental: icon in the screen bar too)
VIDEOFORMAT= (optional) yt-dlp format for "Video + Audio".
             Default : 18/135+140/134+140/133+140/best
             (18 = picture and sound in one stream, always in sync)
PYTHONHOME=  (optional) drawer that contains lib/python3.14,
             default : the Python3.14 drawer next to Medusa

A tooltype between parentheses is ignored, e.g. (PYTHONHOME=...).

USAGE
-----
1. Type your search, choose the content, length and order
2. Click "Search" or press Return (~2-4 seconds)
   "More results" loads the next page
3. Click on a result to see its thumbnail and statistics
4. Click "Audio only" or "Video + Audio" (~5 seconds)
5. "Stop" stops the playback; MPlayer also closes by
   itself at the end of the video. In the video window :
   left/right = -10/+10 s, down/up = -1/+1 min,
   space = pause, f = full screen, q = quit
6. Iconify Medusa : the music keeps playing. Double-click the
   Medusa icon on the Workbench to open it again.

FAVORITES AND PLAYLISTS (menu "Playlists")
-------------------------------------------
- Select one or more videos (Shift or Ctrl + click), then
  "Add selection to Favorites" or "Add selection to playlist".
- Right-click in the results : add the selection to Favorites or to
  a playlist, listen, watch.
- "Favorites & playlists..." opens a separate window: playlists on
  the left, their videos on the right, with Audio, Video, Play all
  and Remove. Your search results stay untouched.
- Create a playlist: type a name, then "New".
- "Play all results" plays the search results from the selected one.
- Playlists are text files in the Playlists drawer.

SETTINGS
--------
The API key and the MPlayer path are asked at the first start and kept
in ENVARC:Medusa/Medusa.prefs : they survive Medusa updates. The icon
tooltypes still work (a non-empty tooltype wins).

PLAYBACK (menu "Playback")
--------------------------
- Pause, back/forward 10 s or 1 min, volume +/-, mute, with Amiga
  shortcuts. They drive MPlayer through its ARexx port; if your
  MPlayer has none, Medusa shows the keyboard keys instead.
- Keyboard shortcuts... : keys of the MPlayer video window.

INTERFACE
---------
- Search with the magnifier button or Return; the arrow button loads
  the next page of results.
- Hover the thumbnail to see views, likes and date.
- Buttons Audio, Video and Stop are under the description line.

KNOWN LIMITATIONS
-----------------
- yt-dlp has no JavaScript runtime on MorphOS : most videos
  work, some formats or videos may be unavailable
- YouTube API key is required (free, 10000 requests/day)
- Some YouTube content may be unavailable due to
  regional restrictions or age restrictions
- Python log (for bug reports) : T:medusa_python.log

CREDITS
-------
- Development           : Digitallytechno (MorphOS/PPC)
- FFmpeg/MPlayer port   : BeWorld
- yt-dlp project        : https://github.com/yt-dlp/yt-dlp
- Python                : Python Software Foundation
- YouTube API           : Google LLC
- meta-morphos.org      : Papiosaur
Third-party licences are in the Licences drawer.

CONTACT
-------
Website : https://medusa4morphos.netlify.app
Email   : digitallytechno@proton.me
Discord : Digitallytechno

================================================================
 Thank you for using Medusa !
 The first native YouTube music player for MorphOS.
================================================================
