Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support STRM files in library as available content #1004

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

alanmilinovic
Copy link

@alanmilinovic alanmilinovic commented Oct 12, 2024

Description

Presence of a STRM container file for an item in Emby / Jellyfin should result in the item being marked as available

Screenshot (if UI-related)

To-Dos

  • Successful build pnpm build
  • Translation keys pnpm i18n:extract
  • Database migration (if required)

Issues Fixed or Closed

markjbear and others added 2 commits September 21, 2024 16:54
…o would fail current check for 'other resolution'
Support strm files, which won't have mediastream data until played, s…
@alanmilinovic
Copy link
Author

Can someone please review?

@Fallenbagel
Copy link
Owner

Fallenbagel commented Oct 17, 2024

Can someone please review?

Please be patient. We are working on reviewing prs. Currently we have app breaking bugs in 2.0.0 that we need to put higher priority on

@Fallenbagel Fallenbagel changed the title Support STRM files in library as available content feat: support STRM files in library as available content Oct 17, 2024
Copy link
Collaborator

@gauthier-th gauthier-th left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix all the whitespace changes you made.
You can format your code with the command pnpm format.

server/lib/scanners/jellyfin/index.ts Outdated Show resolved Hide resolved
Copy link
Author

@alanmilinovic alanmilinovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removing trailing whitespace

Copy link
Author

@alanmilinovic alanmilinovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed whitespacing

Copy link
Collaborator

@gauthier-th gauthier-th left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whitespaces are not fixed.

server/lib/scanners/jellyfin/index.ts Show resolved Hide resolved
server/lib/scanners/jellyfin/index.ts Show resolved Hide resolved
server/lib/scanners/jellyfin/index.ts Show resolved Hide resolved
server/lib/scanners/jellyfin/index.ts Show resolved Hide resolved
server/lib/scanners/jellyfin/index.ts Show resolved Hide resolved
server/lib/scanners/jellyfin/index.ts Outdated Show resolved Hide resolved
server/lib/scanners/jellyfin/index.ts Show resolved Hide resolved
server/lib/scanners/jellyfin/index.ts Show resolved Hide resolved
@@ -96,7 +96,7 @@ class JellyfinScanner {
(MediaStream) => MediaStream.Type === 'Video'
).some((MediaStream) => {
return (MediaStream.Width ?? 0) <= 2000;
});
}) || MediaSource.Container === 'strm';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By doing this, all STRM media will be considered non-4k media. Right now I don't know what method to use, but you have to find a way to retrieve the media definition.

Copy link
Author

@alanmilinovic alanmilinovic Oct 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm, I also have no idea.

@gauthier-th
Copy link
Collaborator

You have to find a way to retrieve the media definition of the STRM stream to be classified as non-4k or 4k. You can't classify every STRM as non-4k.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support STRM files in library as available content
3 participants