ytmusic
YTMusic module for downloading and searching songs.
YouTubeMusic(*args, **kwargs)
¤
Bases: AudioProvider
YouTube Music audio provider class
Arguments¤
- args: Arguments passed to the
AudioProvider
class. - kwargs: Keyword arguments passed to the
AudioProvider
class.
Source code in spotdl/providers/audio/ytmusic.py
27 28 29 30 31 32 33 34 35 36 37 38 |
|
get_results(search_term, **kwargs)
¤
Get results from YouTube Music API and simplify them
Arguments¤
- search_term: The search term to search for.
- kwargs: other keyword arguments passed to the
YTMusic.search
method.
Returns¤
- A list of simplified results (dicts)
Source code in spotdl/providers/audio/ytmusic.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
|