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

Fixing Source List Displaying Empty Items #810

Merged

Conversation

yueehaoo
Copy link
Contributor

No description provided.

normalSafeApiCall {
// Extra normalSafeApiCall since .toSet() iterates.
_currentLinks.postValue(currentLinks.toSet())
if (it.first?.url?.isNotEmpty() == true) {
Copy link
Contributor

@Blatzar Blatzar Dec 11, 2023

Choose a reason for hiding this comment

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

This does not account for ExtractorUri (local files), in that case it.first would be null

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, I will try other fix methods

@Blatzar
Copy link
Contributor

Blatzar commented Dec 11, 2023

Perhaps this would be better implemented in mainapi and we can do warnings and filtering there instead without adding complexity to the already complex link loading. Better to fix it at the source, since links are used by other stuff like the downloader, copy links and external players.

@fire-light42
Copy link
Collaborator

This should instead be in RepoLinkGenerator

@yueehaoo
Copy link
Contributor Author

This should instead be in RepoLinkGenerator
Thank you, I will try to handle it in the RepoLinkGenerator.

@fire-light42 fire-light42 merged commit 6e5a52e into recloudstream:master Dec 13, 2023
2 checks passed
@fire-light42
Copy link
Collaborator

🙏 Nice, this should fix all the empty links

@yueehaoo yueehaoo deleted the fix/loadLinks-empty-handling branch December 14, 2023 04:29
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.

None yet

3 participants