MCPcopy Create free account

hub / github.com/ShukeBta/MediaStationGo / functions

Functions5,617 in github.com/ShukeBta/MediaStationGo

↓ 6 callersFunctiongroupMediaVersions
(items []model.Media)
internal/service/media_versions.go:63
↓ 6 callersFunctionisHTTPURL
(raw string)
internal/service/local_metadata_artwork.go:280
↓ 6 callersMethodlibraryIsEpisodic
(ctx context.Context, libraryID string)
internal/service/emby_movie_items.go:134
↓ 6 callersFunctionlibraryRootID
(root *model.LibraryRoot)
internal/service/scanner_roots.go:106
↓ 6 callersFunctionlibrarySupportsSeasons
(lib *model.Library)
internal/service/scraper_query.go:121
↓ 6 callersFunctionload
()
web/src/pages/HomePage.tsx:26
↓ 6 callersFunctionlogCloudPlayback
(svc *service.Container, msg string, fields ...zap.Field)
internal/handler/cloud_playback.go:225
↓ 6 callersMethodmainMenu
mainMenu builds the button-based menu, tailored to the user's binding and admin status. Ordinary users only see self-service actions; admins get an ex
internal/service/telegram_menu_layout.go:13
↓ 6 callersMethodmarkImageFetchFailed
(failPath string)
internal/service/image_proxy_cache.go:146
↓ 6 callersFunctionmergeCloudMetadata
(dst, src *LocalMetadata)
internal/service/cloud_metadata_merge.go:5
↓ 6 callersFunctionmergeLocalAvailability
(values ...LocalAvailability)
internal/service/subscription_availability_titles.go:128
↓ 6 callersFunctionmergeManualRequestIntoMatch
(match *Match, req ManualScrapeRequest)
internal/service/manual_scrape_helpers.go:9
↓ 6 callersFunctionnonEmptyStrings
(values ...string)
internal/service/tmdb_helpers.go:24
↓ 6 callersFunctionnormalizeProxyURL
(raw, proxyKind string)
internal/helper/proxy.go:62
↓ 6 callersMethodonTorrentComplete
onTorrentComplete handles a torrent that just finished downloading. It organizes the completed torrent payload directly. Relying on existing Media row
internal/service/download_completion.go:19
↓ 6 callersMethodopenRegEnabled
openRegEnabled reports whether bot registration is currently open. It honours both the new open-reg switch and the legacy registration switch.
internal/service/bot_features.go:65
↓ 6 callersFunctionorganizeFileExists
(path string)
internal/service/organizer_reclassify_files.go:24
↓ 6 callersFunctionpreferExistingLocalizedEpisodeTitle
(m *model.Media, lib *model.Library, match *Match)
internal/service/scraper_lookup.go:151
↓ 6 callersFunctionqbitLogin
(ctx context.Context, client *http.Client, baseURL, username, password string)
internal/service/qbittorrent_login.go:20
↓ 6 callersFunctionrefresh
()
web/src/pages/SubscriptionsPage.tsx:23
↓ 6 callersFunctionrefresh
()
web/src/pages/useAdminLibraryPanel.ts:21
↓ 6 callersFunctionrefresh
()
web/src/pages/AdminUsersPanel.tsx:20
↓ 6 callersFunctionrefreshLicenseServerStatus
(ctx context.Context, client *licenseClient, state service.LicenseActivationState, deviceID string)
internal/handler/license_state.go:18
↓ 6 callersFunctionrenewExpiry
── 续期 ──────────────────────────────────────────────────────────────────── renewUser extends a user's expiry by durationDays. A nil/zero current expir
internal/service/bot_features.go:196
↓ 6 callersFunctionresolveLocalExecutable
(configured, name string)
internal/service/media_tools.go:54
↓ 6 callersMethodrpcLocked
rpcLocked 发送 RPC 请求(调用者必须持有锁)。
internal/service/transmission_rpc.go:79
↓ 6 callersFunctionscrapeOptionsFromRequest
(c *gin.Context, retryNoMatch bool)
internal/handler/streaming.go:148
↓ 6 callersFunctionserverOrigin
(r *http.Request)
internal/service/qbittorrent_test.go:409
↓ 6 callersFunctionset
(key: keyof typeof form, value: string | boolean)
web/src/components/OrganizeMediaDialog.tsx:41
↓ 6 callersFunctionsiteRequestTimeout
(siteType string, timeoutSeconds int)
internal/service/site_crud.go:143
↓ 6 callersFunctionsiteSearchKeywords
(sub *model.Subscription)
internal/service/subscription_site_search_helpers.go:91
↓ 6 callersFunctionsplitPath
(raw: string)
web/src/pages/strmPageModel.ts:157
↓ 6 callersFunctionstrmSlashParts
(raw string)
internal/service/strm_output_dir.go:89
↓ 6 callersFunctionstrmTreeItemIsIgnoredFileSource
(item string)
internal/service/strm_tree_parse.go:181
↓ 6 callersFunctionstrmTreeItemIsVideoSource
(item string)
internal/service/strm_tree_parse.go:173
↓ 6 callersFunctiontelegramGroupPrivateUserHint
(action string)
internal/service/telegram_bot.go:284
↓ 6 callersFunctiontelegramInlineCodeList
(items []string)
internal/service/telegram_mgo_compat.go:72
↓ 6 callersFunctiontelegramSupportedCommand
(cmd string)
internal/service/telegram_command_menus.go:9
↓ 6 callersFunctiontoFloat64
toFloat64 安全地将 interface{} 转为 float64。
internal/service/transmission_parse.go:53
↓ 6 callersFunctiontoNumber
(value: string)
web/src/components/MetadataEditDialog.tsx:81
↓ 6 callersFunctiontoSlash
(raw: string)
web/src/pages/strmPageModel.ts:200
↓ 6 callersMethodurlFor
(remotePath string)
internal/service/storage_upload_webdav.go:113
↓ 6 callersMethodwithinAllowed
(path string, roots map[string]string)
internal/service/filemanager_roots.go:106
↓ 5 callersMethodAll
All returns every key/value pair (used by the admin UI).
internal/repository/setting_repository.go:38
↓ 5 callersMethodApplyToUsers
(ctx context.Context, users []model.User)
internal/service/session_tracker_activity.go:11
↓ 5 callersFunctionBuildCloudAutoCategoryLibraryPath
(provider, displayDir string)
internal/service/cloud_auto_category.go:15
↓ 5 callersFunctionCanonicalLibraryDisplayName
(lib model.Library)
internal/service/cloud_mount_display.go:68
↓ 5 callersFunctionCloudMountProviderLabel
(provider string)
internal/service/cloud_mount_label.go:11
↓ 5 callersFunctionDecodeAllowedLibraryIDs
DecodeAllowedLibraryIDs normalises a PlayProfile allowed-library JSON string.
internal/service/visibility.go:73
↓ 5 callersMethodDeleteByUser
DeleteByUser removes every device row for a user (used on account deletion).
internal/repository/bot_repo.go:178
↓ 5 callersMethodDiscover
Discover returns every reachable MediaRenderer on the LAN. Results are cached for 30 seconds so the React UI's polling does not spam the network.
internal/service/dlna.go:114
↓ 5 callersMethodEnrichManagementProgress
(ctx context.Context, items []model.Subscription)
internal/service/subscription_availability.go:52
↓ 5 callersMethodEnrichOneWithOptions
(ctx context.Context, m *model.Media, options ScrapeOptions)
internal/service/scraper.go:22
↓ 5 callersFunctionExpandMediaVisibilityForMergedCloudLibraries
(ctx context.Context, repo *repository.Container, visibility MediaVisibility)
internal/service/cloud_mount_scope.go:74
↓ 5 callersFunctionFilterScannableCloudLibraries
(ctx context.Context, repo *repository.Container, libs []model.Library)
internal/service/cloud_mount_filter.go:79
↓ 5 callersFunctionFindCloudMountConflict
(libs []model.Library, provider, scanDir, displayDir string)
internal/service/cloud_mount.go:82
↓ 5 callersMethodFindDefault
FindDefault returns the default download client, or (nil, nil).
internal/repository/download_client_repo.go:36
↓ 5 callersMethodGetMedia
GetMedia returns a single media row.
internal/service/media_listing.go:100
↓ 5 callersMethodHandleWebhook
HandleWebhook 处理 Telegram 推送的 Webhook/Polling 消息。
internal/service/telegram_bot.go:158
↓ 5 callersFunctionHashToken
HashToken returns the SHA256 hash of a token.
internal/repository/refresh_token_repository.go:91
↓ 5 callersMethodImageURL
ImageURL returns artwork for a media/series/season item id.
internal/service/emby_artwork.go:11
↓ 5 callersFunctionInferCloudMountMediaType
(dir, name string)
internal/service/cloud_mount_label.go:83
↓ 5 callersMethodIngestPath
IngestPath ingests a single file into the given library without walking the whole tree. Used by the watcher for incremental, event-driven additions so
internal/service/scanner_scan.go:233
↓ 5 callersFunctionIsDeprecatedNativeCloudProvider
(typ string)
internal/service/storage_types.go:29
↓ 5 callersFunctionLicensedMaxUsers
(ctx context.Context, repos *repository.Container)
internal/service/license.go:34
↓ 5 callersMethodListEnabled
ListEnabled returns all enabled sites.
internal/repository/site_repo.go:42
↓ 5 callersMethodLiveTorrentSnapshot
(maxAge time.Duration)
internal/service/download_live_snapshot.go:23
↓ 5 callersFunctionLoad
Load 从默认值 / 文件 / 环境读取配置。 即使没有文件也始终返回可用的 Config。
internal/config/config.go:25
↓ 5 callersMethodMarkUsed
MarkUsed atomically consumes one use of a redeemable code. It returns gorm.ErrRecordNotFound when the code is exhausted so callers can avoid double-sp
internal/repository/bot_repo.go:39
↓ 5 callersFunctionNewAdultProvider
(log *zap.Logger, apiConfig *APIConfigService)
internal/service/adult_scraper.go:52
↓ 5 callersMethodRepairCloudPathMetadata
RepairCloudPathMetadata backfills external IDs from media paths such as "Movie (2025) {tmdb-123}" so existing placeholder rows can be scraped without
internal/service/cloud_path_repair.go:18
↓ 5 callersMethodScanAndScrapeLibrariesForPath
ScanAndScrapeLibrariesForPath scans the affected organize target libraries, then optionally runs the scraper synchronously so manual/automatic organiz
internal/service/organizer_scan.go:98
↓ 5 callersMethodSearchFiltered
(ctx context.Context, query string, limit int, filter MediaQueryFilter)
internal/repository/media_search_repository.go:19
↓ 5 callersMethodStop
Stop shuts the loop down.
internal/service/subscription.go:82
↓ 5 callersFunctionSuccessWithMessage
SuccessWithMessage 返回带消息的成功响应。
internal/handler/response.go:50
↓ 5 callersMethodTestConnection
TestConnection tries to reach the site's base URL with the configured credentials and reports success/failure. 测试逻辑(与旧版参考实现对齐): 1. 优先调用对应站点适配器的 Auth
internal/service/site_connection.go:25
↓ 5 callersMethodType
Type returns the provider key.
internal/service/cloud/cloud.go:62
↓ 5 callersMethodVerifyPIN
VerifyPIN validates that the caller can switch to a PIN-protected profile.
internal/service/play_profile.go:203
↓ 5 callersMethodViews
Views 返回 Emby 中"虚拟根目录"——每个 library 一个条目。
internal/service/emby_system.go:128
↓ 5 callersFunctionabsoluteRequestURL
(c *gin.Context, path string)
internal/handler/playback_extra.go:205
↓ 5 callersFunctionapplyMediaVisibilityQuery
(q *gorm.DB, visibility service.MediaVisibility)
internal/handler/stats.go:136
↓ 5 callersMethodapplyProviderMatchWithOptions
(ctx context.Context, m *model.Media, lib *model.Library, match *Match, options ScrapeOptions)
internal/service/scraper.go:115
↓ 5 callersFunctionbuildRequest
buildRequest 构建带认证的 HTTP 请求。
internal/service/site_adapter.go:123
↓ 5 callersFunctionclampNonNegativeInt
(value int)
internal/service/media_metadata.go:137
↓ 5 callersFunctioncloneBackgroundTask
(task BackgroundTask)
internal/service/task_tracker.go:219
↓ 5 callersFunctioncloneLocalMetadata
(src *LocalMetadata)
internal/service/cloud_metadata_merge.go:111
↓ 5 callersFunctioncloudPlaybackLogFields
(typ, ref string, link *cloud.DirectLink, resolveDur time.Duration)
internal/handler/cloud_playback.go:232
↓ 5 callersMethodcmdRegister
cmdRegister 处理 /register 命令:在管理员开启注册后,普通用户可通过 Bot 注册一个新的媒体中心账号,并自动绑定到当前 Telegram 账号。
internal/service/telegram_bot_commands_core.go:90
↓ 5 callersFunctioncommandOutput
(ctx context.Context, timeout time.Duration, name string, args ...string)
internal/service/media_tools.go:110
↓ 5 callersFunctioncompletedTorrentQueueKey
(torrent QBitTorrent)
internal/service/download_completion_state.go:139
↓ 5 callersFunctioncomposeTargetInDir
(dir string)
internal/service/system_update_compose.go:88
↓ 5 callersFunctioncontainsCJK
(s string)
internal/service/scraper_query.go:94
↓ 5 callersFunctioncontainsString
(values []string, want string)
internal/service/subscription_site_search_keywords_test.go:103
↓ 5 callersMethodcurrentTime
()
internal/service/scheduler_runner.go:167
↓ 5 callersFunctiondetectContentType
detectContentType returns the MIME type of data using the first 512 bytes.
internal/service/image_proxy_cache.go:31
↓ 5 callersFunctiondiscoverFeedErrorMessage
(err error)
internal/handler/discover_extra.go:204
↓ 5 callersFunctiondiscoverSectionProvider
(key string)
internal/handler/discover_extra.go:278
↓ 5 callersFunctiondiscoverSectionTimeout
(key string)
internal/handler/discover_extra.go:236
↓ 5 callersFunctiondownloadSavePathCategoryRoot
(root, category string)
internal/service/download_classifier.go:49
↓ 5 callersFunctiondownloadTaskBlocksReadd
(status string)
internal/service/download_identity.go:54
← previousnext →401–500 of 5,617, ranked by callers