Added ability to select the max quality for a subscription. It defaults to 'best' which will get the best native mp4 video

This commit is contained in:
Isaac Abadi
2020-11-28 00:45:01 -05:00
parent 9895d77e01
commit 8938844ffa
7 changed files with 94 additions and 8 deletions

View File

@@ -337,9 +337,11 @@ export class PostsService implements CanActivate {
});
}
createSubscription(url, name, timerange = null, streamingOnly = false, audioOnly = false, customArgs = null, customFileOutput = null) {
return this.http.post(this.path + 'subscribe', {url: url, name: name, timerange: timerange, streamingOnly: streamingOnly,
audioOnly: audioOnly, customArgs: customArgs, customFileOutput: customFileOutput}, this.httpOptions);
createSubscription(url, name, timerange = null, streamingOnly = false, maxQuality = 'best', audioOnly = false,
customArgs = null, customFileOutput = null) {
return this.http.post(this.path + 'subscribe', {url: url, name: name, timerange: timerange, maxQuality: maxQuality,
streamingOnly: streamingOnly, audioOnly: audioOnly, customArgs: customArgs,
customFileOutput: customFileOutput}, this.httpOptions);
}
updateSubscription(subscription) {