{"id":25328785,"url":"https://github.com/jeremehancock/libretto","last_synced_at":"2025-07-09T03:04:05.047Z","repository":{"id":275157673,"uuid":"925280546","full_name":"jeremehancock/Libretto","owner":"jeremehancock","description":"A Plex Library Export Tool","archived":false,"fork":false,"pushed_at":"2025-03-04T21:03:30.000Z","size":55,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T04:05:41.770Z","etag":null,"topics":["plex","plex-media-server","plex-server","plexmediaserver"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jeremehancock.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-31T15:24:48.000Z","updated_at":"2025-03-24T23:51:18.000Z","dependencies_parsed_at":"2025-02-21T05:28:27.177Z","dependency_job_id":null,"html_url":"https://github.com/jeremehancock/Libretto","commit_stats":null,"previous_names":["jeremehancock/libretto"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jeremehancock/Libretto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremehancock%2FLibretto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremehancock%2FLibretto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremehancock%2FLibretto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremehancock%2FLibretto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeremehancock","download_url":"https://codeload.github.com/jeremehancock/Libretto/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremehancock%2FLibretto/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264384299,"owners_count":23599607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["plex","plex-media-server","plex-server","plexmediaserver"],"created_at":"2025-02-14T02:57:04.409Z","updated_at":"2025-07-09T03:04:04.994Z","avatar_url":"https://github.com/jeremehancock.png","language":"Python","funding_links":["https://www.buymeacoffee.com/jeremehancock"],"categories":[],"sub_categories":[],"readme":"# Libretto (for Plex)\n\n## Plex Library Metadata Exporter\n\n![Libretto](https://raw.githubusercontent.com/jeremehancock/Libretto/main/images/thumbnails/libretto-thumbnail.png \"Libretto\")\n\nLibretto is a powerful Python tool that exports detailed information from your Plex Media Server libraries into CSV format. It supports movies, TV shows, and music libraries with rich metadata extraction.\n\n## Features\n\n- Export complete library metadata to CSV files\n- Support for Movies, TV Shows, and Music libraries\n- Detailed metadata including titles, ratings, release dates, technical specifications, and more\n- Paginated data retrieval to handle large libraries efficiently\n- Configurable output locations\n- Progress tracking with colorful console output\n- Robust error handling and logging\n\n## Support this project\n\n[![Donate](https://raw.githubusercontent.com/jeremehancock/Posteria/main/images/donate-button.png)](https://www.buymeacoffee.com/jeremehancock)\n\n## Requirements\n\n- Python 3.6 or higher\n- A Plex Media Server\n- Plex authentication token\n\n### Dependencies\n\n```\nrequests\nurllib3\ncolorama\n```\n\n## Installation\n\n1. Clone the repository:\n```bash\ngit clone git@github.com:jeremehancock/Libretto.git\n```\n\n2. Change directory:\n```bash\ncd Libretto\n```\n\n3. Install required packages:\n```bash\npip install -r requirements.txt\n```\n\n## Configuration\n\nLibretto can be configured either through command-line arguments or a configuration file. On first run, a default configuration file will be created at `config/libretto.conf`.\n\n### Configuration File\n```ini\n# Libretto (for Plex) Configuration File\n# Location: config/libretto.conf\n\n###################\n# Server Settings #\n###################\n\n# Plex server URL (required)\nPLEX_URL=\"http://localhost:32400\"\n\n# Your Plex authentication token (required)\n# To find your token: https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/\nPLEX_TOKEN=\"\"\n\n###################\n# Export Settings #\n###################\n\n# Default output directory for exports\nOUTPUT_DIR=\"exports\"\n\n# Force overwrite existing files (true/false)\nFORCE=false\n\n###################\n# Debug Settings  #\n###################\n\n# Enable debug mode (true/false)\nDEBUG=false\n\n# Enable logging (true/false)\nENABLE_LOGGING=false\n\n# Whether to run in quiet mode (true/false)\nQUIET=false\n```\n\nYou can modify these settings by editing the file directly or override them using command-line options.\n\n## Usage\n\n### Basic Usage\n\nIf you haven't set your Plex token in the config file:\n```bash\n./libretto.py -t YOUR_PLEX_TOKEN [options]\n```\n\nIf you've already set your Plex token in the config file:\n```bash\n./libretto.py [options]\n```\n\n### Command Line Options\n\n```\n-t, --token TOKEN    Plex authentication token (required)\n-u, --url URL        Plex server URL (default: http://localhost:32400)\n-l, --list           List all libraries\n-n, --name NAME      Export specific library by name\n-o, --output FILE    Output file\n-d, --dir DIR        Output directory (default: exports)\n-f, --force          Force overwrite of existing files\n-q, --quiet          Quiet mode (no stdout output)\n-v, --debug          Debug mode (verbose output)\n--version            Show version information\n```\n\n## Export Format\n\n### Movies\nThe movie export includes:\n- Basic information (title, year, duration)\n- Technical details (resolution, audio/video codecs)\n- Metadata (ratings, genres, cast, crew)\n- File information (size, container format)\n- Timestamps (added, updated)\n\n### TV Shows\nThe TV show export includes:\n- Series information (title, episodes, seasons)\n- Metadata (ratings, genres, cast)\n- Air dates and availability\n- Production details (studio, content rating)\n\n### Music\nThe music export includes:\n- Artist and album information\n- Release year\n- Genres\n- Studio/Label\n- Added/Updated timestamps\n\n## Development\n\n### Project Structure\n```\nlibretto/\n├── libretto.py        # Main script\n├── config/            # Configuration files\n│   └── libretto.conf\n├── exports/           # Default export directory\n├── logs/              # Log files\n└── requirements.txt   # Requirements file\n```\n\n### Error Handling\n\nLibretto includes comprehensive error handling:\n- File system permission checks\n- Network connectivity issues\n- Invalid authentication\n- Malformed responses\n- Concurrent execution prevention\n\n## Importers\n\nLibretto includes imports for Radarr and Sonarr. Check them out [here](https://github.com/jeremehancock/Libretto/tree/main/importers#importer-scripts-for-libretto).\n\n## Note\n\nLibretto needs to be on the same network as your Plex Media Server to run. \n\nIf you want to connect remotely you will need to use something like [Tailscale](https://tailscale.com) to ensure that Libretto can communicate with your Plex Media Server.\n\n## License\n\n[MIT License](LICENSE)\n\n## AI Assistance Disclosure\n\nThis tool was developed with assistance from AI language models.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeremehancock%2Flibretto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeremehancock%2Flibretto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeremehancock%2Flibretto/lists"}