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
delete_by_lib_id
This function exists because for some reason `CASCADE DELETE` doesnt work with a sqlite backend. Thus we must manually delete entries when deleting a
dim-database/src/media.rs:292
Method
delete_by_lib_id
Function deletes all mediafiles with `library_id` of lib_id. This function is used when deleting a library with a sqlite backend.
dim-database/src/mediafile.rs:233
Function
delete_episode_by_id
Method mapped to `DELETE /api/v1/episode/<id>` allows you to delete a episode belonging to some season. # Arguments `id` - id an episode to delete
dim-web/src/routes/tv.rs:144
Function
delete_media_by_id
Method mapped to `DELETE /api/v1/media/<id>` is used to delete a media entry for the library. ONly authenticated users can query this. # Arguments `c
dim-web/src/routes/media.rs:421
Function
delete_season_by_id
Method mapped to `DELETE /api/v1/season/<id>` allows you to delete a season for a particular tv show. # Arguments `id` - id of the season.
dim-web/src/routes/tv.rs:101
Function
delete_token
# DELETE `/api/v1/auth/token/:token` Method will revoke the supplied token. # Authorization This route requires a valid authentication token to be su
dim-web/src/routes/auth.rs:230
Method
delete_token
( conn: &mut crate::Transaction<'_>, token: String, )
dim-database/src/user.rs:507
Function
deserialize_letterkenny
()
dim-extern-api/src/tmdb/mod.rs:241
Function
dist_static
(uri: Uri)
dim-web/src/routes/statik.rs:133
Method
drop
(&mut self)
dim-extern-api/src/tmdb/cache_control.rs:161
Method
encode_by_ref
( &self, buf: &mut <DB as sqlx::database::HasArguments<'q>>::ArgumentBuffer, )
dim-database/src/user.rs:106
Method
eq
(&self, other: &Media)
dim-database/src/media.rs:39
Method
exists_by_file
Method checks whether a mediafile entry with the filepath supplied exists or not, returning a bool. # Arguments `conn` - mutable reference to a sqlx
dim-database/src/mediafile.rs:179
Function
fetchLibraryInfo
()
ui/src/actions/library.js:155
Function
fetchLibraryMedia
()
ui/src/actions/library.js:159
Function
fetchLibraryUnmatched
(id)
ui/src/actions/library.js:56
Function
filterInt
(input: string)
ui/src/Components/AdvancedSearch/Index.tsx:9
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
dim-extern-api/src/lib.rs:122
Method
fmt
(&self, fmt: &mut std::fmt::Formatter<'_>)
dim-extern-api/src/tmdb/metadata_provider.rs:467
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
dim-database/src/library.rs:19
Method
fmt
(&self, fmt: &mut std::fmt::Formatter<'_>)
dim-core/src/stream_tracking.rs:21
Method
from
(media: TMDBMediaObject)
dim-extern-api/src/tmdb/raw_client.rs:37
Method
from
(this: TMDBClientRequestError)
dim-extern-api/src/tmdb/mod.rs:40
Method
from
(other: InsertableMedia)
dim-database/src/media.rs:511
Method
from
(e: sqlx::error::Error)
dim-database/src/error.rs:12
Method
from
( Record { id, name, duration, target_file, }:
dim-database/src/compact_mediafile.rs:27
Method
from
(e: sqlx::Error)
dim-core/src/errors.rs:58
Method
from
(stream: Stream)
dim-core/src/streaming/ffprobe.rs:79
Method
from
(action: Action)
dim-core/src/reactor/types.rs:31
Method
from
(error: DimError)
dim-web/src/error.rs:12
Method
from
(_: std::io::Error)
dim-web/src/routes/filebrowser.rs:25
Method
from
(e: dim_core::scanner::error::Error)
dim-web/src/routes/mediafile.rs:49
Method
from
(_: axum::Error)
dim-web/src/routes/websocket.rs:114
Method
from_str
(s: &str)
dim-extern-api/src/filename.rs:18
Function
generate_invite
# POST `/api/v1/auth/new_invite` Method will generate and return a new invite token. # Authorization This route requires a valid authentication token
dim-web/src/routes/auth.rs:189
Method
get
Method returns a media object based on its id # Arguments `conn` - mutable reference to a sqlx transaction. `req_id` - id of a media that we'd like t
dim-database/src/media.rs:71
Method
get
Method returns a episodes discriminated by episode number, season number and tv show id # Arguments `conn` - mutable reference to a sqlx transaction.
dim-database/src/episode.rs:146
Method
get
Method returns the season based on the season number belonging to a tv show. # Arguments `conn` - mutable reference to a sqlx transaction. `tv_id` -
dim-database/src/season.rs:48
Function
getInitialTrack
(trackArr)
ui/src/Pages/VideoPlayer/Index.jsx:199
Method
get_all
Method returns all libraries that exist in the database in the form of a Vec. If no libraries are found the the Vec will just be empty. This method w
dim-database/src/library.rs:84
Method
get_all
Method returns all Media objects associated with a Library. Its exactly the same as [`Library::get`](dim-database::library::Library::get) except it ta
dim-database/src/media.rs:53
Method
get_all
Method gets all entries from the table users.
dim-database/src/user.rs:192
Method
get_all
Method returns all of the seasons that are linked to a tv show based on a tvshow id # Arguments `conn` - mutable reference to a sqlx transaction. `tv
dim-database/src/season.rs:26
Method
get_all_invites
( conn: &mut crate::Transaction<'_>, )
dim-database/src/user.rs:496
Method
get_all_of_season
FIXME: This function might be especially heavy on the DB. Method returns all of the episodes belonging to a season. # Arguments `conn` - mutable refe
dim-database/src/episode.rs:116
Method
get_all_of_tv
Method returns all of the episodes belonging to a tv show. # Arguments `conn` - a mutable reference to a sqlx transaction. `media` - reference to a m
dim-database/src/episode.rs:83
Method
get_by_file
( conn: &mut crate::Transaction<'_>, file: &str, )
dim-database/src/mediafile.rs:186
Method
get_by_id
( conn: &mut crate::Transaction<'_>, id: i64, )
dim-database/src/asset.rs:13
Method
get_by_id
Method returns a genre based on genre_id and media_id # Arguments `conn` - mutable reference to a sqlx transaction. `genre_id` - id of a genre `media
dim-database/src/genre.rs:68
Method
get_by_id
( conn: &mut crate::Transaction<'_>, uid: UserID, )
dim-database/src/user.rs:211
Method
get_by_id
( conn: &mut crate::Transaction<'_>, episode_id: i64, )
dim-database/src/episode.rs:171
Method
get_by_id
( conn: &mut crate::Transaction<'_>, season_id: i64, )
dim-database/src/season.rs:119
Method
get_by_lib
Method returns all mediafiles associated with a library. # Arguments `conn` - mutable reference to a sqlx transaction. `lib` - reference to a Library
dim-database/src/mediafile.rs:68
Method
get_by_lib_null_media
Method returns all mediafiles associated with a library and filters for those not associated with a media # Arguments `conn` - mutable reference to a
dim-database/src/mediafile.rs:87
Method
get_by_media
Method returns all of the episodes belonging to a tv show. # Arguments `conn` - mutable reference to a sqlx transaction. `media` - reference to a med
dim-database/src/genre.rs:47
Method
get_by_name
Method returns the entry of a genre if exists based on its name. # Arguments `conn` - mutable reference to a sqlx transaction. `query` - genre name
dim-database/src/genre.rs:28
Method
get_by_name_and_lib
Method to get a entry in a library based on name and library # Arguments `conn` - mutable reference to a sqlx transaction. `library_id` - a library i
dim-database/src/media.rs:87
Function
get_chunk
Method mapped to `/api/v1/stream/<id>/data/<chunk..>` returns a chunk for stream `id`.
dim-web/src/routes/stream.rs:575
Method
get_compact
Get compact representation of a media object. This returns the library_id and media_type of the media object.
dim-database/src/media.rs:306
Function
get_conn_devel
()
dim-database/src/lib.rs:107
Method
get_continue_watching
( conn: &mut crate::Transaction<'_>, uid: UserID, count: i64, )
dim-database/src/progress.rs:149
Function
get_directory_structure
( path: Option<Path<String>>, )
dim-web/src/routes/filebrowser.rs:66
Method
get_first
Method will return the oldest season for a tv show that is available. # Arguments `conn` - mutable reference to a sqlx transaction. `tv_id` - id of t
dim-database/src/season.rs:103
Method
get_first_duration
(&self, conn: &mut crate::Transaction<'_>)
dim-database/src/media.rs:223
Method
get_first_for_season
( conn: &mut crate::Transaction<'_>, season_id: i64, )
dim-database/src/episode.rs:36
Method
get_first_for_show
( conn: &mut crate::Transaction<'_>, tv_id: i64, )
dim-database/src/episode.rs:56
Method
get_for_media_user
( conn: &mut crate::Transaction<'_>, uid: UserID, mid: i64, )
dim-database/src/progress.rs:43
Method
get_id_by_name
( tx: &mut crate::Transaction<'_>, name: &str, )
dim-database/src/media.rs:239
Function
get_image
( State(AppState { conn, .. }): State<AppState>, Path(path): Path<String>, Query(params): Query<Im
dim-web/src/routes/statik.rs:65
Function
get_init
Method mapped to `/api/v1/stream/<id>/data/init.mp4` returns the init chunk of the stream `id`. # Query args `start_num` - first chunk index
dim-web/src/routes/stream.rs:559
Method
get_largest_duration
Function will return the largest duration for a media.
dim-database/src/mediafile.rs:200
Method
get_last_watched_episode
Function will query the last episode that was watched for a show.
dim-database/src/episode.rs:293
Method
get_locations
( conn: &mut crate::Transaction<'_>, id: i64, )
dim-database/src/library.rs:100
Method
get_many
Method returns all metadata for a set of mediafile ids. # Arguments `conn` - mutable reference to a sqlx transaction. `ids` - list of mediafile ids
dim-database/src/mediafile.rs:160
Function
get_media_by_id
Method mapped to `GET /api/v1/media/<id>` returns info about a media based on the id queried. This method can only be accessed by authenticated users.
dim-web/src/routes/media.rs:120
Function
get_media_files
( Path(id): Path<i64>, State(AppState { conn, .. }): State<AppState>, )
dim-web/src/routes/media.rs:305
Function
get_mediafile_info
Method mapped to `GET /api/v1/mediafile/<id>` is used to get information about a mediafile by its id. # Arguments `id` - id of the mediafile we want
dim-web/src/routes/mediafile.rs:85
Function
get_mediafile_tree
# GET `/api/v1/media/<id>/tree` Method mappedReturns a tree of mediafiles for a given media object. # Authentication Method requires standard authent
dim-web/src/routes/media.rs:325
Method
get_of_genre
( conn: &mut crate::Transaction<'_>, genre_id: i64, )
dim-database/src/media.rs:190
Method
get_of_media
Method returns all mediafiles associated with a Media object. # Arguments `conn` - mutable reference to a sqlx transaction. `lib` - reference to a Li
dim-database/src/mediafile.rs:105
Method
get_of_mediafile
( conn: &mut crate::Transaction<'_>, mediafile_id: i64, )
dim-database/src/media.rs:102
Method
get_of_show
( conn: &mut crate::Transaction<'_>, id: i64, )
dim-database/src/mediafile.rs:120
Method
get_of_user
( conn: &mut crate::Transaction<'_>, uid: UserID, )
dim-database/src/asset.rs:24
Method
get_of_year
( conn: &mut crate::Transaction<'_>, year: i64, )
dim-database/src/media.rs:207
Method
get_one
Method filters the database for a library with the id supplied and returns it. This method will also fetch the indexed locations for this library. #
dim-database/src/library.rs:119
Method
get_one
Method returns all metadata of a mediafile based on the id supplied. # Arguments `conn` - mutable reference to a sqlx transaction. `_id` - id of the
dim-database/src/mediafile.rs:144
Method
get_progress_for_media
( conn: &mut crate::Transaction<'_>, id: i64, uid: UserID, )
dim-database/src/progress.rs:95
Method
get_random_with
( conn: &mut crate::Transaction<'_>, limit: i64, )
dim-database/src/media.rs:152
Method
get_recently_added
Method returns the recently added medias
dim-database/src/media.rs:135
Method
get_search
( conn: &mut crate::Transaction<'_>, query: &str, limit: i64, )
dim-database/src/media.rs:170
Function
get_season_by_id
Method mapped to `GET /api/v1/season/<id>` returns info about the season by `id` # Arguments `id` - id of the season we want info about
dim-web/src/routes/tv.rs:34
Method
get_season_episode_by_id
( conn: &mut crate::Transaction<'_>, episode_id: i64, )
dim-database/src/episode.rs:189
Function
get_season_episodes
Method mapped to `GET /api/v1/episode/<id>` returns information about a episode for a season. # Arguments `id` - id of the episode.
dim-web/src/routes/tv.rs:71
Method
get_seasonid
( tx: &mut crate::Transaction<'_>, episodeid: i64, )
dim-database/src/episode.rs:323
Method
get_size
( tx: &mut crate::Transaction<'_>, id: i64, )
dim-database/src/library.rs:175
Function
get_subtitle
Method mapped to `/api/v1/stream/<id>/data/stream.vtt` attempts to transcode the underlying stream to VTT. # Arguments `id` - id of the underlying st
dim-web/src/routes/stream.rs:616
Function
get_subtitle_ass
Method mapped to `/api/v1/stream/<id>/data/stream.ass` attempts to transcode the underlying stream to ASS. # Arguments `id` - id of the underlying st
dim-web/src/routes/stream.rs:635
Method
get_top_rated
Method returns the top rated medias
dim-database/src/media.rs:117
Method
get_total_for_media
( conn: &mut crate::Transaction<'_>, media: &Media, uid: UserID, )
dim-database/src/progress.rs:82
Method
get_total_for_tv
( conn: &mut crate::Transaction<'_>, uid: UserID, tv_id: i64, )
dim-database/src/progress.rs:123
← previous
next →
501–600 of 773, ranked by callers