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

classmethod attach_client(client)[source]#
property client#

Get the client

async folder()[source]#
async classmethod from_base64(base64_string, lazy=False)[source]#
async classmethod from_string(query, dont_search=False, lazy=False)[source]#
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).

async get_all_tracks_in_folder()[source]#
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_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_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#
merge(query, source=False, search=False, start_time=False, index=False, recursive=False)[source]#
classmethod process_applemusic(match, query)[source]#
classmethod process_mixcloud(match, query)[source]#
property query_identifier#
async query_to_queue(max_length=None, name_only=False)[source]#
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_length

  • with_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#
to_dict()[source]#
classmethod update_local_file_cls(local_file_cls)[source]#
with_index(index)[source]#