MCPcopy Create free account

hub / github.com/ShukeBta/MediaStationGo / functions

Functions5,617 in github.com/ShukeBta/MediaStationGo

↓ 10 callersMethodEnrichOne
EnrichOne runs the provider chain for a single media row.
internal/service/scraper.go:18
↓ 10 callersFunctionGetUserRole
GetUserRole extracts the user role from the Gin context.
internal/middleware/roles.go:43
↓ 10 callersFunctionNewPermissionService
NewPermissionService is the constructor.
internal/service/permission.go:25
↓ 10 callersFunctionNewSiteService
NewSiteService is the constructor.
internal/service/site.go:23
↓ 10 callersFunctionParseCloudArtworkURL
(raw string)
internal/service/scanner_cloud_artwork.go:118
↓ 10 callersMethodStart
Start initialises the underlying fsnotify watcher and registers every library root currently in the database.
internal/service/watcher.go:63
↓ 10 callersMethodapplyUserMediaVisibility
(ctx context.Context, q *gorm.DB, userID string)
internal/service/emby_visibility.go:13
↓ 10 callersFunctionbuildSubscribeKeyword
(title string, year int)
internal/service/external_search.go:122
↓ 10 callersFunctioncleanAvailabilityTitle
(value string)
internal/service/local_availability.go:143
↓ 10 callersFunctiondeduplicate
deduplicate removes duplicates from a string slice.
internal/service/tmdb_helpers.go:9
↓ 10 callersFunctionnormalizeAdultCode
(input string)
internal/service/adult_scraper_code.go:15
↓ 10 callersFunctionnormalizeReleaseDate
(value string)
internal/service/local_metadata_helpers.go:73
↓ 10 callersFunctionnormalizeTorrentName
(name string)
internal/service/download_identity.go:198
↓ 10 callersFunctionpathHintMetadata
(raw string, seriesLike bool)
internal/service/external_id_hints.go:75
↓ 10 callersFunctionpersistLicenseState
(ctx context.Context, svc *service.Container, state service.LicenseActivationState)
internal/handler/license_state.go:128
↓ 10 callersFunctionrecordPreparedSelection
(candidates []siteSearchCandidate, stats *siteSearchSelectionStats)
internal/service/subscription_candidate_select.go:154
↓ 10 callersMethodtelegramChannelConfig
(channel *model.NotifyChannel)
internal/service/telegram_channel_resolve.go:123
↓ 10 callersFunctiontitleMatchesQuality
(titleFold, quality string)
internal/service/subscription_score.go:93
↓ 10 callersMethodurlFor
(remotePath string)
internal/service/cloud/clouddrive2_dav_path.go:9
↓ 9 callersMethodAllow
(ctx context.Context, siteKey string, limits ...siteAPIRateLimit)
internal/service/site_rate_limiter.go:32
↓ 9 callersFunctionAuthRequired
AuthRequired parses and validates a JWT from the Authorization header (Bearer ...) or the `token` query parameter (used by <video>.src).
internal/middleware/auth.go:25
↓ 9 callersMethodFirstAdmin
FirstAdmin returns the earliest admin user. This row represents the protected built-in/default administrator even if its username is later changed.
internal/repository/user_repository.go:97
↓ 9 callersMethodGet
Get returns the decrypted config view, or (nil, nil).
internal/service/storage_config.go:64
↓ 9 callersMethodItem
Item 单条目详情。
internal/service/emby_items_detail.go:13
↓ 9 callersFunctionNewAPIConfigService
NewAPIConfigService is the constructor.
internal/service/api_config.go:32
↓ 9 callersMethodPlaybackInfo
PlaybackInfo returns a PlaybackInfoResponse usable by Emby clients.
internal/service/emby_playback.go:17
↓ 9 callersMethodRefresh
Refresh 使用 Refresh Token 轮换获取新的令牌对。
internal/service/token_svc.go:171
↓ 9 callersMethodUpdate
Update applies the patch and returns the new public view.
internal/service/api_config.go:149
↓ 9 callersFunctionaddTrimmedString
(data map[string]interface{}, key, value string)
internal/service/download_notification.go:80
↓ 9 callersFunctionavailabilityQuery
(title, keyword string)
internal/service/local_availability.go:133
↓ 9 callersMethodinvalidateMediaCache
(ctx context.Context)
internal/service/media_cache.go:44
↓ 9 callersFunctionmediaTitles
(items []model.Media)
internal/service/cloud_mount_filter_test.go:516
↓ 9 callersMethodmediaTypeForDirectoryCategory
(name string)
internal/service/organizer_directory_layout.go:81
↓ 9 callersFunctionmediaVisibleForRequest
(c *gin.Context, svc *service.Container, media *model.Media)
internal/handler/visibility.go:80
↓ 9 callersMethodmergedLibraryIDs
(ctx context.Context, libraryID string)
internal/service/emby_visibility.go:92
↓ 9 callersFunctionnormalizeDownloadClientEndpoint
(clientType, raw string)
internal/service/download_client_endpoint.go:21
↓ 9 callersFunctionnormalizeSTRMTreeSource
(raw string)
internal/service/strm_tree_normalize.go:54
↓ 9 callersFunctionparseCommaList
parseCommaList splits a comma-separated string into trimmed non-empty values.
internal/service/organizer_classify.go:75
↓ 9 callersFunctionquoteIdent
(value string)
internal/database/sqlite_migration_copy.go:223
↓ 9 callersMethodremoteImageCachePaths
(raw string)
internal/service/image_proxy_cache.go:82
↓ 9 callersMethodreplyDevicePolicy
(ctx context.Context)
internal/service/telegram_device_policy.go:10
↓ 9 callersFunctionresolveAccessibleLibraryPath
(path string)
internal/service/media_paths.go:32
↓ 9 callersMethodrpcLocked
rpcLocked 发送 JSON-RPC 请求(调用者必须持有锁)。
internal/service/aria2_rpc.go:96
↓ 9 callersMethodrunOne
(ctx context.Context, sub *model.Subscription)
internal/service/subscription_rss_run.go:22
↓ 9 callersFunctionscrapeQueryCandidates
(m *model.Media, lib *model.Library)
internal/service/scraper_query.go:20
↓ 9 callersFunctionshellQuote
(value string)
internal/service/system_update_command.go:89
↓ 9 callersFunctionstrVal
strVal 安全地提取字符串。
internal/service/transmission_parse.go:73
↓ 9 callersMethodupdate
(id string, update TaskUpdate)
internal/service/task_tracker.go:139
↓ 9 callersMethoduseful
()
internal/service/external_id_hints.go:48
↓ 8 callersMethodCloudProvider
CloudProvider constructs a cloud-disk provider from the saved (decrypted) config for the given type, or returns an error if not configured.
internal/service/storage_config_cloud.go:15
↓ 8 callersFunctionDefaultPermissions
Defaults returns a non-admin's default permission set.
internal/service/permission.go:30
↓ 8 callersFunctionIsAdminStorageConfigurable
(typ string)
internal/service/storage_types.go:11
↓ 8 callersMethodManualSearch
(ctx context.Context, media *model.Media, query, provider, mediaType string)
internal/service/manual_scrape_search.go:11
↓ 8 callersFunctionNewFFprobeService
NewFFprobeService is the constructor.
internal/service/ffprobe.go:33
↓ 8 callersFunctionNewOrganizePipelineService
(log *zap.Logger, repo *repository.Container, organizer *OrganizerService, scanner *ScannerService, tasks *Tas
internal/service/organize_pipeline.go:65
↓ 8 callersMethodOrganizeMediaWithOptions
OrganizeMediaWithOptions is OrganizeMedia with per-request overrides for the target path and transfer mode.
internal/service/organizer.go:79
↓ 8 callersMethodPrefetchCloudResolved
PrefetchCloudResolved downloads a cloud sidecar image into the local cache without writing an HTTP response.
internal/service/image_proxy_cloud.go:94
↓ 8 callersMethodSetRuntimeCache
(cache *RuntimeCacheService)
internal/service/stats.go:36
↓ 8 callersMethodUploadLocal
UploadLocal copies or moves local media files into an external storage backend. Cloud writes are intentionally gated by the per-storage transfer_enabl
internal/service/storage_upload.go:70
↓ 8 callersMethodacquire
(ctx context.Context)
internal/service/ffprobe.go:140
↓ 8 callersFunctionapplyLocalMetadata
(m *model.Media, local *LocalMetadata)
internal/service/local_metadata_apply.go:5
↓ 8 callersFunctionartworkScore
(media: Media)
web/src/utils/groupSeries.ts:312
↓ 8 callersMethodattachLibraryMetadata
(ctx context.Context, items []model.Media)
internal/service/media_display_library.go:11
↓ 8 callersFunctionbuildSubscribeAliases
(title, originalName string, year int)
internal/service/external_search.go:133
↓ 8 callersFunctioncleanSTRMTreeItemName
(value string)
internal/service/strm_tree_normalize.go:308
↓ 8 callersFunctioncloudPlaybackURL
(typ, ref string)
internal/service/cloud_metadata_merge.go:123
↓ 8 callersFunctioncontainsAnyToken
(titleFold, csv string)
internal/service/subscription_exclude_rules.go:16
↓ 8 callersFunctioncopy
(value: string)
web/src/components/ExternalPlayerButton.tsx:80
↓ 8 callersFunctiondecorateDAVTransportError
(name, target string, err error)
internal/service/cloud/clouddrive2_dav_error.go:43
↓ 8 callersFunctiondecorateStorageTransportError
(name, target string, err error)
internal/service/storage_config_probe.go:152
↓ 8 callersFunctionembyAttachRequestTokenToMediaSources
(c *gin.Context, out any)
internal/handler/emby_playback.go:34
↓ 8 callersFunctionembyError
embyError 返回 Emby 风格的错误(顶层 Code/Message)。
internal/handler/emby_auth.go:15
↓ 8 callersFunctionembyPlaybackInfoHandler
(svc *service.Container)
internal/handler/emby_playback.go:14
↓ 8 callersFunctionembyVideoHLSPlaylistHandler
(svc *service.Container)
internal/handler/emby_playback.go:237
↓ 8 callersFunctionfirstJSONString
(obj map[string]any, keys ...string)
internal/service/cloud_metadata_json.go:126
↓ 8 callersFunctionfirstJSONStrings
(obj map[string]any, keys ...string)
internal/service/cloud_metadata_json.go:134
↓ 8 callersFunctionfirstText
(values ...string)
internal/service/local_metadata_helpers.go:32
↓ 8 callersFunctionformatExpiry
formatExpiry renders a user's expiry status for display.
internal/service/bot_features.go:276
↓ 8 callersMethodgetJSON
(ctx context.Context, url string, out any)
internal/service/tmdb.go:121
↓ 8 callersMethodhasLibraryRootsTable
()
internal/repository/library_repository.go:155
↓ 8 callersFunctionisSeriesPackTitle
(title string)
internal/service/subscription_pack.go:13
↓ 8 callersFunctionlibraryNames
(libs []model.Library)
internal/service/cloud_mount_filter_test.go:508
↓ 8 callersMethodlookupRedeemableCode
lookupRedeemableCode validates a code without consuming it. Callers mark it used only after the dependent action (account create / renew) succeeds, so
internal/service/bot_features.go:146
↓ 8 callersFunctionmappedPathCandidates
(input string)
internal/service/media_paths.go:146
↓ 8 callersFunctionnormalizeSTRMTreeProvider
(raw string)
internal/service/strm_tree_normalize.go:43
↓ 8 callersMethodopenListAPIURL
(apiPath string)
internal/service/cloud/clouddrive2.go:171
↓ 8 callersFunctionparseIntSettingDefault
parseIntSettingDefault parses an int setting, returning fallback on error.
internal/service/bot_settings.go:179
↓ 8 callersFunctionregisterEmbyGetHeadRoutes
(grp *gin.RouterGroup, svc *service.Container, paths []string, factory embyRouteHandlerFactory)
internal/handler/emby_routes.go:124
↓ 8 callersMethodreply
reply 通过 Telegram Bot API 发送回复消息。
internal/service/telegram_reply.go:25
↓ 8 callersMethodresolveAPIKey
resolveAPIKey returns the TMDb API key, checking config first, then database.
internal/service/tmdb.go:81
↓ 8 callersMethodresolveBaseURL
resolveBaseURL returns the TMDb base URL, checking config first, then database.
internal/service/tmdb.go:105
↓ 8 callersFunctionsameOrChildPath
(pathValue, root string)
internal/service/subscription_availability_scan.go:11
↓ 8 callersFunctionscanTaskDetails
(res *service.ScanResult, limit int)
internal/handler/media_scan.go:146
↓ 8 callersFunctionsetNonEmptyMediaString
(updates map[string]any, key, current, next string)
internal/repository/media_repository_upsert.go:234
↓ 8 callersFunctionsubscriptionFilter
(sub *model.Subscription)
internal/service/subscription_availability.go:190
↓ 8 callersFunctionsubscriptionSearchResultText
(item SearchResult)
internal/service/subscription_candidate_collect.go:88
↓ 8 callersFunctiontelegramHTTPClients
(timeout time.Duration, cfg map[string]string)
internal/service/telegram_api_client.go:50
↓ 8 callersFunctiontelegramIsGroupChat
(chatType string)
internal/service/telegram_bot.go:267
↓ 8 callersMethodtelegramUserIsAdmin
(ctx context.Context, channel *model.NotifyChannel, telegramUserID int)
internal/service/telegram_membership.go:14
↓ 8 callersFunctionupdate
(k: K, v: DownloadClientInput[K])
web/src/pages/DownloadClientFormModal.tsx:50
← previousnext →201–300 of 5,617, ranked by callers