Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
5rahim committed May 25, 2024
1 parent 4f9b197 commit bb8b922
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file.

## v1.5.2

- 🦺 Fixed transcoding not starting (regression in v1.5.1)
- 🦺 Fixed Discover page header opacity issues
- 🦺 Fixed runtime error caused by missing settings
- 🏗️ Reduced latency when reading local files

## v1.5.1

- ⚡️ Reduced memory usage
Expand Down
3 changes: 3 additions & 0 deletions internal/handlers/anilist.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ func HandleGetAnilistCollection(c *RouteCtx) error {
}

go func() {
if c.App.Settings == nil {
return
}
if c.App.Settings.Library.EnableManga {
_, _ = c.App.GetMangaCollection(bypassCache)
if bypassCache {
Expand Down
2 changes: 1 addition & 1 deletion internal/handlers/onlinestream.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func HandleGetOnlineStreamEpisodeList(c *RouteCtx) error {
return c.RespondWithError(err)
}

if !c.App.Settings.Library.EnableOnlinestream {
if c.App.Settings == nil || !c.App.Settings.Library.EnableOnlinestream {
return c.RespondWithError(errors.New("enable online streaming in the settings"))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export function useHandleMediastream(props: HandleMediastreamProps) {
* Fetch media container containing stream URL
*/
const { data: _mediaContainer, isError: isMediaContainerError, isPending, isFetching, refetch } = useRequestMediastreamMediaContainer({
// path: filePath,
path: filePath,
streamType: streamType,
clientId: sessionId,
})
Expand Down

0 comments on commit bb8b922

Please sign in to comment.