mps_youtube.commands.songlist module¶
-
mps_youtube.commands.songlist.dump(un)¶ Show entire playlist.
-
mps_youtube.commands.songlist.nextprev(np, page=None)¶ Get next / previous search results.
-
mps_youtube.commands.songlist.paginatesongs(func, page=0, splash=True, dumps=False, length=None, msg=None, failmsg=None, loadmsg=None)¶ A utility function for handling lists of songs, so that the pagination and the dump command will work properly.
Parameters: - func – Either a function taking a start and end index,
or a slicable object. Either way, it should produce an iterable
of
mps_youtube.playlist.Videoobjects. - page (int) – The page number to display
- splash (bool) – Whether or not to display a splash screen while loading.
- dumps (bool) – Used by
dump()command to load all songs, instead of only those that fit on a page - length (int) – The total number of songs. It it is not provided,
len(func)will be used instead. - msg (str) – Message to display after loading successfully
- failmsg (str) – Message to display on failure (if no songs are returned by func
- loadmsg (str) – Message to display while loading
- func – Either a function taking a start and end index,
or a slicable object. Either way, it should produce an iterable
of
-
mps_youtube.commands.songlist.plist(parturl)¶ Retrieve YouTube playlist.
-
mps_youtube.commands.songlist.reverse_playlist()¶ Reverse order of entire loaded playlist.
-
mps_youtube.commands.songlist.reverse_songs()¶ Reverse order of displayed items.
-
mps_youtube.commands.songlist.reverse_songs_range(lower, upper)¶ Reverse the songs within a specified range.
-
mps_youtube.commands.songlist.shuffle_fn()¶ Shuffle displayed items.
-
mps_youtube.commands.songlist.songlist_mv_sw(action, a, b)¶ Move a song or swap two songs.
-
mps_youtube.commands.songlist.songlist_rm_add(action, songrange)¶ Remove or add tracks. works directly on user input.