Created
August 13, 2023 13:59
-
-
Save geekman/18a68e9e395678bfe645b561eb86c774 to your computer and use it in GitHub Desktop.
copy-paste snippet to un-download all unwatched episodes in DuckieTV
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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