GithubHelp home page GithubHelp logo

yaboroda / dzshuffled Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 222 KB

This script will create playlist in your Deezer library consisting of shuffled tracks from your other playlists.

License: MIT License

Python 100.00%
python python3 cli linux deezer deezer-api

dzshuffled's Introduction

codecov

this project is abandoned

dzshuffled

This script will create playlist in your Deezer library consisting of shuffled tracks from your other playlists. I write it to overcome track number limit for playlist. I have playlists for work work 1, work 2, work 3. And script select random 1000 tracks from all of them and make with it new playlist.

This script writing on linux and for linux, but it works on windows too.

requirements:

install on linux

you can just download current version of script

$ wget -O dzshuffled-master.zip https://github.com/yaboroda/dzshuffled/archive/master.zip;
$ unzip dzshuffled-master.zip;
$ cd dzshuffled-master;

or you can clone git repo

$ git clone https://github.com/yaboroda/dzshuffled;
$ cd dzshuffled/;

then make symlink

$ sudo ln -s $(pwd)/dzshuffled /usr/bin/dzshuffled

install and use on windows

Chapter in development. Write me if you need it and i will do it ASAP. Now it isn't my priority.

register Deezer app

To run this script you must register your own Deezer app and write Application ID and Secret Key in config.

config

Config by default in ~/.config/dzshuffled/config.ini but you can reassign it with DZSHUFFLED_CONFIG_PATH environment variable

Fill app_id and secret, token will be fetched by script
Web-server will be started on port from config to receive Deezer answer to authentication

pl_example section is scenario to make playlist named 'Example shuffled playlist' with tracks of playlists from source option.

you can write as many scenarios as you like, but sections names must begin with pl_

playlists in source options should be separated with comma and space

[system]
port = 8090
editor = vim
browser = chrome

[auth]
token = 
app_id = 
secret = 

[pl_example]
title = Example shuffled playlist
type = shuffled
source = playlist 1, playlist 2
limit = 1000

usage

edit config file in Vim, you can specify editor in config

$ dzshuffled -e

show list of scenarios in config file

$ dzshuffled -l

show list of scenarios in config file with more info about them

$ dzshuffled -lv

show info about scenario number 0

$ dzshuffled -i 0

show info about scenario with name pl_example

$ dzshuffled -i pl_example

run scenario with name pl_example

$ dzshuffled pl_example

to show help message run script without parameters

$ dzshuffled

usage: dzshuffled [-h] [-l] [-v] [-i] [-e] [--editor EDITOR] [-d] [--version]
                  [SCENARIO]

This script will create playlist in your Deezer library consisting of shuffled
tracks from your other playlists. Pass scenario name or number to create
playlist from it. Pass -l or -lv to see all scenarios. Scenarios sets up in
config wich by default in ~/.config/dzshuffled/config.ini but you can reassign
it with DZSHUFFLED_CONFIG_PATH environment variable.

positional arguments:
  SCENARIO         name or number of scenario. Pass -l argument to see full
                   list

optional arguments:
  -h, --help       show this help message and exit
  -l, --list       show full list of scenarios to create playlist from, pass
                   -v param to show info about them
  -v, --verbous    if called with argument -l, show info about listed
                   scenarios
  -i, --info       show info about selected scenario but not do anithing
  -e, --edit       edit config file vith editor specified in config, by
                   default it is Vim
  --editor EDITOR  edit config with passed program instead of editor from
                   config
  -d, --debug      debug mode for output full trace of exceptions
  --version        show script version

unit tests

tests info

dzshuffled's People

Contributors

yaboroda avatar

Stargazers

 avatar  avatar

Watchers

 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.