Skip to content

Instantly share code, notes, and snippets.

@geekman
Created August 13, 2023 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geekman/18a68e9e395678bfe645b561eb86c774 to your computer and use it in GitHub Desktop.
Save geekman/18a68e9e395678bfe645b561eb86c774 to your computer and use it in GitHub Desktop.
copy-paste snippet to un-download all unwatched episodes in DuckieTV
// un-download any unwatched episodes
// this problem was created during initial Trakt.TV sync and it added everything to the "collection"
CRUD.Find('Episode', {}, {'limit': 100000}).then(function(eps) {
eps.map(function(ep) {
if (ep.hasAired() && !ep.isWatched() && ep.isDownloaded()) {
console.log(ep.ID_Serie, ep.getFormattedEpisode(), ep);
ep.markNotDownloaded(/*pairing:*/ false);
}
})
})
// more hacking snippets can be found here:
// https://github.com/SchizoDuckie/DuckieTV/blob/angular/DEBUG.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment