Open StashAppDev opened 5 years ago
Ebooks is a hugely complex and horrible thing to have to deal with I don't recommend that we pursue this. For some reason, even the Caliber guy is willing to maintain an entire dead programming language (Python 2.x) rather than have to rewrite the whole ebook program. This would be an awesome feature to add but just doesn't feel like it's within scope.
If we could manage a proof of concept that would support the biggest most open format and then maybe somebody can write and document a converter then maybe.
I read this as plain text file support, not ebooks.
Edit: The original issue was for copy-pasting stories from online sites.
That's fair the screenshot from the other thread looked like it had thumbnails for ebooks/pdf's etc.
That's fair the screenshot from the other thread looked like it had thumbnails for ebooks/pdf's etc.
ya sorry for that what i like is the plan text files. but able to assign a pic for a cover image if it has one this would just be like performers.
long term with this i like to see this able to Generate a cover from title and background image like this
it would just add the author and tilte from file info
and add it onto the template
this could use a file to use custom templates
like jpeg file (customtemplate.jpg) and a file to do the setting for positions like customtemplate.pos
titlex = 10px titley = 15px authorx = 10px authory = 39px
stash text file support
i talked about it once but i will post it in the right place and try to clear up some stuff
this would work by going to the stories page and clicking new story new story will take you to a page for importing a story. this would be a text box you can paste (ctrl+v)it into you wound browse to a story you like select all the text and copy (ctrl+c) then go to the stash and paste (ctrl+v) it in then click save when it saves it would create a simple .txt the name of the files itself would be its checksum after saving
i would love to be able to upload a cover for the story like my last post
i would like to see some formating options. txt files not support much so i have a way of letting it.
"%" is the part of the file that tells stash not to show it but to obey it
%% comment will not display in web view after this tell next line but is part of the file for debuging %/ comment block same as above but lets you do many lines tell it see "%\" %\ closes block comment
%author%=the author %% will apply to metadata in stash
%site%=site.com %%where the story come from will apply to metadata in stash
%storyurl%=https://site.com/story.html %% click able to see story post will apply to metadata in stash
%tiltle%=name of story %% will apply to metadata in stash
%description%= this is a description of the story %% this applys to story page under title will apply to metadata in stash
%start% %% says the start of the story
%part%=1 %% for next part this be for series to go the next part with out going back to stories page could be 1 to ∞
%end% %%this test stash the end of the story
84897489894.txt example
%/ this is a example of the textfile and how it would work out with a example story note i just grabbed the first story on there %\
%author%=ScarlettSlave %site%=literotica.com %storyurl%=Yours for the Evening %tiltle%=Yours for the Evening %description%=Anari submits herself to a stranger's desires for an evening. %start%=You look beautiful,' you say to me. I see you turn around to face me %% cut for space %part%=1
848974547894.txt example
%/ this is a example of the textfile and how it would work out with a example story note i just grabbed the first story on there %\
%author%=ScarlettSlave %% after the "%%" you wont see this line %site%=literotica.com %storyurl%=https://www.literotica.com/s/yours-for-the-evening-ch-02 %tiltle%=Yours for the Evening %description%=Anari must obey or her evening will end. %start%=I entered the noisy, dimly lit bar, full of confidence as always. %% cut for space %part%=2 %end%
My suggestions for a simple MVP of this:
Later on this could be added:
Data Format:
type Story {
id: Int!
title: String!
summary: String
content: String!
format: StoryFormat!
url: String
authorName: String
authorUrl: String
}
enum StoryFormat {
PLAIN
MARKDOWN
HTML
}
The MVP should be pretty doable, would need a db migration though.
First mock-ups from messing with ui/v2.5:
Evaluating as candidate for bounty.
I think the main decision that needs to be made around this is whether to store stories in the database only, or to have stash monitor directories like for scenes and images.
All other media currently read data from the library. There is no embedded media in the database currently, only metadata (performers, studios, tags etc). As such, my preference would be to follow the existing method and use files rather than embedding in the database.
I'd imagine a new top-level object with the following schema:
title
author
url
date
path
rating
o_counter
tags
organized
Like #11, we'll need to adjust library settings for text file inclusion, extensions and exclude patterns. Similarly, we'll want to overhaul the navbar before commencing on this.
Ideally, we should accept text in plain, markdown and probably html formats.
I estimate this will be around 20 hours effort to implement.
The same issue for txt, md, html, pdf, epub, fb2 files.
Duplicate of https://github.com/stashapp/stash/issues/1259
https://github.com/stashapp/StashServer/issues/47