• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Nikorag / iplayarr / 14726106855

29 Apr 2025 07:49AM UTC coverage: 41.803% (+3.9%) from 37.949%
14726106855

push

github

web-flow
Merge pull request #124 from Nikorag/ytdlp

YT-DLP Support

214 of 563 branches covered (38.01%)

Branch coverage included in aggregate %.

334 of 892 new or added lines in 61 files covered. (37.44%)

26 existing lines in 15 files now uncovered.

755 of 1755 relevant lines covered (43.02%)

3.7 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/validators/AppFormValidator.ts
1
import appService from '../service/appService';
×
2
import { Validator } from './Validator';
×
3

4
export class AppFormValidator extends Validator {
×
5
    async validate(input: any): Promise<{ [key: string]: string }> {
NEW
6
        const validatorError: { [key: string]: string } = {};
×
NEW
7
        const testResult: string | boolean = await appService.testAppConnection(input);
×
NEW
8
        if (testResult != true) {
×
9
            validatorError['api_key'] = testResult as string;
×
10
            validatorError['url'] = testResult as string;
×
11
        }
NEW
12
        if ((input.indexer?.name || input.indexer?.priority) && !input.download_client?.name) {
×
13
            validatorError['indexer_name'] = 'Cannot create Indexer without Download Client' as string;
×
14
            validatorError['indexer_priority'] = 'Cannot create Indexer without Download Client' as string;
×
15
        }
16
        if (input.indexer?.priority && (input.indexer.priority < 0 || input.indexer.priority > 50)) {
×
17
            validatorError['indexer_priority'] = 'Priority must be between 0 and 50' as string;
×
18
        }
NEW
19
        if (input.priority && input.priority < 0) {
×
20
            validatorError['priority'] = 'Priority must be a positive number' as string;
×
21
        }
22
        return validatorError;
×
23
    }
24
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc