Skip to main content

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

Metadata

Release files for sync-dl-ytapi 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for sync-dl-ytapi 1.1.2
File Interpreter ABI Platform
sync_dl_ytapi-1.1.2-py3-none-any.whl Python 3 none any Details

Release files / sync_dl_ytapi-1.1.2-py3-none-any.whl

Download URL sync_dl_ytapi-1.1.2-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b73cd2a36e26a02f2da2e478330b8e09b6ef1028909ad8680e22831da8d6184
BLAKE2b-256 checksum
How to use checksums
ddf77e74e2da35b6960e9f16252198801e8d837763a2559fa8feff716ac19186
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.1.2 This release

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.0

1 release file

0.2.0

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page