ytmusic
YTMusic module for downloading and searching songs.
YouTubeMusic(*args, **kwargs)
¤
Bases: AudioProvider
YouTube Music audio provider class
Arguments¤
- args: Arguments passed to the
AudioProviderclass. - kwargs: Keyword arguments passed to the
AudioProviderclass.
Source code in spotdl/providers/audio/ytmusic.py
31 32 33 34 35 36 37 38 39 40 41 42 | |
get_results(search_term, log_search_failures=True, **kwargs)
¤
Get results from YouTube Music API and simplify them
Arguments¤
- search_term: The search term to search for.
- log_search_failures: Whether to log when a search returns no usable results.
- kwargs: other keyword arguments passed to the
YTMusic.searchmethod.
Returns¤
- A list of simplified results (dicts)
Source code in spotdl/providers/audio/ytmusic.py
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 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | |