mps_youtube.commands.search module

mps_youtube.commands.search.cache_userdata(userterm, username, channel_id)

Cache user name and channel id tuple

mps_youtube.commands.search.channelfromname(user)

Query channel id from username.

mps_youtube.commands.search.generate_search_qs(term, match='term')

Return query string.

mps_youtube.commands.search.get_pl_from_json(pldata)

Process json playlist data.

mps_youtube.commands.search.get_track_id_from_json(item)

Try to extract video Id from various response types

mps_youtube.commands.search.get_tracks_from_json(jsons)

Get search results from API response

mps_youtube.commands.search.mix(num)

Retrieves the YouTube mix for the selected video.

mps_youtube.commands.search.num_repr(num)

Return up to four digit string representation of a number, eg 2.6m.

Search for YouTube playlists.

term can be query str or dict indicating user playlist search.

mps_youtube.commands.search.related(num)

Show videos related to to vid num.

Fetch uploads by a YouTube user.

mps_youtube.commands.search.search(term)

Perform search.

mps_youtube.commands.search.token(page)

Returns a page token for a given start index.

mps_youtube.commands.search.user_more(num)

Show more videos from user of vid num.

mps_youtube.commands.search.user_pls(user)

Retrieve user playlists.

mps_youtube.commands.search.userdata_cached(userterm)

Check if user name search term found in cache

mps_youtube.commands.search.usersearch(q_user, identify='forUsername')

Fetch uploads by a YouTube user.

mps_youtube.commands.search.usersearch_id(user, channel_id, term)

Performs a search within a user’s (i.e. a channel’s) uploads for an optional search term with the user (i.e. the channel) identified by its ID

mps_youtube.commands.search.yt_url(url, print_title=0)

Acess videos by urls.

mps_youtube.commands.search.yt_url_file(file_name)

Access a list of urls in a text file