pylav.players.query.obj package¶
Module contents¶
- class pylav.players.query.obj.Query(query, source, search=False, start_time=0, index=0, query_type=None, recursive=False, special_local=False)[source]¶
Bases:
object
- property client¶
Get the client
- classmethod from_string_noawait(query)[source]¶
Same as from_string but synchronous - which makes it unable to process localtracks, base64 queries or playlists (M3U, PLS, PyLav).
- index¶
- property invalid¶
- property is_album¶
- property is_apple_music¶
- property is_bandcamp¶
- property is_clypit¶
- property is_custom_playlist¶
- property is_deezer¶
- property is_flowery_tts¶
- property is_gctts¶
- property is_getyarn¶
- property is_http¶
- property is_lavasearch¶
- property is_local¶
- property is_m3u¶
- property is_mixcloud¶
- property is_niconico¶
- property is_ocremix¶
- property is_playlist¶
- property is_pls¶
- property is_pornhub¶
- property is_pylav¶
- property is_reddit¶
- property is_search¶
- property is_single¶
- property is_soundcloud¶
- property is_soundgasm¶
- property is_speak¶
- property is_spotify¶
- property is_tiktok¶
- property is_twitch¶
- property is_vimeo¶
- property is_xspf¶
- property is_yandex_music¶
- property is_youtube¶
- property is_youtube_music¶
- property query_identifier¶
- async query_to_string(max_length=None, name_only=False, add_ellipsis=True, with_emoji=False, no_extension=False)[source]¶
Returns a string representation of the query.
- Parameters:
max_length (
int
) – The maximum length of the string.name_only (
bool
) – If True, only the name of the query will be returned Only used for local tracks.add_ellipsis (
bool
) – Whether to format the string with ellipsis if it exceeds the max_lengthwith_emoji (
bool
) – Whether to add an emoji to returned name if it is a local track.no_extension (
bool
) – Whether to remove the extension from the returned name if it is a local track.
- property requires_capability¶
- property source¶
- property source_abbreviation¶
- start_time¶