Skip to content

Commit

Permalink
fix luminous & scylla
Browse files Browse the repository at this point in the history
  • Loading branch information
Yentis committed May 6, 2024
1 parent e050181 commit 67958c5
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "quasar-manga-reader",
"version": "2.23.9",
"version": "2.23.10",
"description": "Manga reader that scrapes manga sites for updates",
"productName": "Manga Reader",
"author": "Yentis#5218",
Expand Down
2 changes: 1 addition & 1 deletion src-cordova/config.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="org.cordova.manga.reader" version="2.23.9" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget id="org.cordova.manga.reader" version="2.23.10" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Manga Reader</name>
<description>Manga reader that scrapes manga sites for updates</description>
<author email="[email protected]" href="http://cordova.io">
Expand Down
1 change: 0 additions & 1 deletion src/classes/sites/scyllascans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export class ScyllaScans extends BaseSite {
data.title = doc.querySelectorAll('h2')[0]
const title = this.getTitle(data)
data.image = doc.querySelectorAll(`img[alt="${title}"]`)[0]
console.log('Title:', title)

return this.buildManga(data)
}
Expand Down
8 changes: 4 additions & 4 deletions src/enums/siteEnum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ export enum SiteType {
FlameComics = 'flamecomics.com',
ResetScans = 'reset-scans.xyz',
Cubari = 'cubari.moe',
LuminousScans = 'lumitoon.com',
LuminousScans = 'luminouscomics.org',
Tapas = 'tapas.io',
Comikey = 'comikey.com',
Tappytoon = 'tappytoon.com',
ScyllaScans = 'scyllascans.org',
ScyllaScans = 'scyllacomics.xyz',
}

export enum SiteName {
Expand All @@ -42,11 +42,11 @@ export enum SiteName {
'flamecomics.com' = 'Flame Comics',
'reset-scans.xyz' = 'Reset Scans',
'cubari.moe' = 'Cubari / Guya',
'lumitoon.com' = 'Luminous Scans',
'luminouscomics.org' = 'Luminous Scans',
'tapas.io' = 'Tapas',
'comikey.com' = 'Comikey',
'tappytoon.com' = 'Tappytoon',
'scyllascans.org' = 'Scylla Scans',
'scyllacomics.xyz' = 'Scylla Scans',
}

export enum SiteState {
Expand Down
5 changes: 2 additions & 3 deletions src/services/test/luminousscans.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import moment from 'moment'
import { Manga } from 'src/classes/manga'
import { BaseSite } from 'src/classes/sites/baseSite'
import { SiteType } from 'src/enums/siteEnum'
Expand All @@ -24,7 +23,7 @@ async function readUrl(site: BaseSite): Promise<void> {
desired.title = 'My Office Noona’s Story'
desired.chapterUrl = `${site.getUrl()}/1706860801-my-office-noonas-story-epilogue-chapter-03/`
desired.chapterNum = 64
desired.chapterDate = moment('November 1, 2021', 'MMMM DD, YYYY').fromNow()
desired.chapterDate = '2 years ago'

mangaEqual(manga, desired)
}
Expand All @@ -33,7 +32,7 @@ async function search(site: BaseSite): Promise<void> {
const results = await searchManga(QUERY, SITE_TYPE)
const desired = new Manga(site.getTestUrl(), SITE_TYPE)
desired.image = `${site.getUrl()}/wp-content/uploads/2021/07/LONBAnimGif1-212x300.gif`
desired.chapter = '182'
desired.chapter = '187'
desired.url = `${site.getUrl()}/series?p=5424`

await searchValid(results, desired, QUERY)
Expand Down
8 changes: 4 additions & 4 deletions src/services/test/scyllascans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ async function readUrl(site: BaseSite): Promise<void> {
const manga = await getMangaInfo(site.getTestUrl(), SITE_TYPE)
const desired = new Manga(site.getTestUrl(), SITE_TYPE)
desired.chapter = 'Chapter 6'
desired.image = 'https://scyllascans.org/storage/covers/65ef1e596107d.jpg'
desired.image = `${site.getUrl()}/storage/covers/65ef1e596107d.jpg`
desired.title = 'One in a Hundred'
desired.chapterUrl = 'https://scyllascans.org/manga/one-in-a-hundred/6'
desired.chapterUrl = `${site.getUrl()}/manga/one-in-a-hundred/6`
desired.chapterNum = 6
desired.chapterDate = '14 days ago'
desired.chapterDate = 'a month ago'

mangaEqual(manga, desired)
}

async function search(site: BaseSite): Promise<void> {
const results = await searchManga(QUERY, SITE_TYPE)
const desired = new Manga(site.getTestUrl(), SITE_TYPE)
desired.image = 'https://scyllascans.org/storage/covers/65ef1e596107d.jpg'
desired.image = `${site.getUrl()}/storage/covers/65ef1e596107d.jpg`
desired.chapter = 'Chapter 6'

return searchValid(results, desired, QUERY)
Expand Down
6 changes: 4 additions & 2 deletions src/utils/siteUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ export const siteAliases = [
{ url: 'leviatanscans.com', site: SiteType.LSComic },
{ url: 'en.leviatanscans.com', site: SiteType.LSComic },
{ url: 'flamescans.org', site: SiteType.FlameComics },
{ url: 'luminousscans.com', site: SiteType.LuminousScans },
{ url: 'luminousscans.gg', site: SiteType.LuminousScans },
{ url: 'reapercomics.com', site: SiteType.ReaperScans },
{ url: 'reset-scans.com', site: SiteType.ResetScans },
{ url: 'reset-scans.us', site: SiteType.ResetScans },
{ url: 'zeroscans.com', site: SiteType.ZeroScans },
{ url: 'luminousscans.com', site: SiteType.LuminousScans },
{ url: 'luminousscans.gg', site: SiteType.LuminousScans },
{ url: 'luminousscans.net', site: SiteType.LuminousScans },
{ url: 'lumitoon.com', site: SiteType.LuminousScans },
{ url: 'scyllascans.org', site: SiteType.ScyllaScans },
]

export function getUrl(url: string) {
Expand Down

0 comments on commit 67958c5

Please sign in to comment.