Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Dusk-Labs/dim
/ functions
Functions
773 in github.com/Dusk-Labs/dim
⨍
Functions
773
◇
Types & classes
221
Method
get_total_time_spent_watching
( conn: &mut crate::Transaction<'_>, uid: UserID, )
dim-database/src/progress.rs:67
Function
get_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
Method
get_tvshowid
( conn: &mut crate::Transaction<'_>, season_id: i64, )
dim-database/src/season.rs:133
Method
get_url_by_file
( conn: &mut crate::Transaction<'_>, path: &PathBuf, )
dim-database/src/asset.rs:71
Function
get_user_settings
( Extension(user): Extension<User>, State(AppState { conn, .. }): State<AppState>, )
dim-web/src/routes/settings.rs:17
Method
get_width
(&self)
dim-core/src/streaming/ffprobe.rs:209
Method
handle
( &mut self, batch: InsertBatch, _: &mut Context<Self>, )
dim-core/src/scanner/mediafile.rs:252
Function
handleResize
()
ui/src/Pages/Library/Index.tsx:50
Function
handleResize
()
ui/src/Pages/Library/MatchMedia/Index.tsx:51
Function
http_get_global_settings
TODO: Hide secret key.
dim-web/src/routes/settings.rs:57
Function
http_set_global_settings
TODO: Disallow setting secret key over http.
dim-web/src/routes/settings.rs:62
Method
insert
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
Method
insert
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
Method
insert
Method inserts a new mediafile into the database. # Arguments `conn` - mutable reference to a sqlx transaction.
dim-database/src/mediafile.rs:292
Method
insert
Method inserts a new episode into the database
dim-database/src/episode.rs:361
Method
insert
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
Function
insert_different_folders
()
dim-core/src/tree.rs:189
Function
insert_different_folders
()
dim-web/src/tree.rs:189
Method
insert_many
( tx: &mut crate::Transaction<'_>, assets: Vec<Self>, )
dim-database/src/asset.rs:94
Method
insert_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
Function
insert_some
()
dim-core/src/tree.rs:158
Function
insert_some
()
dim-web/src/tree.rs:158
Method
insert_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
Method
into
(self)
dim-database/src/mediafile.rs:388
Method
into_query_show
(self: Arc<Self>)
dim-extern-api/src/tmdb/metadata_provider.rs:517
Method
into_response
(self)
dim-web/src/error.rs:48
Method
into_response
(self)
dim-web/src/routes/user.rs:37
Method
is_codec_type
(&self, codec_type: &str)
dim-core/src/streaming/ffprobe.rs:255
Function
johhny_test_seasons
()
dim-extern-api/src/tmdb/mod.rs:230
Method
kill_all
(&self, state: &StateManager, id: &Uuid, ignore_gc: bool)
dim-core/src/stream_tracking.rs:252
Function
kill_session
Method mapped to `/api/v1/stream/<gid>/state/kill` will kill all streams for `gid`.
dim-web/src/routes/stream.rs:713
Function
lang_from_iso639
(tag: &str)
dim-utils/src/lib.rs:433
Function
libraryReducer
(state = initialState, action)
ui/src/reducers/library.js:58
Function
library_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
Function
library_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
Function
library_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
Function
library_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
Function
library_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
Function
library_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
Function
login
( State(AppState { conn, .. }): State<AppState>, Json(new_login): Json<Login>, )
dim-web/src/routes/auth.rs:350
Method
lookup_metadata
( provider: Arc<dyn ExternalQueryShow>, file: MediaFile, metadata: Vec<Metadata>,
dim-core/src/scanner/tv_show.rs:353
Function
main
()
dim-database/build.rs:7
Function
main
()
dim/src/main.rs:18
Function
main
()
dim-core/src/build.rs:4
Function
main
()
dim-web/build.rs:6
Function
map_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
Method
mark_hidden
( conn: &mut crate::Transaction<'_>, id: i64, )
dim-database/src/library.rs:163
Function
mass_rematch
()
dim-core/src/scanner/movie.rs:493
Function
match_show
()
dim-core/src/scanner/tv_show.rs:557
Method
match_to_id
( &self, tx: &mut Transaction<'_>, provider: Arc<dyn ExternalQueryIntoShow>, w
dim-core/src/scanner/tv_show.rs:454
Function
match_to_movie
()
dim-core/src/scanner/movie.rs:300
Method
media_mediatype
( conn: &mut crate::Transaction<'_>, id: i64, )
dim-database/src/media.rs:251
Function
mediafile_tags
(x: &MediaFile)
dim-web/src/routes/media.rs:198
Function
movie_scanner_bench
(c: &mut Criterion)
dim-core/benches/movie_scanner.rs:115
Method
new
(cache: CacheMap, usage: Arc<AtomicUsize>, max_usage: usize)
dim-extern-api/src/tmdb/cache_control.rs:87
Method
new
Create a new metadata provider instance with this API key.
dim-extern-api/src/tmdb/metadata_provider.rs:64
Method
new
(writer: SqliteConnection, reader: Pool<Sqlite>)
dim-database/src/rw_pool.rs:19
Method
new
()
dim-core/src/logger.rs:9
Method
new
()
dim-core/src/tree.rs:18
Method
new
( id: String, chunk_path: String, init_seg: Option<String>, content_type: Cont
dim-core/src/stream_tracking.rs:55
Method
new
(ffprobe_bin: &'static str)
dim-core/src/streaming/ffprobe.rs:134
Method
new
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
Method
new
( conn: DbConnection, library_id: i64, media_type: MediaType, tx: EventTx,
dim-core/src/scanner/daemon.rs:51
Method
new
(tx: UnboundedSender<Event>)
dim-core/src/reactor/mod.rs:48
Method
new
(pool: SqlitePool)
dim-core/src/reactor/handler/mod.rs:29
Method
new
()
dim-web/src/tree.rs:18
Method
new
(stream_forward_fut: StreamFut, fut: Fut, tx: T)
dim-web/src/routes/websocket.rs:205
Method
new_invite
(conn: &mut crate::Transaction<'_>)
dim-database/src/user.rs:479
Method
on_response
(&self, info: Info<'_>)
dim-core/src/logger.rs:15
Function
once_upon_get_year
()
dim-extern-api/src/tmdb/mod.rs:217
Method
other
(error: impl std::error::Error + Send + Sync + 'static)
dim-extern-api/src/lib.rs:46
Function
outsideClickListener
(event: any)
ui/src/Pages/Library/MatchMedia/Index.tsx:156
Function
patch_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
Function
patch_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
Function
post_user_settings
( Extension(user): Extension<User>, State(AppState { conn, .. }): State<AppState>, Json(new_settin
dim-web/src/routes/settings.rs:25
Method
react
(&mut self, event: Event)
dim-core/src/reactor/handler/mod.rs:166
Function
react_routes
()
dim-web/src/routes/statik.rs:49
Function
refresh_metadata
()
dim-core/src/scanner/movie.rs:592
Function
register
( State(AppState { conn, .. }): State<AppState>, Json(new_user): Json<Login>, )
dim-web/src/routes/auth.rs:436
Function
reloadPlayer
()
ui/src/Pages/VideoPlayer/ErrorBox.tsx:22
Function
rematch_episode
()
dim-core/src/scanner/tv_show.rs:658
Function
rematch_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
Function
rematch_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
Function
rematch_new_genres
()
dim-core/src/scanner/movie.rs:429
Method
reqwest
(err: reqwest::Error)
dim-extern-api/src/tmdb/mod.rs:34
Function
return_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
Function
return_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
Method
roles
(&self)
dim-database/src/user.rs:366
Method
search
(&self, title: &str, _: Option<i32>)
dim-extern-api/src/mock.rs:11
Method
search
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
Function
secs_to_pretty
(t: u64)
dim-utils/src/lib.rs:386
Function
session_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
Function
set_conn
(conn: crate::DbConnection)
dim-database/src/lib.rs:86
Method
set_content_type
(mut self, content_type: ContentType)
dim-core/src/stream_tracking.rs:85
Method
set_picture
( conn: &mut crate::Transaction<'_>, uid: UserID, asset_id: i64, )
dim-database/src/user.rs:347
Method
set_sid
(mut self, id: usize)
dim-core/src/stream_tracking.rs:136
Method
set_username
( conn: &mut crate::Transaction<'_>, old_username: String, new_username: String, )
dim-database/src/user.rs:332
Function
settingsReducer
(state = initialState, action)
ui/src/reducers/settings.js:31
Function
should_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
Function
temp_dir
(files: impl IntoIterator<Item = &'a str>)
dim-core/benches/movie_scanner.rs:34
← previous
next →
601–700 of 773, ranked by callers