aboutsummaryrefslogtreecommitdiff
path: root/src/services
AgeCommit message (Collapse)AuthorFilesLines
2022-01-25Fix whole playlist fails when one song is unavailable (#489)Thongrapee Panyapatiphan1-7/+10
Co-authored-by: Max Isom <[email protected]>
2022-01-21Announce current song (#470)Thongrapee Panyapatiphan3-9/+19
Co-authored-by: Max Isom <[email protected]>
2022-01-07Bump discord.jsMax Isom1-0/+1
2022-01-07Bump youtube.tsMax Isom1-3/+3
2022-01-06Don't silently failMax Isom1-48/+36
2022-01-05Setup and migrate to Prisma (#456)Peerawas Archavanuntakun3-31/+88
2021-12-18Merge branch 'master' into playlist-limit-configMax Isom2-11/+117
2021-12-18Revert incorrect changesThongrapee Panyapatiphan1-8/+8
2021-12-17Merge branch 'master' into mutexMax Isom1-0/+4
2021-12-12Always resumeMax Isom1-0/+4
2021-12-09Merge branch 'master' into playlist-limit-configThongrapee Panyapatiphan5-93/+200
2021-12-07Check database direction for orphansMax Isom1-0/+66
2021-12-03Revert back to static propertyMax Isom1-3/+3
2021-12-03Use loop instead of recursionMax Isom1-8/+27
2021-12-03Update debug loggingMax Isom1-8/+5
2021-12-03Return when queue is emptyMax Isom1-7/+9
2021-12-03Disable @typescript-eslint/no-implicit-any-catchMax Isom1-2/+2
(Strict mode in TS 4.4 enables useUnknownInCatchVariables, so this is redundant.)
2021-12-03add some debug logsHellyson Rodrigo Parteka1-1/+7
2021-12-03fix(file-cache): add queue to handle eviction of old filesHellyson Rodrigo Parteka1-4/+12
This commit also removes the `await` from every stream creation. The eviction will be handled totally assyncronously. The only drawback is the possibility of exceeding the cache limit for a moment, until the next execution of `evictOldest`. This will only be a problem if the cache is set too close to the remaining disk space, which I wouldn't recomend. I also removed the recursion.
2021-12-03fix(file-cache): try/catch to prevent concurrency issuesHellyson Rodrigo Parteka1-3/+7
2021-11-24Add back -re option on uncached streamsMax Isom1-9/+11
2021-11-24Change event to closeMax Isom1-2/+2
2021-11-24Merge branch 'master' into feature/better-file-cachingMax Isom1-0/+4
2021-11-20Merge branch 'master' into removeMax Isom1-2/+6
2021-11-20feat: remove from queueDrunkenToast1-0/+4
+ fix typo queuecommand
2021-11-20fix: change `player.add(...)` behaviorHellyson Rodrigo Parteka1-16/+3
2021-11-20feat: discord.js v13Hellyson Rodrigo Parteka1-25/+32
2021-11-20Only add event listeners onceMax Isom1-2/+6
See #372
2021-11-19Add .removeOrphans()Max Isom1-3/+11
2021-11-19Move file caching logic to new FileCache serviceMax Isom3-42/+132
Also: removes the -re ffmpeg option. If this option is passed, ffmpeg won't write to fs-capacitor (and the cache file) as fast as possible. In other words, the cache file won't finish writing until the entire stream has been played.
2021-11-18Add FileCache modelMax Isom2-4/+4
2021-11-18Rename existing cache modelMax Isom1-3/+3
2021-11-17fix: change `player.add(...)` behaviorHellyson Rodrigo Parteka1-16/+3
2021-11-17Merge branch 'master' into bugfix/only-add-listeners-onceMax Isom1-23/+35
2021-11-12feat: discord.js v13Hellyson Rodrigo Parteka1-21/+32
2021-10-31Add -re flagMax Isom1-0/+1
See #389, https://trac.ffmpeg.org/wiki/StreamingGuide
2021-10-03Only add event listeners onceMax Isom1-2/+6
See #372
2021-10-01Simplify codeThongrapee Panyapatiphan1-2/+2
2021-10-01Read playlist song limit from SettingsThongrapee Panyapatiphan1-9/+9
2021-10-01Revert "Add config for song limit per playlist"Thongrapee Panyapatiphan2-20/+7
This reverts commit 296a0a8178fb3c670c924b230a042cc1e6241719.
2021-09-30Add config for song limit per playlistThongrapee Panyapatiphan2-7/+20
2021-09-25Binds recursive call function to keep original scopeJordan Nguy1-1/+1
2021-09-23Warn if cache key is too shortMax Isom1-0/+4
See #357
2021-09-23fix: playlist load, cache keyHellyson Rodrigo Parteka1-8/+10
Fixes #357
2021-09-19Bump linter versionMax Isom6-44/+43
2021-09-19Move to ESM, use ytsr, implement cachingMax Isom5-37/+149
Closes #315
2021-09-19Reorg third party services & configMax Isom3-5/+79
2021-09-18Correctly skip song if unavailableMax Isom3-14/+57
Also lets user know in text channel that song is unavailable after skipping. Fixes #324
2021-09-15Join the message sender's channel if possibleLuis Ávila1-7/+7
2021-09-14Fix URL cleaning: youtube IDs are not valid URLsLuis Ávila1-10/+2