MCPcopy Create free account

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

Functions773 in github.com/Dusk-Labs/dim

Methoddelete_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
Methoddelete_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
Functiondelete_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
Functiondelete_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
Functiondelete_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
Functiondelete_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
Methoddelete_token
( conn: &mut crate::Transaction<'_>, token: String, )
dim-database/src/user.rs:507
Functiondeserialize_letterkenny
()
dim-extern-api/src/tmdb/mod.rs:241
Functiondist_static
(uri: Uri)
dim-web/src/routes/statik.rs:133
Methoddrop
(&mut self)
dim-extern-api/src/tmdb/cache_control.rs:161
Methodencode_by_ref
( &self, buf: &mut <DB as sqlx::database::HasArguments<'q>>::ArgumentBuffer, )
dim-database/src/user.rs:106
Methodeq
(&self, other: &Media)
dim-database/src/media.rs:39
Methodexists_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
FunctionfetchLibraryInfo
()
ui/src/actions/library.js:155
FunctionfetchLibraryMedia
()
ui/src/actions/library.js:159
FunctionfetchLibraryUnmatched
(id)
ui/src/actions/library.js:56
FunctionfilterInt
(input: string)
ui/src/Components/AdvancedSearch/Index.tsx:9
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
dim-extern-api/src/lib.rs:122
Methodfmt
(&self, fmt: &mut std::fmt::Formatter<'_>)
dim-extern-api/src/tmdb/metadata_provider.rs:467
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
dim-database/src/library.rs:19
Methodfmt
(&self, fmt: &mut std::fmt::Formatter<'_>)
dim-core/src/stream_tracking.rs:21
Methodfrom
(media: TMDBMediaObject)
dim-extern-api/src/tmdb/raw_client.rs:37
Methodfrom
(this: TMDBClientRequestError)
dim-extern-api/src/tmdb/mod.rs:40
Methodfrom
(other: InsertableMedia)
dim-database/src/media.rs:511
Methodfrom
(e: sqlx::error::Error)
dim-database/src/error.rs:12
Methodfrom
( Record { id, name, duration, target_file, }:
dim-database/src/compact_mediafile.rs:27
Methodfrom
(e: sqlx::Error)
dim-core/src/errors.rs:58
Methodfrom
(stream: Stream)
dim-core/src/streaming/ffprobe.rs:79
Methodfrom
(action: Action)
dim-core/src/reactor/types.rs:31
Methodfrom
(error: DimError)
dim-web/src/error.rs:12
Methodfrom
(_: std::io::Error)
dim-web/src/routes/filebrowser.rs:25
Methodfrom
(e: dim_core::scanner::error::Error)
dim-web/src/routes/mediafile.rs:49
Methodfrom
(_: axum::Error)
dim-web/src/routes/websocket.rs:114
Methodfrom_str
(s: &str)
dim-extern-api/src/filename.rs:18
Functiongenerate_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
Methodget
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
Methodget
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
Methodget
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
FunctiongetInitialTrack
(trackArr)
ui/src/Pages/VideoPlayer/Index.jsx:199
Methodget_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
Methodget_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
Methodget_all
Method gets all entries from the table users.
dim-database/src/user.rs:192
Methodget_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
Methodget_all_invites
( conn: &mut crate::Transaction<'_>, )
dim-database/src/user.rs:496
Methodget_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
Methodget_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
Methodget_by_file
( conn: &mut crate::Transaction<'_>, file: &str, )
dim-database/src/mediafile.rs:186
Methodget_by_id
( conn: &mut crate::Transaction<'_>, id: i64, )
dim-database/src/asset.rs:13
Methodget_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
Methodget_by_id
( conn: &mut crate::Transaction<'_>, uid: UserID, )
dim-database/src/user.rs:211
Methodget_by_id
( conn: &mut crate::Transaction<'_>, episode_id: i64, )
dim-database/src/episode.rs:171
Methodget_by_id
( conn: &mut crate::Transaction<'_>, season_id: i64, )
dim-database/src/season.rs:119
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Methodget_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
Functionget_chunk
Method mapped to `/api/v1/stream/<id>/data/<chunk..>` returns a chunk for stream `id`.
dim-web/src/routes/stream.rs:575
Methodget_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
Functionget_conn_devel
()
dim-database/src/lib.rs:107
Methodget_continue_watching
( conn: &mut crate::Transaction<'_>, uid: UserID, count: i64, )
dim-database/src/progress.rs:149
Functionget_directory_structure
( path: Option<Path<String>>, )
dim-web/src/routes/filebrowser.rs:66
Methodget_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
Methodget_first_duration
(&self, conn: &mut crate::Transaction<'_>)
dim-database/src/media.rs:223
Methodget_first_for_season
( conn: &mut crate::Transaction<'_>, season_id: i64, )
dim-database/src/episode.rs:36
Methodget_first_for_show
( conn: &mut crate::Transaction<'_>, tv_id: i64, )
dim-database/src/episode.rs:56
Methodget_for_media_user
( conn: &mut crate::Transaction<'_>, uid: UserID, mid: i64, )
dim-database/src/progress.rs:43
Methodget_id_by_name
( tx: &mut crate::Transaction<'_>, name: &str, )
dim-database/src/media.rs:239
Functionget_image
( State(AppState { conn, .. }): State<AppState>, Path(path): Path<String>, Query(params): Query<Im
dim-web/src/routes/statik.rs:65
Functionget_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
Methodget_largest_duration
Function will return the largest duration for a media.
dim-database/src/mediafile.rs:200
Methodget_last_watched_episode
Function will query the last episode that was watched for a show.
dim-database/src/episode.rs:293
Methodget_locations
( conn: &mut crate::Transaction<'_>, id: i64, )
dim-database/src/library.rs:100
Methodget_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
Functionget_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
Functionget_media_files
( Path(id): Path<i64>, State(AppState { conn, .. }): State<AppState>, )
dim-web/src/routes/media.rs:305
Functionget_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
Functionget_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
Methodget_of_genre
( conn: &mut crate::Transaction<'_>, genre_id: i64, )
dim-database/src/media.rs:190
Methodget_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
Methodget_of_mediafile
( conn: &mut crate::Transaction<'_>, mediafile_id: i64, )
dim-database/src/media.rs:102
Methodget_of_show
( conn: &mut crate::Transaction<'_>, id: i64, )
dim-database/src/mediafile.rs:120
Methodget_of_user
( conn: &mut crate::Transaction<'_>, uid: UserID, )
dim-database/src/asset.rs:24
Methodget_of_year
( conn: &mut crate::Transaction<'_>, year: i64, )
dim-database/src/media.rs:207
Methodget_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
Methodget_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
Methodget_progress_for_media
( conn: &mut crate::Transaction<'_>, id: i64, uid: UserID, )
dim-database/src/progress.rs:95
Methodget_random_with
( conn: &mut crate::Transaction<'_>, limit: i64, )
dim-database/src/media.rs:152
Methodget_recently_added
Method returns the recently added medias
dim-database/src/media.rs:135
Methodget_search
( conn: &mut crate::Transaction<'_>, query: &str, limit: i64, )
dim-database/src/media.rs:170
Functionget_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
Methodget_season_episode_by_id
( conn: &mut crate::Transaction<'_>, episode_id: i64, )
dim-database/src/episode.rs:189
Functionget_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
Methodget_seasonid
( tx: &mut crate::Transaction<'_>, episodeid: i64, )
dim-database/src/episode.rs:323
Methodget_size
( tx: &mut crate::Transaction<'_>, id: i64, )
dim-database/src/library.rs:175
Functionget_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
Functionget_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
Methodget_top_rated
Method returns the top rated medias
dim-database/src/media.rs:117
Methodget_total_for_media
( conn: &mut crate::Transaction<'_>, media: &Media, uid: UserID, )
dim-database/src/progress.rs:82
Methodget_total_for_tv
( conn: &mut crate::Transaction<'_>, uid: UserID, tv_id: i64, )
dim-database/src/progress.rs:123
← previousnext →501–600 of 773, ranked by callers