Skip to main content

Download / Sync library from iBroadcast on Linux machines

Project description

iBroadcast Download / Sync

This project was born from a need to download my library from iBroadcast onto my linux machine. Only the OSX and Windows app support this functionality. This project uses the existing ibroadcast-python library and extends the iBroadcast class to add a download_library method.

In addition to using this as a Python library, it also has a small CLI to help automate doing library downloads.

Usage

This project can be used as both a Python library and CLI.

CLI

Installation

pipx

pipx is available for Linux, OSX, and Windows. Follow the install instructions first for pipx then the following:

pipx install ibroadcast-dl

Usage

To use the CLI, run the ibroadcast-dl command:

ibroadcast-dl --username ibroadcast@email.tld ~/Music/

This will open a progress bar - if your library is large it'll take several hours to sync. If you connection is slow try turing down the number of tracks it downloads at a time (defaults 50) to something around 10:

ibroadcast-dl -u ibroadcast@email.tld -x 10 ~/Music/

Python Library

The module has the same method sigrnatures and usage as the ibroadcast-python library with the addition of a download_library method.

>>> import ibroadcastdl
>>> ib = ibroadcastdl.iBroadcastDL("email", "password")
>>> download_dir = "./Music"
>>> offset = 0
>>> while offset < len(ib.tracks):
...     ib.download_library(offset, 50, download_dir)
...     offset = offset + 50

This will download the entire library 50 tracks at a time.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ibroadcast_dl-1.1.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

ibroadcast_dl-1.1.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file ibroadcast_dl-1.1.2.tar.gz.

File metadata

  • Download URL: ibroadcast_dl-1.1.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for ibroadcast_dl-1.1.2.tar.gz
Algorithm Hash digest
SHA256 7868f42c304a7b09f1aa28ae595543d6f28843b99d2d6caeacf6f8be9ed2e9bd
MD5 94a9504759b1c1170d4a9ec3215a643d
BLAKE2b-256 19209106edfffb329a53b1a8cd6e7681144b9b1dc87b18e53c7d06c855119a13

See more details on using hashes here.

Provenance

File details

Details for the file ibroadcast_dl-1.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for ibroadcast_dl-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 15976cc99a7894a0b4da521360f133902d8bdb106776d7cba44c2722a3d9fdee
MD5 28e536b4063343eaf09662aed566fd1d
BLAKE2b-256 c37cfe84fd9e44a5916679dc7e33f32a9672a693d6181bb9dba736ef92448311

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page