feat: initial version of reader

This commit is contained in:
2024-07-06 00:53:46 +03:00
parent 2660aef473
commit 55e729422b
12 changed files with 283 additions and 9 deletions

View File

@@ -1,6 +1,8 @@
import { Injectable } from "@angular/core";
import { BehaviorSubject, Observable, map } from "rxjs";
import { LibSocialParserService } from "./parsers/rulib/lib.social.parser.service";
import { IRulibChapterResult } from "./parsers/rulib/rulib.chapter.dto";
import { IRulibChaptersResult } from "./parsers/rulib/rulib.chapters.dto";
import { IRulibDetailResult } from "./parsers/rulib/rulib.detail.dto";
import { Datum } from "./parsers/rulib/rulib.search.dto";
@@ -23,4 +25,24 @@ export class SearchService {
}),
);
}
getChapters(url: string): Observable<IRulibChaptersResult> {
return this.parser.getChapters(url).pipe(
map((data) => {
return data;
}),
);
}
getChapter(url: string, chapter: string, volume: string): Observable<IRulibChapterResult> {
return this.parser.getChapter(url, chapter, volume).pipe(
map((data) => {
return data;
}),
);
}
getImageServer() {
return this.parser.imageServer;
}
}