Skip to content

Conversation

@ibigpapa
Copy link

Just added some additional logic to your existing code. I tried to match your format to keep it consistent.

What it does is creates an array object and attaches properties to the array object instead of creating the html in your history $.each loop.

the properties are unique to tv show season and episode to make it easy to identify same show season and episode. the unique property is literally just TVDBID + Season + Episode.
then just keeps the snatched and downloaded status. to make sure both states are true. If they are not then it adds those shows to the history. Changed status text and background color for this. That may require some tweaking to look right but that's a preference thing.

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.

1 participant