Added Lyrics w. Timestamps #662 (#693)

* Added Lyrics w. Timestamps

Added `get_lyrics_with_timestamps` to get lyrics with timestamps.
The Method doesn't try to parse the response as normal lyrics, if no lyrics with timestamps are returned. (could be changed to do so tho, the format is the same)

* Update browsing.py

* Combined both get_lyrics methods into one and fixed some typechecking errors

* Fixed a missing hasTimestamps and added the doccomments to the overloads, because vscode didn't show them otherwise

* Removed the old get_lyrics_with_timestamps method

because idk where it came from...

* fixed remaining issues

* Update uploads.py

reverted some changes that I moved to an extra PR

* removed variable `context` from the Mixin, as it's use was replaced by `yt.as_mobile()`

* fix some formatting complaints by ruff and mypy

* please the linter

* fix union syntax

* improve typing in ytmusic.py

* improve typing

* replace docsbuild.yml with RTD

---------

Co-authored-by: Hendrik Horstmann <65970327+heinrich26@users.noreply.github.com>
Co-authored-by: henrich26 <hendrik-horstmann@o2mail.de>
This commit is contained in:
sigma67 2024-12-17 22:12:06 +01:00 • committed by GitHub
commit b86654fbaf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 246 additions and 82 deletions

View file

@ -1,33 +0,0 @@
name: Build Documentation
on:
push:
branches:
- main
paths:
- ytmusicapi/**
- docs/**
pull_request:
branches:
- main
paths:
- ytmusicapi/**
- docs/**
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install . sphinx sphinx-rtd-theme
- name: Build documentation
run: |
cd docs
make html