Join two to four youtube playlists into viewsync links. Joining is accomplished by episode numbers, collected from video titles.
Project description
Join two to four youtube playlists into combined viewsync links. Joining is accomplished by episode numbers, collected from video titles.
Supports *nix and Windows.
Usage
plz "PL1O4GjhJgk40spOiTqpdh5rmp8z6lbpHQ" "PLlwKCy51_4YjSUB4gshARQIdFKOQ7wIqR"
Where positional arguments are playlist IDs retrieved from youtube. These are “list” GET parameters, visible in URL when you browse to any playlist page on youtube.
You can also specify regular expressions to be used to pick out episode numbers, directly via command line options. Useful for cases where default regex fail to get the correct episode number, or if you want to filter some videos out. All regular expressions have to contain one capturing group in them (specified by “([0-9]{1,2})” usually) – capturing the episode number.
plz --third-regex="Mathas ([0-9]{1,2})" \
"PL1bauNEiHIgyqZ2B_x9kJWVX_dlDKv1cF" \
"PLrIoJm0QOWUp-KwSJHNGGODWZCpVnu6km" \
"PLH-huzMEgGWD5f_ItXeqF-qBoxkhNUNex"
Regular expression options can be specified several times, it will try them until it gets a match, in order, starting with the first one.
plz --third-regex="#([0-9]{1,2})" \
--third-regex="Mathas ([0-9]{1,2})" \
"PL1bauNEiHIgyqZ2B_x9kJWVX_dlDKv1cF" \
"PLrIoJm0QOWUp-KwSJHNGGODWZCpVnu6km" \
"PLH-huzMEgGWD5f_ItXeqF-qBoxkhNUNex"
- Synopsis:
plz [-h] [–first-regex FIRST_REGEX] [–second-regex SECOND_REGEX] [–third-regex THIRD_REGEX] [–fourth-regex FOURTH_REGEX] playlists [playlists …]
For each of joined episodes, output includes a title of the video of the first specified playlist, followed by viewsync URL. Use --omit-title to get only viewsync URLs as an output.
Contribute
Issue Tracker: gitlab.com/rossvor/playlistzip/issues
Source Code: gitlab.com/rossvor/playlistzip
Copyright and License
Copyright 2019 Ross Vorotynskij
The project is licensed under the GPL-3.0+ license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for playlistzip-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cde2e7b25985e66a84a914798b77bc42a02c32cc25ddd936dba9682e889ab0a |
|
MD5 | 460b2e5e5eec16582fa87c10e05f9a59 |
|
BLAKE2b-256 | d177fbb2767bb4928297ec7c2ad582053c3e93a58c51ae27960ed9485a071511 |