MCPcopy Create free account

hub / github.com/dev-topsoil/slopsoil / functions

Functions394 in github.com/dev-topsoil/slopsoil

↓ 91 callersMethodu
(self, n: int)
streaming/video_player.py:112
↓ 59 callersMethodue
(self)
streaming/video_player.py:122
↓ 20 callersMethodread
(self)
streaming/video_player.py:753
↓ 18 callersFunction_make_voice_state
(channel=MagicMock())
tests/test_voice.py:33
↓ 14 callersMethodjoin
(self, ctx: commands.Context)
cogs/voice.py:25
↓ 13 callersFunctionresolve_voice
Return (guild, author_voice_channel, bot_voice_client) for guild and DM contexts. Voice state is read directly from guild._voice_states rath
cogs/utils.py:12
↓ 12 callersFunctionget_user_role
Return the highest Role that applies to *user_id*. Evaluated in priority order: admin > friend > guild member > none. Accepts any object that
permissions.py:40
↓ 10 callersFunction_parse_episode_query
Split 'show name s02e01' into ('show name', 2, 1). Returns (query, None, None) if no match.
cogs/jellyfin.py:27
↓ 9 callersFunction_make_bot
( allowed_ids: set[int] | None = None, friend_ids: set[int] | None = None, guild_member_ids: set[i
tests/test_permissions.py:50
↓ 9 callersFunction_make_cog
()
tests/test_voice.py:18
↓ 9 callersFunction_make_member
(guild, user_id: int = 1)
tests/test_voice.py:25
↓ 9 callersMethodon_voice_state_update
( self, member: discord.Member, before: discord.VoiceState, after: discord.Voi
cogs/voice.py:106
↓ 8 callersFunction_fmt_item
Return a human-readable label for a Jellyfin item.
cogs/jellyfin.py:36
↓ 8 callersFunction_make_guild
Build a guild whose voice client sits in vc_channel with given members.
tests/test_voice.py:39
↓ 8 callersMethod_wait_for_number
Wait up to 10 s for the user to reply with a number in [1, max_val]. Returns None on timeout or if the user starts a new command. New
cogs/jellyfin.py:59
↓ 8 callersFunctionprobe_stream
Run ffprobe on a stream URL and return video + audio stream info. Returns a dict with codec, fps, profile, has_b_frames, width, height, and h
services/probe.py:18
↓ 8 callersMethodse
(self)
streaming/video_player.py:130
↓ 7 callersFunction_apply_filter
Mirrors the inline filter in the channels command.
tests/test_tv.py:27
↓ 7 callersMethod_cancel_schedule
(self, guild_id: int)
cogs/tv.py:93
↓ 7 callersFunction_mock_response
Return a context-manager mock that yields a response with JSON body.
tests/test_jellyfin.py:160
↓ 7 callersFunction_stream_fps
Output frame rate. STREAM_FPS (1-60) overrides the STREAM_QUALITY preset. Matching the source fps avoids wasteful frame duplication.
streaming/video_player.py:430
↓ 7 callersFunction_stream_preset
(resolution, fps, bitrate) selected by STREAM_QUALITY (720p/1080p/4k); defaults to 1080p — the historical hardcoded profile.
streaming/video_player.py:399
↓ 7 callersFunction_stream_resolution
Output size as 'W:H' for the scaler. STREAM_RESOLUTION (accepts '1280:720' or '1280x720') overrides the STREAM_QUALITY preset.
streaming/video_player.py:413
↓ 7 callersFunctionensure_voice
Return a voice client that is *actually connected* to ``voice_channel``. ``guild.voice_client`` can linger as a disconnected client after the bot
cogs/utils.py:52
↓ 7 callersMethodstop
(self)
streaming/golive.py:446
↓ 6 callersFunction_fmt_time
Format a Unix timestamp as a human-readable time in the configured timezone.
cogs/tv.py:66
↓ 6 callersFunction_get_display_tz
()
cogs/tv.py:56
↓ 6 callersFunction_make_ctx
(author_id: int = 1, channel_id: int = 10)
tests/test_jellyfin.py:19
↓ 6 callersFunction_make_ctx
( *, in_guild: bool = True, author_in_voice: bool = True, bot_in_voice: bool = False, auth
tests/test_utils.py:16
↓ 6 callersFunction_make_ffprobe_result
(returncode: int, stdout: str = "", stderr: str = "")
tests/test_iptv.py:28
↓ 6 callersFunction_make_jellyfin_cog
(client=None)
tests/test_jellyfin.py:27
↓ 6 callersFunction_packet_pace_fraction
Fraction of the frame interval to spread each frame's RTP packets across, instead of bursting them (see _DEFAULT_PACKET_PACE). STREAM_PACKET_PACE,
streaming/video_player.py:385
↓ 6 callersMethod_save
(self)
services/sources.py:55
↓ 6 callersFunction_stream_bitrate
Target video bitrate for -b:v/-maxrate/-bufsize (e.g. '2500k'). STREAM_VIDEO_BITRATE overrides the STREAM_QUALITY preset.
streaming/video_player.py:424
↓ 6 callersFunction_yt_format
yt-dlp format selector used to download `!play <URL>` VODs. Defaults to `_DEFAULT_YT_FORMAT` (best available video+audio). Override via the
services/ytdlp.py:23
↓ 6 callersMethoddisconnect
Stop the go-live stream and release all resources.
streaming/golive.py:350
↓ 6 callersFunctionextract_hls_variant_url
If master_url is an HLS master playlist, fetch it and return the URL of the highest-bandwidth variant stream. Otherwise return master_url unc
services/hls.py:18
↓ 6 callersMethodget_stream_url
Start a Jellyfin playback session and return the HLS stream URL. Uses POST /Items/{id}/PlaybackInfo with a DeviceProfile that requests
services/jellyfin.py:60
↓ 6 callersMethodset_passthrough_mode
(self, passthrough: bool, transition_expiry=None)
davey_compat.py:177
↓ 5 callersFunction_make_channel
Return (channel, the_vc_its_connect_yields).
tests/test_utils.py:154
↓ 5 callersFunction_make_vc
(channel, *, connected: bool = True)
tests/test_utils.py:145
↓ 5 callersFunction_mock_urlopen
Return a context-manager mock that yields a response with the given text body.
tests/test_iptv.py:19
↓ 5 callersMethod_start_stream
( self, send: Callable, guild: discord.Guild, voice_channel: discord.VoiceChan
cogs/tv.py:99
↓ 5 callersFunctioncancel_stream
Cancel any active camera stream and video player for a guild.
streaming/engine.py:48
↓ 5 callersMethodprocess_proposals
Called by gateway.py with (ProposalsOperationType, msg[4:]). discord.py-self extracts the proposals_op_type byte from msg[3] and
davey_compat.py:180
↓ 4 callersMethod_get_user_id
Fetch and cache the first Jellyfin user ID. PlaybackInfo requires a UserId even with API key auth — without it Jellyfin returns 400.
services/jellyfin.py:33
↓ 4 callersMethod_start_iptv_stream
Probe, validate, and start an IPTV stream. Always transcodes to baseline H.264 (live=True) so Discord receives a compatible bitstream
cogs/tv.py:126
↓ 4 callersFunction_streams_json
(video: dict | None = None, audio: dict | None = None)
tests/test_iptv.py:36
↓ 4 callersFunction_test_encoder
Return True if FFmpeg can actually use this encoder (device/driver check). Mirrors the real encode pipeline: hardware encoders (notably VA-API) r
streaming/video_player.py:453
↓ 4 callersFunction_yt_remove_dir
(path: str)
services/ytdlp.py:66
↓ 4 callersMethodfind_episode
Find a specific episode by series name, season number, and episode number. Searches for the series by name first, then walks seasons → episod
services/jellyfin.py:165
↓ 4 callersMethodsearch
Search the TV guide by show title. If the show is on now, switches to it immediately. If it's coming up (within 24 h), offers
cogs/tv.py:494
↓ 3 callersMethod_kill_proc
SIGTERM then SIGKILL if needed, then reap.
streaming/video_player.py:844
↓ 3 callersFunction_make_playback_response
(transcoding_url: str | None = None, direct_url: str | None = None)
tests/test_jellyfin.py:194
↓ 3 callersMethod_play_item
Resolve voice, probe the Jellyfin HLS stream, and start streaming.
cogs/jellyfin.py:88
↓ 3 callersMethod_tvh_active
Whether TVheadend should be queried for the current request. True only when a client is configured (credentials present) and the sour
cogs/tv.py:78
↓ 3 callersMethodclose
(self)
bot.py:79
↓ 3 callersMethodconnect
Signal go-live to Discord, negotiate the stream voice connection, and start the background WebSocket heartbeat task.
streaming/golive.py:214
↓ 3 callersMethodencrypt_opus
DAVE-encrypt an Opus frame before transport encryption.
davey_compat.py:223
↓ 3 callersMethodget_episodes
Return all episodes for a season, ordered by IndexNumber.
services/jellyfin.py:203
↓ 3 callersMethodget_iptv_channels
Return all channels from enabled sources with a 'source' field added.
services/sources.py:164
↓ 3 callersMethodget_seasons
Return all seasons for a series, ordered by IndexNumber.
services/jellyfin.py:188
↓ 3 callersMethodget_sources
Return a shallow copy of the sources list.
services/sources.py:71
↓ 3 callersFunctionstart_live_stream
Connect to voice and begin a go-live screenshare stream. Unlike start_stream() which uses the camera/self-video path, this function send
streaming/engine.py:189
↓ 3 callersMethodstream_url
(self, uuid: str)
services/tvheadend.py:135
↓ 2 callersFunction_copy_hrd
(r: _BR, w: _BW)
streaming/video_player.py:183
↓ 2 callersMethod_do_init
(self)
davey_compat.py:113
↓ 2 callersFunction_find_iptv_channel
(channels: list[dict], query: str)
cogs/tv.py:51
↓ 2 callersFunction_get_epg_url
Return the url-tvg / x-tvg-url attribute from the #EXTM3U header, if present.
services/m3u.py:58
↓ 2 callersMethod_get_recognized_users
Build the set of string user IDs that libdave should trust. Always includes the bot itself; adds current voice-channel members
davey_compat.py:121
↓ 2 callersFunction_libopenh264_config
libopenh264 software encoder config — the primary on machines without a working GPU encoder, and the runtime fallback (see _SW_ENCODER) when a
streaming/video_player.py:611
↓ 2 callersFunction_nal_type
(nal: bytes)
streaming/video_player.py:645
↓ 2 callersFunction_parse_attrs
(line: str)
services/m3u.py:20
↓ 2 callersFunction_parse_xmltv_dt
Parse an XMLTV datetime string such as '20260519120000 +0000'.
services/epg.py:21
↓ 2 callersMethod_pick_episode
List episodes for a season and ask the user to pick one.
cogs/jellyfin.py:161
↓ 2 callersMethod_pick_season_then_episode
Fetch seasons for a series, prompt for one (or skip if only one), then pick an episode.
cogs/jellyfin.py:190
↓ 2 callersMethod_refresh_key
Pull our own key ratchet from the MLS session → give it to Encryptor.
davey_compat.py:137
↓ 2 callersFunction_safe_url
Strip credentials (user:pass and api_key= query param) for safe logging.
streaming/engine.py:36
↓ 2 callersMethod_stream
(self)
streaming/video_player.py:1077
↓ 2 callersFunction_write_restriction
()
streaming/video_player.py:263
↓ 2 callersMethodget_channels
(self)
services/tvheadend.py:45
↓ 2 callersMethodreset
(self)
davey_compat.py:162
↓ 2 callersFunctionrewrite_sps_vui
Rewrite H.264 SPS NAL unit to force bitstream_restriction_flag=1 and max_num_reorder_frames=0. Discord requires both or rejects with Error 2
streaming/video_player.py:352
↓ 2 callersMethodrun
(self)
streaming/golive.py:449
↓ 2 callersMethodrun
(self)
streaming/video_player.py:856
↓ 2 callersMethodsearch
Search Jellyfin for movies, series, and episodes matching query.
services/jellyfin.py:145
↓ 2 callersMethodsend_packet
Send a raw RTP packet to the go-live stream server.
streaming/golive.py:343
↓ 1 callersMethod__init__
(self, conn: GoLiveConnection)
streaming/golive.py:399
↓ 1 callersMethod__init__
(self, data: bytes)
streaming/video_player.py:105
↓ 1 callersFunction_av_sync_ms
A/V lip-sync offset in milliseconds (STREAM_AV_SYNC_MS, default 0). Audio and video are sent on independent threads with no shared clock, so a
streaming/golive.py:45
↓ 1 callersMethod_cleanup_fifo
(self)
streaming/video_player.py:893
↓ 1 callersFunction_copy_scaling_list
(r: _BR, w: _BW, size: int)
streaming/video_player.py:172
↓ 1 callersFunction_data_dir
()
services/sources.py:22
↓ 1 callersFunction_detect_encoder
Pick the best available H.264 encoder. Returns None if nothing works.
streaming/video_player.py:488
↓ 1 callersFunction_do_rewrite_sps
(nal: bytes)
streaming/video_player.py:198
↓ 1 callersFunction_encrypt
( header: bytes, payload: bytes, mode: str, secret_key: list[int], nonce_counter: list[int
streaming/video_player.py:701
↓ 1 callersFunction_encrypt_audio
Encrypt one audio RTP packet using the negotiated voice encryption mode. Mirrors _encrypt() in video_player.py but takes the nonce as an int
streaming/golive.py:527
↓ 1 callersMethod_ensure_fifo
(self)
streaming/video_player.py:886
↓ 1 callersFunction_ep_add
Re-insert emulation prevention bytes so 0x00 0x00 0x{00-03} never appears raw.
streaming/video_player.py:87
↓ 1 callersFunction_ep_remove
Strip emulation prevention bytes (0x00 0x00 0x03 → 0x00 0x00).
streaming/video_player.py:72
next →1–100 of 394, ranked by callers