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
53 54 55 56 57 58 59 60 61 62 63 64 | |
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
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 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 | |
is_view_count(name)
¤
Check if an artist name from YouTube Music is actually a view count
Arguments¤
- name: The artist name to check.
Returns¤
- True if the name is a German view count string, False otherwise.
Source code in spotdl/providers/audio/ytmusic.py
26 27 28 29 30 31 32 33 34 35 36 37 38 | |