MCPcopy Create free account

hub / github.com/Dusk-Labs/dim / functions

Functions773 in github.com/Dusk-Labs/dim

Methodget_total_time_spent_watching
( conn: &mut crate::Transaction<'_>, uid: UserID, )
dim-database/src/progress.rs:67
Functionget_tv_seasons
Method mapped to `GET /api/v1/tv/<id>/season` returns all seasons for TV Show mapped to the id passed in. # Arguments `id` - id of the tv show we wan
dim-web/src/routes/tv.rs:22
Methodget_tvshowid
( conn: &mut crate::Transaction<'_>, season_id: i64, )
dim-database/src/season.rs:133
Methodget_url_by_file
( conn: &mut crate::Transaction<'_>, path: &PathBuf, )
dim-database/src/asset.rs:71
Functionget_user_settings
( Extension(user): Extension<User>, State(AppState { conn, .. }): State<AppState>, )
dim-web/src/routes/settings.rs:17
Methodget_width
(&self)
dim-core/src/streaming/ffprobe.rs:209
Methodhandle
( &mut self, batch: InsertBatch, _: &mut Context<Self>, )
dim-core/src/scanner/mediafile.rs:252
FunctionhandleResize
()
ui/src/Pages/Library/Index.tsx:50
FunctionhandleResize
()
ui/src/Pages/Library/MatchMedia/Index.tsx:51
Functionhttp_get_global_settings
TODO: Hide secret key.
dim-web/src/routes/settings.rs:57
Functionhttp_set_global_settings
TODO: Disallow setting secret key over http.
dim-web/src/routes/settings.rs:62
Methodinsert
Method inserts a InsertableLibrary object into the database (makes a new library). # Arguments `conn` - mutable reference to a sqlx transaction.
dim-database/src/library.rs:202
Methodinsert
Method inserts a new genre into the table otherwise returns the id of a existing entry # Arguments `conn` - mutable reference to a sqlx transaction.
dim-database/src/genre.rs:124
Methodinsert
Method inserts a new mediafile into the database. # Arguments `conn` - mutable reference to a sqlx transaction.
dim-database/src/mediafile.rs:292
Methodinsert
Method inserts a new episode into the database
dim-database/src/episode.rs:361
Methodinsert
Method inserts a new season and links it to a tv show based on the id specified. # Arguments `conn` - mutable reference to a sqlx transaction. `id` -
dim-database/src/season.rs:175
Functioninsert_different_folders
()
dim-core/src/tree.rs:189
Functioninsert_different_folders
()
dim-web/src/tree.rs:189
Methodinsert_many
( tx: &mut crate::Transaction<'_>, assets: Vec<Self>, )
dim-database/src/asset.rs:94
Methodinsert_pair
Method inserts a pair into the genre media table based on a genre_id and media_id. # Arguments `genre_id` - id of the genre we are trying to link to
dim-database/src/genre.rs:175
Functioninsert_some
()
dim-core/src/tree.rs:158
Functioninsert_some
()
dim-web/src/tree.rs:158
Methodinsert_with_id
Method used to insert a new media object with a specific id. # Arguments `conn` - mutable reference to a sqlx transaction. `id` - Unused ID to use fo
dim-database/src/media.rs:373
Methodinto
(self)
dim-database/src/mediafile.rs:388
Methodinto_query_show
(self: Arc<Self>)
dim-extern-api/src/tmdb/metadata_provider.rs:517
Methodinto_response
(self)
dim-web/src/error.rs:48
Methodinto_response
(self)
dim-web/src/routes/user.rs:37
Methodis_codec_type
(&self, codec_type: &str)
dim-core/src/streaming/ffprobe.rs:255
Functionjohhny_test_seasons
()
dim-extern-api/src/tmdb/mod.rs:230
Methodkill_all
(&self, state: &StateManager, id: &Uuid, ignore_gc: bool)
dim-core/src/stream_tracking.rs:252
Functionkill_session
Method mapped to `/api/v1/stream/<gid>/state/kill` will kill all streams for `gid`.
dim-web/src/routes/stream.rs:713
Functionlang_from_iso639
(tag: &str)
dim-utils/src/lib.rs:433
FunctionlibraryReducer
(state = initialState, action)
ui/src/reducers/library.js:58
Functionlibrary_delete
Method mapped to `DELETE /api/v1/library/<id>` deletes the library with the supplied id from the path.
dim-web/src/routes/library.rs:100
Functionlibrary_get_all
Method mapped to `GET /api/v1/library` returns a list of all libraries in the database
dim-web/src/routes/library.rs:159
Functionlibrary_get_media
Method mapped to `GET /api/v1/library/<id>/media` returns all the movies/tv shows that belong to the library with the id supplied. Method can only be
dim-web/src/routes/library.rs:199
Functionlibrary_get_one
Method mapped to `GET /api/v1/library/<id>` returns info about the library with the supplied id. Method can only be accessed by authenticated users.
dim-web/src/routes/library.rs:176
Functionlibrary_get_unmatched
Method mapped to `GET /api/v1/library/<id>/unmatched` returns a list of all unmatched medias to be displayed in the library pages.
dim-web/src/routes/library.rs:262
Functionlibrary_post
Method maps to `POST /api/v1/library`, it adds a new library to the database, starts a new scanner for it, then dispatches a event to all clients noti
dim-web/src/routes/library.rs:34
Functionlogin
( State(AppState { conn, .. }): State<AppState>, Json(new_login): Json<Login>, )
dim-web/src/routes/auth.rs:350
Methodlookup_metadata
( provider: Arc<dyn ExternalQueryShow>, file: MediaFile, metadata: Vec<Metadata>,
dim-core/src/scanner/tv_show.rs:353
Functionmain
()
dim-database/build.rs:7
Functionmain
()
dim/src/main.rs:18
Functionmain
()
dim-core/src/build.rs:4
Functionmain
()
dim-web/build.rs:6
Functionmap_progress
Method mapped to `POST /api/v1/media/<id>/progress` is used to map progress for a certain media to the user. This is useful for remembering progress f
dim-web/src/routes/media.rs:500
Methodmark_hidden
( conn: &mut crate::Transaction<'_>, id: i64, )
dim-database/src/library.rs:163
Functionmass_rematch
()
dim-core/src/scanner/movie.rs:493
Functionmatch_show
()
dim-core/src/scanner/tv_show.rs:557
Methodmatch_to_id
( &self, tx: &mut Transaction<'_>, provider: Arc<dyn ExternalQueryIntoShow>, w
dim-core/src/scanner/tv_show.rs:454
Functionmatch_to_movie
()
dim-core/src/scanner/movie.rs:300
Methodmedia_mediatype
( conn: &mut crate::Transaction<'_>, id: i64, )
dim-database/src/media.rs:251
Functionmediafile_tags
(x: &MediaFile)
dim-web/src/routes/media.rs:198
Functionmovie_scanner_bench
(c: &mut Criterion)
dim-core/benches/movie_scanner.rs:115
Methodnew
(cache: CacheMap, usage: Arc<AtomicUsize>, max_usage: usize)
dim-extern-api/src/tmdb/cache_control.rs:87
Methodnew
Create a new metadata provider instance with this API key.
dim-extern-api/src/tmdb/metadata_provider.rs:64
Methodnew
(writer: SqliteConnection, reader: Pool<Sqlite>)
dim-database/src/rw_pool.rs:19
Methodnew
()
dim-core/src/logger.rs:9
Methodnew
()
dim-core/src/tree.rs:18
Methodnew
( id: String, chunk_path: String, init_seg: Option<String>, content_type: Cont
dim-core/src/stream_tracking.rs:55
Methodnew
(ffprobe_bin: &'static str)
dim-core/src/streaming/ffprobe.rs:134
Methodnew
Create a new instance of `MediafileCreator`. A instance will be returned once a slot in our sempahore frees up.
dim-core/src/scanner/mediafile.rs:83
Methodnew
( conn: DbConnection, library_id: i64, media_type: MediaType, tx: EventTx,
dim-core/src/scanner/daemon.rs:51
Methodnew
(tx: UnboundedSender<Event>)
dim-core/src/reactor/mod.rs:48
Methodnew
(pool: SqlitePool)
dim-core/src/reactor/handler/mod.rs:29
Methodnew
()
dim-web/src/tree.rs:18
Methodnew
(stream_forward_fut: StreamFut, fut: Fut, tx: T)
dim-web/src/routes/websocket.rs:205
Methodnew_invite
(conn: &mut crate::Transaction<'_>)
dim-database/src/user.rs:479
Methodon_response
(&self, info: Info<'_>)
dim-core/src/logger.rs:15
Functiononce_upon_get_year
()
dim-extern-api/src/tmdb/mod.rs:217
Methodother
(error: impl std::error::Error + Send + Sync + 'static)
dim-extern-api/src/lib.rs:46
FunctionoutsideClickListener
(event: any)
ui/src/Pages/Library/MatchMedia/Index.tsx:156
Functionpatch_episode_by_id
TODO: Move all of these into a unified update interface for media items Method mapped to `PATCH /api/v1/episode/<id>` lets you patch information about
dim-web/src/routes/tv.rs:124
Functionpatch_season_by_id
Method mapped to `PATCH /api/v1/season/<id>` allows you to patch in info about the season. # Route Arguments `id` - the id of the season. # Data Thi
dim-web/src/routes/tv.rs:51
Functionpost_user_settings
( Extension(user): Extension<User>, State(AppState { conn, .. }): State<AppState>, Json(new_settin
dim-web/src/routes/settings.rs:25
Methodreact
(&mut self, event: Event)
dim-core/src/reactor/handler/mod.rs:166
Functionreact_routes
()
dim-web/src/routes/statik.rs:49
Functionrefresh_metadata
()
dim-core/src/scanner/movie.rs:592
Functionregister
( State(AppState { conn, .. }): State<AppState>, Json(new_user): Json<Login>, )
dim-web/src/routes/auth.rs:436
FunctionreloadPlayer
()
ui/src/Pages/VideoPlayer/ErrorBox.tsx:22
Functionrematch_episode
()
dim-core/src/scanner/tv_show.rs:658
Functionrematch_media_by_id
FIXME: Merge this function into rematch_mediafile as theyre functionally the same fucking thing except here we are matching whole media objects rather
dim-web/src/routes/media.rs:528
Functionrematch_mediafile
Method mapped to `PATCH /api/v1/mediafile/match` used to match a unmatched(orphan) mediafile to a tmdb id. # Arguments `conn` - database connection `
dim-web/src/routes/mediafile.rs:114
Functionrematch_new_genres
()
dim-core/src/scanner/movie.rs:429
Methodreqwest
(err: reqwest::Error)
dim-extern-api/src/tmdb/mod.rs:34
Functionreturn_manifest
Method mapped to `/api/v1/stream/<gid>/manifest.mpd` compiles a virtual manifest into a mpeg-dash manifest. # Query args `start_num` - first chunk nu
dim-web/src/routes/stream.rs:474
Functionreturn_virtual_manifest
Method mapped to `GET /api/v1/stream/<id>/manifest?<gid>` returns or creates a virtual manifest.
dim-web/src/routes/stream.rs:56
Methodroles
(&self)
dim-database/src/user.rs:366
Methodsearch
(&self, title: &str, _: Option<i32>)
dim-extern-api/src/mock.rs:11
Methodsearch
perform a TMDB search for `title` and optionally `year` of a specific search type (movies or TV shows.) request coalescing is applied internally.
dim-extern-api/src/tmdb/metadata_provider.rs:224
Functionsecs_to_pretty
(t: u64)
dim-utils/src/lib.rs:386
Functionsession_get_stderr
Method mapped to `/api/v1/stream/<gid>/state/get_stderr` attempts to fetch and return the stderr logs of all ffmpeg streams for `gid`.
dim-web/src/routes/stream.rs:690
Functionset_conn
(conn: crate::DbConnection)
dim-database/src/lib.rs:86
Methodset_content_type
(mut self, content_type: ContentType)
dim-core/src/stream_tracking.rs:85
Methodset_picture
( conn: &mut crate::Transaction<'_>, uid: UserID, asset_id: i64, )
dim-database/src/user.rs:347
Methodset_sid
(mut self, id: usize)
dim-core/src/stream_tracking.rs:136
Methodset_username
( conn: &mut crate::Transaction<'_>, old_username: String, new_username: String, )
dim-database/src/user.rs:332
FunctionsettingsReducer
(state = initialState, action)
ui/src/reducers/settings.js:31
Functionshould_client_hard_seek
Method mapped to `/api/v1/stream/<gid>/state/should_hard_seek/<chunk_num>` returns whether the client should hard seek in order to play the video at `
dim-web/src/routes/stream.rs:662
Functiontemp_dir
(files: impl IntoIterator<Item = &'a str>)
dim-core/benches/movie_scanner.rs:34
← previousnext →601–700 of 773, ranked by callers