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

Update ComicOnlineFree URL #479

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ src/as/*/build
src/as/*/node_modules
src/as/*/.wireit

src/rust/*/target
src/rust/**/target
src/rust/node_modules

.idea
Expand Down
1 change: 1 addition & 0 deletions src/rust/wpcomics/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[workspace]
members = ["template", "sources/*"]
resolver = "2"

[profile.dev]
panic = "abort"
Expand Down
99 changes: 99 additions & 0 deletions src/rust/wpcomics/sources/comiconlinefree/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/rust/wpcomics/sources/comiconlinefree/res/source.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"lang": "en",
"name": "ComicOnlineFree",
"version": 1,
"url": "https://comiconlinefree.net",
"url": "https://comiconlinefree.org",
"nsfw": 1
},
"listings": [
Expand Down
4 changes: 2 additions & 2 deletions src/rust/wpcomics/template/src/template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ impl WPComicsSource {

pub fn get_manga_details(&self, id: String) -> Result<Manga> {
cache_manga_page(self, id.as_str());
let details = unsafe { Node::new(&CACHED_MANGA.clone().unwrap())? };
let details = unsafe { Node::new(CACHED_MANGA.clone().unwrap())? };
let title = details.select(self.manga_details_title).text().read();
let cover = append_protocol(details.select(self.manga_details_cover).attr("src").read());
let author = (self.manga_details_author_transformer)(
Expand Down Expand Up @@ -238,7 +238,7 @@ impl WPComicsSource {
let mut skipped_first = false;
let mut chapters: Vec<Chapter> = Vec::new();
cache_manga_page(self, id.as_str());
let html = unsafe { Node::new(&CACHED_MANGA.clone().unwrap())? };
let html = unsafe { Node::new(CACHED_MANGA.clone().unwrap())? };
let title_untrimmed = (self.manga_details_title_transformer)(
html.select(self.manga_details_title).text().read(),
);
Expand Down
Loading