Skip to main content

An addon for sync-dl, providing commands which utilize the youtube api

Project description

sync-dl-ytapi

An addon for sync-dl, providing commands which utilize the youtube api

INSTALLATION

First install sync-dl:

pip install sync-dl

Using any commands in sync-dl which require this addon will prompt the user to install this addon.

ABOUT

Provides sync-dl the ability to edit remote playlists on youtube through the youtube-api

Usage

Push Order Command:

sync-dl ytapi --push-order PLAYLIST

This will prompt you to install sync-dl-ytapi if you have not already, and will print out the url to log in with google. Once you have done this it will push the local order of PLAYLIST to youtube, reordering songs to match the local order (songs in remote but not in local will always stay after what they are currently after)

PLAYLIST is simply the name of the directory which contains the playlist. playlist directory will always be in current working directory unless a music directory is specified using the -l, --local-dir option to hard set a music directory.

You can also logout (revoke the access tokens and delete the saved credentials) using the following command

sync-dl ytapi --logout

To see all options use the command:

sync-dl ytapi -h

Transfer Command:

sync-dl ytapi transfer [OPTINOS] SRC_PLAYLIST DEST_PLAYLIST

Transfers songs between SRC_PLAYLIST and DEST_PLAYLIST on both local and remote, moving a single song using -t SI DI or a range of songs -r S1 S2 DI

To see all options as well as a more indepth description use the command:

sync-dl ytapi transfer -h

DEVLOPMENT

To build for devlopment run:

git clone https://github.com/PrinceOfPuppers/sync-dl-ytapi.git

cd sync-dl-ytapi

pip install -e .

This will build and install sync-dl in place, allowing you to work on the code without having to reinstall after changes, it will also install sync-dl as it is a dependancy

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

sync_dl_ytapi-1.1.2-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sync_dl_ytapi-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.11 tqdm/4.62.3 importlib-metadata/6.0.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.10.10

File hashes

Hashes for sync_dl_ytapi-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0b73cd2a36e26a02f2da2e478330b8e09b6ef1028909ad8680e22831da8d6184
MD5 79739c2a8d420361cf236b962243206e
BLAKE2b-256 ddf77e74e2da35b6960e9f16252198801e8d837763a2559fa8feff716ac19186

See more details on using hashes here.

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