Coder Social home page Coder Social logo

lib-ibroadcast's Introduction

lib_ibroadcast

A simple command line script with helper functions, developed for convenient creation of playlists

Usage:

.. code-block:: python

from lib_ibroadcast import ciBroadCast
oiBroadCast = ciBroadCast()
oiBroadCast.Login(uUserName='your ibroadcast email',uPassword='ypur ibroadcast password')
# uncomment one or both
# oiBroadCast.SelectAlbumsByAlbumName(uFilter='Metal-Hard Rock Covers*')
# oiBroadCast.SelectTracksByFolder(uFolder='Musik/Full Albums/Sampler')
oiBroadCast.CreatePlayList(uName='My Playlist',uDescription='My Playlist Description',bPublic=False)
oiBroadCast.Logout()

Requirements:

  • Python 3.8 minimum
  • Requests library

Functions:

  • InitLogger: Initializes the python logger. Can be subclassed if required
  • Login: Logon to iBroadcast with your given credentials
  • Logout: as it says
  • GetLibrary: Reads the user library from iBroadcast
  • SelectTracksByFolder: Selects all songs/track withi a given folder or part of the folder tree
  • SelectAlbumsByAlbumName: Select all albums with a given album name. Basic wildcard match (*/?) is supported
  • CreatePlayList: Creates a playlist from the selected albums or songs
  • DeletePlayList: Deletes a playlist, not working by now

Limitations:

It is designed to perform instructions straight forward. Changes to the library or not refreshed after a change This hasn't been heavily tested , but works fine for me

Undocumented stuff

The iBroadcast API is very new - first released in 2021-03. We've discovered some undocumented endpoints, which may or may not work, and may stop working at any time. Caveat, programmator!

Library:

  • GetMD5s: Reads and caches the MD5 checksums of all the tracks in the user library from iBroadcast.

Tracks:

  • UploadTrack: Upload a track to iBroadcast and add it to the user library. Adds the track's MD5 checksum to the cache if successful.

Other:

  • GetSupportedFiletypes: Reads the list of supported media filetypes from iBroadcast.

lib-ibroadcast's People

Contributors

rosspatterson avatar thica avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.