Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add option to retrieve metadata from www.wlnupdates.com or www.novelupdates.com #54

Open
Emasoft opened this issue Dec 18, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@Emasoft
Copy link

Emasoft commented Dec 18, 2020

Please add the option to retrieve all novel metadata (alternative titles, author, first published date, genres, summary, series, etc.) from www.wlnupdates.com or www.novelupdates.com and save those in the epub metadata.

@Emasoft Emasoft added the enhancement New feature or request label Dec 18, 2020
@dr-nyt
Copy link
Member

dr-nyt commented Dec 19, 2020

Both of these sources link to many different websites and makes it virtually impossible since the code will never be able to accurately guess where the chapter content is. Additionally, the goal of this app is to provide a way for a user to download and read novels for personal use only and I don't think additional metadata is necessary.

@Emasoft
Copy link
Author

Emasoft commented Dec 19, 2020

You just need to get all the epub metadata from the novel web page on novelupdates.com or wlnupdates.com. Here is a real world example from an epub:

<dc:identifier id="book-id" opf:scheme="ISBN">1234567890X</dc:identifier> 
    <dc:title id="english">Battle Through the Heavens</dc:title>
    <meta refines="#english" property="title-type">english title</meta>
    <dc:title id="original">斗破苍穹</dc:title>
    <meta refines="#original" property="title-type">original title</meta>
    <dc:title id="alternative">Fights Break Sphere</dc:title>
    <meta refines="#alternative" property="title-type">alternative title</meta>
    <dc:language id="text-language">en</dc:language>
    <meta refines="#text-language" property="identifier-type" scheme="onix:codelist22">01</meta>
    <dc:language id="original-language">cn</dc:language>
    <meta refines="#original-language" property="identifier-type" scheme="onix:codelist22">02</meta>
    <dc:creator opf:role="aut" >Heavenly Silkworm Potato</dc:creator>
    <dc:creator opf:role="aut" >Tian Can Tu Dou</dc:creator>
    <dc:creator opf:role="aut" >天蚕土豆</dc:creator>
    <dc:creator opf:role="trl" >GravityTales</dc:creator>
    <dc:contributor opf:role="ill" >Hongbin Zhou</dc:contributor>
    <dc:publisher>Qidian</dc:publisher>
    <dc:subject>Action</dc:subject>
    <dc:subject>Adventure</dc:subject>
    <dc:subject>Fantasy</dc:subject>
    <dc:subject>Harem</dc:subject>
    <dc:subject>Martial Arts</dc:subject>
    <dc:subject>Xuanhuan</dc:subject>
    <dc:date opf:event="publication">2018-01-01T00:00:00Z</dc:date>
    <dc:source>urn:isbn:1234567890X</dc:source>
    <dc:description>"In a land where no magic is present. A land where the strong make the rules and the weak have to obey. A land filled with alluring treasures and beauty, yet also filled with unforeseen danger. Three years ago, Xiao Yan, who had shown talents none had seen in decades, suddenly lost everything. His powers, his reputation, and his promise to his mother. What sorcery has caused him to lose all of his powers? And why has his fiancee suddenly shown up? </dc:description>
 <link href="https://www.novelupdates.com/series/battle-through-the-heavens/" />
  </metadata> 

@Emasoft
Copy link
Author

Emasoft commented Dec 20, 2020

All the metadata in the example above is taken from Novelupdates.
An extensive API is provided on both websites. You can check wlnupdates.com API here:

https://github.com/fake-name/wlnupdates/blob/master/app/templates/api-docs.md

@dr-nyt
Copy link
Member

dr-nyt commented Dec 20, 2020

Oh, I think I understood your original question wrong, what you mean is when the app download the novel from other sources, lets say Boxnovel, there should be an option to add additional meta data from these sites correct? If that's the case, I think its doable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants