Skip to content

Fix merging consecutive sequences causing data loss#155

Merged
Borewit merged 2 commits into
Borewit:mainfrom
excelsior-dev:main
Jul 22, 2025
Merged

Fix merging consecutive sequences causing data loss#155
Borewit merged 2 commits into
Borewit:mainfrom
excelsior-dev:main

Conversation

@excelsior-dev

Copy link
Copy Markdown
Contributor

Hello,
I tried using listFix and after a few days of finding it great I discovered data loss bug. I decided to do my first ever pull request so bear with me please.

It led me to lizzy being the culprit. Having more than one sequence of repeats (duplicates) in a playlist (I used m3u8) was overwriting entries which are certain number of places after that sequence. It was caused by wrong indexing in "mergeConsecutiveIdenticalMedia" method. Made a small test file also, hope it's all good.

Tell me If I'm doing something wrong or it could be done better. Waiting for next listFix update!

@Borewit Borewit self-assigned this Jul 21, 2025

@Borewit Borewit left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Code style issues: ./gradlew check :checkstyleTest is not passing.

Awesome work @excelsior-dev . Very nice catch!
And av very brave step! You are now an open source contributor.

Next time you create a PR, create new branch!

If you add changes to the default (main on this repo) branch , you cannot sync back changes I have done the the original main branch.

That is critical cycle to solve merge conflicts. It also makes it harder to checkout your branch as now I have 2 main branches in my environment.

-Fixed typo
-Using diamond when instantiating generic lists
-Ensuring to remove tmp file
-Cleaning up
@excelsior-dev
excelsior-dev requested a review from Borewit July 21, 2025 22:09
@excelsior-dev

Copy link
Copy Markdown
Contributor Author

Thank you for the fast response!

Will create a new branch next time, I guess it will pass this time because there are no commits in original main?

Think I fixed everything you requested. Wasn't sure what's the best way to do it since there are buttons to commit suggestions you made. I chose to make changes locally and then push.

Let me know if there is anything else.

@Borewit Borewit added the bug Something isn't working label Jul 22, 2025

@Borewit Borewit left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

LGTM

@Borewit
Borewit merged commit 7944098 into Borewit:main Jul 22, 2025
@excelsior-dev

Copy link
Copy Markdown
Contributor Author

Thank you very much and good luck!

@Borewit

Borewit commented Jul 22, 2025

Copy link
Copy Markdown
Owner

Please be patient for publishing, it became true nightmare with recent changes at Maven Central.

@excelsior-dev

Copy link
Copy Markdown
Contributor Author

No problem, not hurrying anywhere

@Borewit

Borewit commented Jul 23, 2025

Copy link
Copy Markdown
Owner

Part of release v4.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants